Greetings!
I've been delving into the murky waters of BUFR for the past few months
with the goal of converting our archive to netCDF. I'm working mainly
(actually, exclusively up to this point) with NCEP-style BUFR files.
When I started this project, I naturally thought of netCDF java, but
received errors when trying to open up the files I was wotking with, so
I went with the NCEP BUFRLIB library and reacquainted myself with
FORTRAN, and even learned some FORTRAN "OOP" along the way.
I'm at a point where I'm re-examining how to move forward and I've taken
a look at netCDF java again and wanted to ask about the following errors
when I open an NCEP BUFR file from the GTS:
manross@yslogin2[toolbox/java] % java -Xmx1024m -classpath
JARS_Backup/netcdfAll-4.3.jar ucar.nc2.dataset.NetcdfDataset -in
fouthsubset.bufr -out temp.nc
Feb 8, 2013 11:18:45 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: month is zero
Feb 8, 2013 11:18:45 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: day is zero
Feb 8, 2013 11:18:45 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: month is zero
Feb 8, 2013 11:18:45 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: day is zero
Feb 8, 2013 11:18:45 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: month is zero
Feb 8, 2013 11:18:45 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: day is zero
Feb 8, 2013 11:18:45 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: month is zero
Feb 8, 2013 11:18:45 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: day is zero
Feb 8, 2013 11:18:46 AM ucar.nc2.iosp.bufr.BufrIosp open
WARNING: File gdas.adpupa.t12z.20120603.bufr has different BUFR message
types msgno=325; skipping
Feb 8, 2013 11:18:46 AM ucar.nc2.iosp.bufr.BufrIosp open
WARNING: File gdas.adpupa.t12z.20120603.bufr has different BUFR message
types msgno=325; skipping
...
...
...
WARNING: File gdas.adpupa.t12z.20120603.bufr has different BUFR message
types msgno=325; skipping
Feb 8, 2013 11:18:46 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: month is zero
Feb 8, 2013 11:18:46 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: day is zero
Feb 8, 2013 11:18:46 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: month is zero
Feb 8, 2013 11:18:46 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: day is zero
Feb 8, 2013 11:18:46 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
WARNING: month is zero
Feb 8, 2013 11:18:46 AM ucar.nc2.iosp.bufr.BufrIdentificationSection <init>
Read from gdas.adpupa.t12z.20120603.bufr write to temp.nc
Exception in thread "main" java.lang.IllegalArgumentException: Dimension
length =-1 must be > 0
at ucar.nc2.Dimension.setLength(Dimension.java:283)
at ucar.nc2.Dimension.<init>(Dimension.java:221)
at ucar.nc2.NetcdfFileWriter.addDimension(NetcdfFileWriter.java:295)
at ucar.nc2.NetcdfFileWriter.addDimension(NetcdfFileWriter.java:273)
at ucar.nc2.FileWriter2.addNetcdf3(FileWriter2.java:231)
at ucar.nc2.FileWriter2.write(FileWriter2.java:176)
at ucar.nc2.dataset.NetcdfDataset.main(NetcdfDataset.java:1682)
Obviously the error at the end is related to the inability to properly
read the file.
I am able to open the file in tools-UI and display the data, though the
header column appears non-human-readable.
I know that the NCEP BUFR files come with the BUFR table embedded in
them. Is this the source of the problem? If so, what is the best way
around it?
-kevin.
--
Kevin Manross
NCAR/CISL/Data Support Section
Phone: (303)-497-1218
Email:manross@xxxxxxxx <mailto:manross@xxxxxxxx>
Web:http://rda.ucar.edu