[netcdf-java] ArrayIndexOutOfBounds Error

All,

Can anyone help me figure out how to fix this?

When downloading this dataset and subsampling by time:
Dataset Location: 
dods://tashtego.marine.rutgers.edu:8080/thredds/dodsC/met/ncep-nam-1hour/Uwi
nd_nam_1hourly_MAB_and_GoM.nc

I get the following error:
java.lang.ArrayIndexOutOfBoundsException: 23670
        at ucar.unidata.io.RandomAccessFile.write(RandomAccessFile.java:658)
        at ucar.nc2.N3header.pad(N3header.java:759)
        at ucar.nc2.N3header.writeString(N3header.java:743)
        at ucar.nc2.N3header.writeStringValues(N3header.java:656)
        at ucar.nc2.N3header.writeAtts(N3header.java:639)
        at ucar.nc2.N3header.create(N3header.java:508)
        at ucar.nc2.N3iosp.create(N3iosp.java:356)
        at ucar.nc2.NetcdfFileWriteable.create(NetcdfFileWriteable.java:461)
        at ucar.nc2.FileWriter.finish(FileWriter.java:457)
        at 
com.asascience.edc.nc.io.NetcdfGridWriter.writeFile(NetcdfGridWriter.java:24
7)

None of the variables have more than ~1200 values (time ­ which is being
subset to < 30), so I¹m not sure where the 23670 above is coming from.

Any help is most appreciated.  I can provide more info as needed.

Thank you in advance,
Chris

-- 
Christopher Mueller | Scientist
Applied Science Associates
70 Dean Knauss Drive | Narragansett, RI 02882 USA
p: +1 401-789-6224 | f: +1 401-789-1932
e: cmueller@xxxxxxxxxxxxxx | www.asascience.com

ASA | Science. Services. Solutions

Imagination is everything.  It is the preview of life's coming attractions.
- Albert Einstein

Whether you think you can or think you can't, either way you are right. -
Henry Ford

  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: