Re: [netcdf-java] ucar.nc2.FileWriter question

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/ 


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