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.
Hi Jos: Yes, theres apparently something wrong with the file. Can you see if it got damaged somehow, perhaps obtain another one? John > Dear all, > > I received a database with NEXRAD data which I want to convert to > NETCDF. > > Following the guidelines on the NOAA NCDC webpage ... > > http://www.ncdc.noaa.gov/oa/radar/radar-decoding-easy.html > > ... I downloaded the "toolsUI-4.2.jar" and then, as recommended, ran the > following command on the command-line: > > java -classpath toolsUI-4.2.jar ucar.nc2.FileWriter -in test.nexrad -out > test.nc > > which resulted in the following error message: > > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: > index=-1 shape=361 > at ucar.ma2.Index2D.set1(Index2D.java:118) > at ucar.ma2.Index2D.set(Index2D.java:125) > at > ucar.nc2.iosp.nexrad2.Nexrad2IOServiceProvider.makeCoordinateDataWithMis > sing(Nexrad2IOServiceProvider.java:544) > at > ucar.nc2.iosp.nexrad2.Nexrad2IOServiceProvider.makeVariable(Nexrad2IOSer > viceProvider.java:383) > at > ucar.nc2.iosp.nexrad2.Nexrad2IOServiceProvider.open(Nexrad2IOServiceProv > ider.java:123) > at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1318) > at ucar.nc2.NetcdfFile.open(NetcdfFile.java:754) > at ucar.nc2.NetcdfFile.open(NetcdfFile.java:394) > at ucar.nc2.NetcdfFile.open(NetcdfFile.java:364) > at ucar.nc2.NetcdfFile.open(NetcdfFile.java:351) > at ucar.nc2.FileWriter.main(FileWriter.java:750) > > Now, I am absolutely no java-expert, but does this message imply that > something is wrong with the nexrad-file itself? > > For convenience, the nexrad-file is located here: > > http://www.knmi.nl/~laatdej/TMP/test.nexrad > > Hope you can help. > > Sincerely yours, > > Jos de Laat. > > ---------------------------------- > > A.T.J. de Laat (Jos), Ph.D > Royal Netherlands Meteorological Institute (KNMI) > PO box 201 > 3730 AE de Bilt > The Netherlands > Tel (direct): 030-2206892 > Fax: 030-2210407 > e-mail: address@hidden <mailto:address@hidden <mailto:address@hidden> > http://www.knmi.nl/~laatdej/ <http://www.knmi.nl/~laatdej/> > > ---------------------------------- > > > Ticket Details =================== Ticket ID: ALJ-330520 Department: Support netCDF Java Priority: Normal Status: Open