Giter Club home page Giter Club logo

Comments (7)

AranJM avatar AranJM commented on July 21, 2024

I have the same issue with a netcdf file retrieved from the ipcc interactive atlas (which uses climate4R btw). Any chance on a reaction on this issue as it is quite cumbersome that some ncdf files can be read and others can't.

from climate4r.

cofinoa avatar cofinoa commented on July 21, 2024

Dear @cs2239, can you provide access to the .nc file (MPI-ESM-LR_FWI_ET017_cal.nc) you are trying to open with?

from climate4r.

cofinoa avatar cofinoa commented on July 21, 2024

@AranJM, there is an issue with metadata for the netcdf files generated by the interactive atlas.

These files are been parsed and generated by the backend that is using GDAL which is manipulating/truncating some attributes and coordinates of the original files.

from climate4r.

AranJM avatar AranJM commented on July 21, 2024

@cofinoa Thanks for the answer. Any workaround/solution you can think of perhaps?

from climate4r.

cofinoa avatar cofinoa commented on July 21, 2024

@AranJM I can provide you a workaround ... please let me know which .nc file are you interested on ... and I would check exactly what is the metadata to be changed.

from climate4r.

cofinoa avatar cofinoa commented on July 21, 2024

@AranJM, as workaround you can create a .ncml file, besides (i.e. same directory) the downloaded file from the interactive atlas, and with the following XML contente:

<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2" location="{{ FILE.nc }}">
  <variable name="{{ VARIABLE }}">
    <logicalReduce dimNames="baseline period time_filter" />
  </variable>
</netcdf>

you must replace {{ FILE.nc }} with the filename you have downloaded, and {{ VARIABLE }} with the name of the principal variable in the netCDF file.

from climate4r.

cofinoa avatar cofinoa commented on July 21, 2024

@AranJM the interactive-atlas will solve the issues with the metadata, that the above .ncml fixes.

Meanwhile the fix it's deployed, you can uses the .ncml

Dear @cs2239, I will close this issue. You can re-open it if you face same issue.

from climate4r.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.