This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Unidata Support wrote:
------- Forwarded MessageTo: address@hidden From: "Curt Emich" <address@hidden> Subject: netCDF Java - XP - NetCDF to XML Organization: ? Keywords: 200406021428.i52ESVb3005018Institution: Veridyne, Inc. Package Version: 1.0 Operating System: XP Hardware Information: Pentium IV Inquiry: I'm looking at your classes at this link http://www.vets.ucar.edu/luca/netcdf/javadoc/ucar/ncx/soap/package-summary.html and I want to make sure that there's one that converts NetCDF to XML in the body of the data, and not just the meta data. Do any of these classes do that? If so, how do I go about downloading the package so I can use it?
Hi Curt:Luca's ncx package is deprecated in favor of the java-netcdf package, which you can get from:
http://www.unidata.ucar.edu/packages/netcdf-java/index.html you can useNetCdfFile.writeNcML( java.io.OutputStream os, boolean showCoords, String uri);
to write XML; this will not write out all data, if thats what you want, but it will write coordinate data, with showCoords=true.
if you need all the data written, it should be easy to modify the above routine.