-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
field metadata
of a loaded netcdf variable is incomplete.
#22
Comments
I'd say that the most important is Propagating variable attributes is indeed of great importance. Cheers! edit - See here also http:https://cfconventions.org/Data/cf-standard-names/28/build/cf-standard-name-table.html |
Sorry somehow I bumped off notifications for this package. Metadata needs some work, it's a pretty rudimentary first pass at this stage. It looks dataset metadata is being used instead of the var metadata. Which isn't the right thing to do. It should get the var metadata like the dimension. https://github.com/rafaqz/GeoData.jl/blob/master/src/sources/ncdatasets.jl#L217 But we will also need more metadata wrapper types - one for stacks and one for arrays, as they hold different things. |
So this might be a little more complicated. To able to save NCDarray back to a file we need to have both the All this will be even more fun to handle when we try to save a GDALarray etc as a netcdf. But at least it will be fully formalised what is required to do that. |
You will also need the time attributes to save the data to disk. |
Yep, added to the PR. |
It seems to me that at the moment
NCDstack
loads as metadata the global attributes of the.nc
file. However this metadata is the only thing propagated to a loaded variable from the file. For example, I have:both packages correctly list the global attributes as "metadata". However,
You can clearly see that the NCDatasets.jl version has different "metadata", the most important being by far the
long_name
, which should be listed in the metadata of the loaded field from GeoData.jl as well (as it is quite important for NCstacks with 10s of variables).The text was updated successfully, but these errors were encountered: