简体   繁体   中英

Reading GRiB2 files using NCTOOLBOX in Matlab,

I try to open CFSR gridded binary edition 2 (grb2) precipitation file downloaded from ucar.edu using NCTOOLBOX. However I got error messages:

"nc=ncgeodataset('prate.gdas.200812.grb2')
Error using ncdataset (line 91)
Failed to open prate.gdas.200812.grb2

Error in cfdataset (line 59)
        obj = obj@ncdataset(url);

Error in ncgeodataset (line 74)
        obj = obj@cfdataset(url);

Caused by:
    Undefined variable "ucar" or class "ucar.nc2.dataset.NetcdfDataset.openDataset".

Can anyone please debug what is going on here?

I'm sorry for this stupid question, but are you sure that you have been setup NCTOOLBOX in a correct way? Because I had the same problem until I was setup it how it says here http://disc.sci.gsfc.nasa.gov/recipes/?q=recipes/How-to-Read-GLDAS-or-NLDAS-GRIB-formatted-Data-with-MATLAB-0
Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM