Skip to content
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

CFAPyX Support - Complete groups in CFA #798

Open
dwest77a opened this issue Jul 22, 2024 · 2 comments
Open

CFAPyX Support - Complete groups in CFA #798

dwest77a opened this issue Jul 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@dwest77a
Copy link

The Xarray-implemented CFA-netCDF reader has an issue with groups because Xarray does not support the typical group hierarchy of netCDF4. Xarray is capable of opening netCDF4 groups as separate Datasets but this requires the group to be 'complete' i.e self-describing in terms of dimension/coordinate variables. A set of groups which share a global dimension would therefore not be allowed with the current implementation.

Possible solutions to this issue are:

  1. Ensuring CFA-netCDF groups are complete i.e aggregation groups contain all the data and metadata required to serve a specific variable (time/lat/lon would all be part of the group)

  2. Adjusting the CFAPyX (Xarray-CFA implementation) package to expand groups out into their respective variables, then using either a variable attribute or other form to represent where the variable originated from in the source data.

@dwest77a dwest77a added the enhancement New feature or request label Jul 22, 2024
@dwest77a
Copy link
Author

I'll get to work testing option 2 to see if it is viable, but otherwise we will need to consider option 1, or accept that CFA-netCDF groups will not work with xarray.

@davidhassell
Copy link
Collaborator

Er, is this a cf-python issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants