Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Decoding the SREF using Java Grib2Netcdf



I believe this is for Robb Kambic, but if anyone else has a comment please post.

 

Iâm trying to decode (grib2 -> netcdf) the somewhat new SREF model data.

 

Hereâs the NOAAPORT entry:

 

HDS|CONDUIT|NGRIDÂÂÂÂÂÂ ^[LM]..... KWBL ([0-3][0-9])([0-2][0-9][0-6][0-9])

ÂÂÂÂÂÂ ÂÂÂÂ FILEÂÂÂ data/awips_in/sref/input/(\1:yyyy)(\1:mm)\1\2_sref.grib

 

 

To decode I use the following:

 

ÂÂÂÂÂÂÂÂÂÂÂ ï[ldm@metbox4 sref]$ java -Xmx1024m ucar.nc2.iosp.grib.Grib2Netcdf input/200707200900_sref.grib 200707200900_sref.nc

 

With the following output:

ÂÂÂÂÂÂÂÂÂÂÂ ïFri Jul 20 18:00:23 GMT 2007 ... Start of Grib2Netcdf

read grib file=input/200707200900_sref.grib write to netCDF file=200707200900_sref.nc

PDS productDefinition == 2 not done

PDS productDefinition == 2 not done

PDS productDefinition == 2 not done

PDS productDefinition == 2 not done

PDS productDefinition == 5 not done

PDS productDefinition == 2 not done

Exception in thread "main" java.lang.NullPointerException

ÂÂÂÂÂÂÂ at ucar.nc2.iosp.grib.GribServiceProvider.readXY(GribServiceProvider.java:300)

ÂÂÂÂÂÂÂ at ucar.nc2.iosp.grib.GribServiceProvider.readLevel(GribServiceProvider.java:267)

ÂÂÂÂÂÂÂ at ucar.nc2.iosp.grib.GribServiceProvider.readData(GribServiceProvider.java:251)

ÂÂÂÂÂÂÂ at ucar.nc2.NetcdfFile.readData(NetcdfFile.java:1345)

ÂÂÂÂÂ ÂÂat ucar.nc2.Variable._read(Variable.java:892)

ÂÂÂÂÂÂÂ at ucar.nc2.Variable.read(Variable.java:648)

ÂÂÂÂÂÂÂ at ucar.nc2.FileWriter.copyAll(FileWriter.java:244)

ÂÂÂÂÂÂÂ at ucar.nc2.FileWriter.writeToFile(FileWriter.java:200)

ÂÂÂÂÂÂÂ at ucar.nc2.FileWriter.writeToFile(FileWriter.java:65)

ÂÂÂÂÂÂÂ at ucar.nc2.iosp.grib.Grib2Netcdf.main(Grib2Netcdf.java:87)

 

I assume the error has something to do with the fact that this is ensemble mean output. Is there any way to get this to decode?

 

Thanks for any help as always!

 

-Charles


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690