[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20040602: netCDF Java - XP - NetCDF to XML

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.


  • Subject: Re: 20040602: netCDF Java - XP - NetCDF to XML
  • Date: Wed, 02 Jun 2004 11:18:52 -0600

Unidata Support wrote:

------- Forwarded Message

To: address@hidden
From: "Curt Emich" <address@hidden>
Subject: netCDF Java - XP - NetCDF to XML
Organization: ?
Keywords: 200406021428.i52ESVb3005018

Institution: 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 use

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