[netcdf-java] ucar.nc2.FileWriter question

Christopher Mueller cmueller at asascience.com
Wed Feb 27 06:33:48 MST 2008


All,

I am using the ucar.nc2.FileWriter to write an opendap file to a local nc
file.  The process works great, but I¹ve noticed that if there are ³.² in
the name of the variable being written (i.e. ³temperature.anomalies²), an
error (stack trace below) is thrown during the FileWriter.finish() call and
the write fails.

Error Stack:
java.lang.IllegalArgumentException: NetcdfFileWriteable.write illegal
variable name = temperature.anomalies
at ucar.nc2.NetcdfFileWriteable.write(NetcdfFileWriteable.java:538)
at ucar.nc2.NetcdfFileWriteable.write(NetcdfFileWriteable.java:477)
at ucar.nc2.FileWriter.copyAll(FileWriter.java:267)
at ucar.nc2.FileWriter.copyVarData(FileWriter.java:223)
at ucar.nc2.FileWriter.finish(FileWriter.java:459)
at 
com.asascience.edc.nc.io.NetcdfGridWriter.writeFile(NetcdfGridWriter.java:24
7)

Is there a way I can work around this?

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 at asascience.com | 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.unidata.ucar.edu/mailing_lists/archives/netcdf-java/attachments/20080227/61022291/attachment.html 


More information about the netcdf-java mailing list