Re: Problem with writing into Group

Hi Sergey:

You cannot currently use Groups with NetcdfFileWriteable because netcdf-3 file format does not support it. When we get netcdf-4, then it will work, probably 3-6 months.

John

ÐÐÑÐÐÐ wrote:
Hi all!

I'm using netcdf-java v. 2.2.18

I generate file structure like this:

netcdf 
c:/jboss-4.0.0/server/default/deploy/dpms.war/instances/RU_RIHMI_30_9.txt.nc {
 dimensions:
   strlen = 25;
   esimo:TEMP = 210;   // (has coord.var)
   esimo:platformId = 15;   // (has coord.var)
   esimo:Longitude = 15;   // (has coord.var)
   esimo:dateTime = 15;   // (has coord.var)
   esimo:DEPH = 210;   // (has coord.var)
   esimo:Latitude = 15;   // (has coord.var)

Group JBBC;141.619;2007-03-03T01:00:00;41.08 {
   variables:
     float esimo:platformId(esimo:platformId=15);
     float esimo:TEMP(esimo:TEMP=210);
     float esimo:Longitude(esimo:Longitude=15);
     float esimo:dateTime(esimo:dateTime=15);
     float esimo:DEPH(esimo:DEPH=210);
     float esimo:Latitude(esimo:Latitude=15);
 }
}


I try to write values into variables in group, but library throws an exception:
java.lang.IllegalArgumentException: NetcdfFileWriteable.write illegal variable 
name = JBBC;141.619;2007-03-03T01:00:00;41.08/esimo:DEPH

I check variable name with this method
ncFile.findVariable(varFullName) where varFullNames is 
JBBC;141.619;2007-03-03T01:00:00;41.08/esimo:DEPH and it's OK.

Could you help me with this problem?

Thank you
Best regards, Sergey               mailto:serg@xxxxxxxx

==============================================================================
To unsubscribe netcdf-java, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================

==============================================================================
To unsubscribe netcdf-java, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================