-
Notifications
You must be signed in to change notification settings - Fork 19
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
Grib support #394
Comments
Not a solution, but I very much dislike grib files, so I usually convert them to netcdf or zarr files. Even xarray has in my experience limited support for grib files (it doesn't work with 50% of the files I'd like to read). https://www.ncl.ucar.edu/Applications/griball.shtml |
YAXArrays.jl itself does not support grib files but Rasters does. And from a Raster object you can then convert that back into a YAXArray object if you want to use the YAXArrays machinery. using Rasters, GRIBDatasets
using YAXArrays
r = Raster("path/to/gribfile", lazy=true)
yax = YAXArray(dims(r), parent(r)) This is a bit of a stop gap solution because you would loose the metadata of your file on that but it might help you in starting your analysis. |
Thanks, both of you. I have tested @felixcremer s idea, but got a weird structure for the data. So I've also tested @Balinus s idea, but It seems that YAXArrays does not support the structure of my data.
This is what I get when I try to load the file with YAXArrays:
Any ideas? |
Could you please show the full stacktrace of your error? |
Could you please show the full stacktrace of you error? You can also try the open_dataset function to open the file as a dataset and select the relevant data from there. |
I have tried open_dataset and it works!
|
A |
Wow!, I understand now. |
That's what 'open_dataset' will do also here. Similar to https://juliadatacubes.github.io/YAXArrays.jl/dev/UserGuide/openZarr. |
Could you share two of your files, so that I can debug this. We also have an open_mfdataset function but it is a bit buggy. |
Here are two of them. The first one has the |
Does YAXArrays support grib files?. If so, how can I load one? If not, could this feature be added?
Thanks a lot.
The text was updated successfully, but these errors were encountered: