NCREAD reading GRIB2 files?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
For my understanding these are GRIB2 files... any potential reasons they're not working? Maybe I misunderstand that NCREAD cannot read this format? Any help would be appreciated
url = 'ftp://ftp.ncep.noaa.gov/pub/data/nccf/com/gfs/prod/gfs.2015011412/gfs.t12z.pgrb2.0p25.f120'
data = ncread(url,'APCP');
0 Kommentare
Antworten (2)
Jacob Halbrooks
am 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 Kommentare
Kelly Kearney
am 14 Jan. 2015
I don't believe ncread can read files via FTP, only OPeNDAP. You'll have to save the file locally before you can read it.
2 Kommentare
Kelly Kearney
am 14 Jan. 2015
Also, you'll need to convert the file to netcdf... unlike NCL, Matlab doesn't read in GRIB files natively.
Siehe auch
Kategorien
Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!