-
Notifications
You must be signed in to change notification settings - Fork 15
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
String coordinates in netcdf datasets #260
Comments
@corentincarton, thank you for reporting this issue. The netcdf parser should not crash like that so it has to be fixed. Please can you make the data file available? As for the data, I have to admit I am not sure if we need to treat it as a field/fieldset. |
Hi @sandorkertesz, sorry I should have added a small code to reproduce the error. Here it is:
Not sure about the field or fieldset... something we need to discuss indeed. |
Hi @corentincarton, the string coordinate issue can be fixed. However, at the moment when we create a field/fieldlist out of netcdf we assume it has a pair of horizontal coordinates (lat/lon or x/y). Without this only a NetCDFReader is created not a FieldList. |
Thanks @sandorkertesz ! |
earthkit-data/earthkit/data/readers/netcdf.py
Line 36 in fe88303
I'm trying to read a netcdf dataset with string coordinates. The netcdf field is a list of points, each point has an ID (for instance G0001) and a time series, so two dimensions: station and time.
I get the following error when trying to read with earthkit:
Do we really need to force a casting to float for the not-recognised dimensions?
The text was updated successfully, but these errors were encountered: