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.
I think this is a bug that needs to be fixed. there are some issues about translating to valid netcdf3 names that I have to look at. thanks for reporting, i'll get back to you. Christopher Mueller wrote: > 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:247) > > 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 mailing list > netcdf-java@xxxxxxxxxxxxxxxx > For list information or to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/
netcdf-java
archives: