Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hi Christopher: Congratulations, you found a bug deep in the bowels of RandomAccessFile. The latest release 2.2.22.19 should fix. Please let me know otherwise. Christopher Mueller wrote: > 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/Uwind_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:247) > > 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 > > > ------------------------------------------------------------------------ > > _______________________________________________ > netcdf-java mailing list > netcdf-java@xxxxxxxxxxxxxxxx > For list information or to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/
netcdf-java
archives: