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.
Hello All,I am using trying to dump a netCDF file to NCML, and am getting an exception: java.util.UnknownFormatConversionException: Conversion = '%'
Here's the code snippet:String location = "http://dods.ndbc.noaa.gov/thredds/dodsC/data/oceansites/INCOIS/OS_MB04_20090106_TS.nc";
nc = NetcdfDataset.openDataset(location); fos = new FileOutputStream(new File(ncmlFolder + ncmlOutputFileName)); OutputStreamWriter ows = new OutputStreamWriter(fos); String varNames = null; CancelTask ct = null;The exception seems to be thrown because several of the variables have a units attribute of '%'.
The NetCDF UI Tools seem to handle the generation of NCML ok, so I'm wondering if I should look at a different method or another alternative.
Thanks for suggestions in advance. Dave David Neufeld Enterprise Data Systems Group NOAA, NGDC, CIRES (303) 497-6507 David.Neufeld@xxxxxxxx
netcdf-java
archives: