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.
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@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
archives: