NCREAD reading GRIB2 files?

조회 수: 5 (최근 30일)
Ryan
Ryan 2015년 1월 14일
답변: Jacob Halbrooks 2024년 9월 25일
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');

답변 (2개)

Jacob Halbrooks
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.

Kelly Kearney
Kelly Kearney 2015년 1월 14일
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
Ryan
Ryan 2015년 1월 14일
Hmmmm still trouble loading it even when I download to a local drive..
Kelly Kearney
Kelly Kearney 2015년 1월 14일
Also, you'll need to convert the file to netcdf... unlike NCL, Matlab doesn't read in GRIB files natively.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by