How to read grib files in Matlab 2019A in Windows Environment?
3 views (last 30 days)
Show older comments
Dear all,
I would like to ask if there is any robust approach that Matlab suggests for reading grib files with Matlab 2019A in Windows 10 environment.
I am aware of the nctoolbox which performed generally well until Matlab 2017A, but later there were some Java dependencies problems (see https://github.com/nctoolbox/nctoolbox/issues/111) that made grib files reading problematic. I did not find yet any proposed and feasible solution to this problem.
Matlab provides an integrated package for netcdf files but no integrated solution for grib files, while this file format is very popular. Thus, reading these files immediately in Matlab is not supported despite their popularity.
I tried to find if there is any way to read directly these files in Matlab or if Matlab proposes any series of predefined steps that somebody should follow in order to read them but I have not found any.
If someone is aware of any Matlab solution in Windows environment his feedback would be very helpful.
2 Comments
Accepted Answer
Jacob Halbrooks
on 25 Sep 2024
As of R2023b, you can read data from a GRIB file (.grb, .grib, .grib2) using the Mapping Toolbox readgeoraster function. You can also get information about a GRIB file by using the georasterinfo function. These functions were enhanced in R2024b to support GRIB files that use CCSDS compression.
0 Comments
More Answers (0)
See Also
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!