NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdf-java] Variable with unlimited dimension

I´m working with netcdf4.2 and java 7.  I´m trying to create a
variable that uses an unlimited dimension.  I´ve created the unlimited
dimension without problem.  I can print it with writeCDL and it shows
fine.  I then try to create a variable that uses this dimension
calling addUnlimitedDimension with the dimensions name.  The result of
the call is:

java.lang.IllegalArgumentException: illegal netCDF-3 dimension name
    ucar/nc2/NetcdfFileWriteable.java:246:in `addDimension'
    ucar/nc2/NetcdfFileWriteable.java:260:in `addUnlimitedDimension'
    
F:/rbotafogo/cygwin/home/zxb3/Desenv/jruby/MultiCell/src/lib/netcdf_interface.rb:113:in
`add_dimension'
    
F:\rbotafogo\cygwin\home\zxb3\Desenv\jruby\MultiCell\src\test\netcdf.rb:27:in
`NcInterfaceTest'
    org/jruby/RubyMethod.java:117:in `call'
    
F:/rbotafogo/cygwin/jruby-1.6.7.2/lib/ruby/gems/1.8/gems/shoulda-2.11.3/lib/shoulda/context.rb:382:in
`test: Building blocks should Create new file for writing. '
    org/jruby/RubyBasicObject.java:1698:in `__send__'

One more point.  I´m using jruby 1.6.7.2.

Any suggestions?



-- 
Rodrigo Botafogo
Integrando TI ao seu negócio



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