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