Hi, is there a matlab function to read .grib2 files (these are files similar to netcdf but Matlab nclibraries cant seem to be able to read them) thank you
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi, I need to read .grib2 files fast. I m currently using a java toolbox (njvarget) to read them but it takes a lot of time as the files are many. Is there a way to read them faster (changing function or reformatting them?)? thank you
댓글 수: 0
채택된 답변
Jacob Halbrooks
2024년 9월 25일
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
추가 답변 (1개)
Marius
2017년 10월 25일
Hi Thalia,
If you just want to read grb2 files. You may want to check out nctoolbox (https://github.com/nctoolbox/nctoolbox/).
You find some documentation here (https://github.com/nctoolbox/nctoolbox/wiki).
It is not explicitly fast. Although at least I did not make the experince that pygrib or the netCDF-Java API are significantly faster.
A word of warning: It does not work out of a Proxy network. Best of luck.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!