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.

Re: [netcdf-java] DataType.LONG not supported?

hi tiiv:

On 5/27/2012 3:43 AM, 54 7382 wrote:
Hi,

I've been trying to implement NetCDF file support for one of our applications. 
I've been trying to store time steps as long values within a variable. But for 
this line of code:

         Variable var = file.addVariable("timestep", DataType.LONG, dimensions);  // 
"file" being the a NetcdfFileWritable object and "dimensions" an ArrayList containing one 
dimension object (time dimension)

I get this exception:

        java.lang.IllegalArgumentException: illegal dataType for netcdf-3 
format: long

was Long as a datatype not yet supported in NetCDF Version 3?
correct
And if so, why is it implemented in the DataType class without any hints?

netcdf-java library is for many kinds of file reading, not just writing netcdf-3.



I'm using the netcdfAll-4.2 library, JDK 6 on OSX 10.7.4

Thanks in advance for any help with this.

-- tiiv
_______________________________________________
netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/


john



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