[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20051028:Is there a .nc <-> .xml tool available?
- Subject: Re: 20051028:Is there a .nc <-> .xml tool available?
- Date: Tue, 01 Nov 2005 06:13:58 -0700
Hi Dave,
Ed wrote:
> > Is there a package like the ncxdump/ncxgen from
> > http://www.unidata.ucar.edu/software/netcdf/Contrib.html that works with
> > ncml?
...
> Sorry, I don't believe there is such a tool. I will copy this response
> to Russ Rew and John Caron. If there is such a tool, one of them will
> know about it.
>
> However, in versio 4.0 of netCDF (due to release in beta early next
> year), we plan for ncgen/ncdump to be able to handle ncml.
The latest Java netCDF interface does what you want. A previous reply
I have from John Caron said:
ucar.nc2.dataset.FileWriter will take any NcML dataset or (dods
dataset) and write a local netcdf file.
if you want to go the other way, ucar.nc2.NetcdfFile.writeNcML() will
write NcML from any netcdf file.
the netCDF toolsUI has a UI to both:
http://www.unidata.ucar.edu/packages/netcdf-java/v2.2/webstart/index.html
so does the THREDDS Data Server:
http://www.unidata.ucar.edu/projects/THREDDS/tech/webstart/Viewer/index.html
Also, the current checked in code for netCDF 3.6.1 supports a "-x" option
to ncdump that produces NcML instead of CDL, but it's not available in
a release yet, unfortunately.
--Russ