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.
Hi Nick:create the NetcdfFile, then use FileWriter.writeToFile() to copy it to a disk file.
Nick Bower wrote:
Maybe this is too obvious for me to see right now, but I can't find a way to simply write down an in-memory NcML document to a NetCDF file. The issue seems to be that although I can create NetcdfDataset from ncml and this inherits NetcdfFile, there appears no way to create NetcdfFileWriteable from either.I have so far; public void persistNcml(String ncml, String filePath) { InputStream ins = new ByteArrayInputStream(ncml.getBytes()); NetcdfDataset netcdfDataset = NcMLReader.readNcML(ins, null); ??? [need way to persist netcdfDataset as an nc file] } Thanks, Nick _______________________________________________ netcdf-java mailing list netcdf-java@xxxxxxxxxxxxxxxxFor list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
netcdf-java
archives: