-
Notifications
You must be signed in to change notification settings - Fork 303
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
Reader for NWC SAF HRW (high resolution winds) data #3052
Comments
Looking at https://numpy.org/doc/2.1/user/basics.rec.html I tried a bunch of ways accessing
As I haven't defined When using
|
Like this can also work?
|
@TAlonglong that doesn't work for me 🤔 I'm now using XArray v2025.1.2, Numpy 2.0.2 and Python 3.12. I get the |
Tried updating I think I'll just have a look how terrible it would be to open the HRW files with |
The next hurdle: how to organize the data?
Even with discarding the trajectory segments, there are 7 * 37 = 259 different datasets, so the datasets would need to be dynamic. How would the user request for example wind speeds and directions for scn.load(["wind_vis06_wind_speed", "wind_vis06_wind_from_direction"]) I also think this might need to be a completely separate reader to the other NWC SAF data. |
I think I accidentally found out what causes the Running fid = h5py.File(fname, "r")
wind_vis06 = fid["wind_vis06"]
for key in wind_vis06:
print(key) all the data are printed, until there's the crash. So I think XArray is mapping out all the data at opening. So if I find the offending dataset(s), I could do |
The |
The |
Feature Request
I'm looking at creating a reader for NWC SAF (v2023.3) HRW data (in NetCDF4). The format is complicated with two nested compound data types:
The structure is such that
netCDF4
backend just says the compound datatype is unsupported, so none of the data are accessible:Using
h5netcdf
I get further:But now I can't find a way to access the actual data:
Describe the solution you'd like
Anything to access the actual values listed in the
dtype
dictionary of theWind
compound data.Describe any changes to existing user workflow
Looks like reading the data needs
h5netcdf
backend, while the other NWC SAF GEO data are read withnetcdf4
. So one additional library might be needed.Additional context
"My brain hurts." - Monty Python
The text was updated successfully, but these errors were encountered: