NCREAD reading GRIB2 files?

9 次查看(过去 30 天)
Ryan
Ryan 2015-1-14
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');

回答(1 个)

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