Re: [netcdf-java] ArrayIndexOutOfBounds Error

Chris -- could be just the version.  I did not have any probably
opening and displaying your u-comp winds in the IDV 2.4 (which uses
the netcdf/java library).  I didn't read/display all 1200 time steps,
though -- just a few from the beginning and end...

tom

On Thu, Feb 21, 2008 at 10:38 AM, Christopher Mueller
<cmueller@xxxxxxxxxxxxxx> 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/
>
>



-- 
Tom Whittaker
University of Wisconsin-Madison
Space Science & Engineering Center (SSEC)
Cooperative Institute for Meteorological Satellite Studies (CIMSS)
1225 W. Dayton Street
Madison, WI 53706 USA
ph: +1 608 262 2759


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