-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add support for Discrete Sampling Geometry datasets. #122
Comments
Yes we should support this "discrete sampling geometry" stuff. I am confused about how these are represented however. The CF CDL examples don't use the @ocefpaf Can you point us to a "nice" dataset that uses these attributes? |
I believe we have some "gold standards" somewhere. Let me check and get back to you. |
@dcherian and @ocefpaf, we have USGS oceanographic data in CF-1.6 compliant format, both For example, all of the data from this experiment in Grand Bay Specific Examples: |
Thanks @rsignell-usgs , those datasets are a lot more straightforward.
OTOH |
Also related: https://ncas-cms.github.io/cfdm/tutorial.html#discrete-sampling-geometries |
The NCEI netCDF templates look useful (but I haven't looked closely): https://www.ncei.noaa.gov/data/oceans/ncei/formats/netcdf/v2.0/index.html |
I ran into this while trying to set up a dataset with a collection of vertical profiles (i.e., a transect).
I think we should consider adding a new axis named "discrete": http://cfconventions.org/cf-conventions/cf-conventions.html#discrete-axis
The dimensions of the discrete axis would then be defined by an attribute named "instance_dimension": http://cfconventions.org/cf-conventions/cf-conventions.html#collections-instances-elements
The "instance_dimension" attribute is assigned to all "index_variables", which are 1D coordinates.
This is an example where I've extracted a transect from a C-grid model. After extraction I've removed the "axis" attributes from all X and Y variables, and I've added the attribute
da.attrs["instance_dimension"] = "station"
to all 1D variables with dimension "station".In this scenario, I think the axes should be "Z", "T", and "discrete", where
ds.axes["discrete"] = ["station"]
. Then we should probably also addds.cf.index_variables
, which returns all index variables (e.g., lon, lat, label, indexes on the original grid, ....).There is a global attribute named "featureType": http://cfconventions.org/cf-conventions/cf-conventions.html#_features_and_feature_types
Not sure whether it would be preferable to add
ds.cf["discrete"]
andds.cf.index_variables
only if the attribute is present, and maybe axes ["X", "Y"] and "discrete" should be mutually exclusive?The text was updated successfully, but these errors were encountered: