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.
> Hi, > I'm working to read some data in netcdf, and there's and interesting > option for me: > I've found the ncdump now has the option -x to extract the information > in XML. > > I've seen that if you execute: > ncdump -x file.nc > the XML is well created OK! > > But, if you try to filter variables: > ncdump -v var1,var2,... -x file.nc > > Then the XML is not well created. > > I've attached first file without filtering (good XML) and a second with > a variable filtered (geop) and the XML is bad. > I've seen that <variable> tag is not closed in filtered variables. > > A haven't tested other possible combinations using -x option. > > Apart from that, > congratulations for this new option, because I could read in PHP a nc > file via the XML from ncdump. > > regards, > Santi > Howdy Santi! I believe this is fixed in the just-released version 3.6.2. Could you get it from the website and see: http://www.unidata.ucar.edu/software/netcdf Thanks, Ed Ticket Details =================== Ticket ID: CAX-144000 Department: Support netCDF Priority: Normal Status: Closed