This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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 |