Greetings Fan, I've CCd John Caron to this message - he may have some suggestions. Cheers! Sean > Hi Sean, > > We pass around both data and metadata. Most components can handle xml > more quickly (or handily, than ascii or netcdf), but some components > (that involve user interaction) would require CDL/netCDF. So we need > conversions back and forth. > > But if it is as you said that NcML did not really include a schema for > data itself then we are probably looking at the wrong direction. Much > less to mention any existing tools other than perhaps implementing Java > classes using netcdf-Java. > > -Fan > > On 08/10/2011 12:20 PM, Unidata netCDF Java Support wrote: > > Hi Fan, > > > > NcML is really concerned with the metadata, not so much the data (the > > values in the grid, time series, etc.). You can aggregate netCDF files, add > > metadata, change metadata, etc., and use the NcML file (in combination with > > the original netCDF file(s)) to create a new netCDF file with the added > > information (and data, if aggregating). What kinds of information are you > > wanting pass around in your application? > > > > Sean > > > >> Hi Sean, > >> > >> We are looking to use NcML for internal communications between components > >> of an application, instead of using ascii CDL or netCDF data itself. So > >> we are look for a command-line tool that we can do system call with, which > >> can enable translations between netCDF or CDL and NcML. Wonder if the > >> toolsUI,jar can do this (not just nc3->ncml but the other way around > >> also). Does it write data or just metadata? I know ncdump only dumps > >> metadata in NcML. > >> > >> Thanks. > >> > >> -Fan > >> ________________________________________ > >> From: Unidata netCDF Java Support address@hidden > >> Sent: Tuesday, August 09, 2011 5:47 PM > >> To: Fang, Fan (GSFC-610.2)[ADNET SYSTEMS INC] > >> Cc: address@hidden > >> Subject: [netCDFJava #RUP-211659]: toolsUI > >> > >> Greetings Fan! > >> > >>> Hi. > >>> > >>> I am looking for an easy way to translate netcdf data between .nc/.cdl > >>> and .ncml. > >> I'm not sure I understand the question correctly, but are you trying to > >> make an NCML representation of the metadata in a netCDF file? If so, > >> toolsUI is your tool :-) However, it gets better! You can use the netCDF > >> Java library from the command line to write out the NCML file for you, > >> like so: > >> > >> java -classpath toolsUI.jar ucar.nc2.NCdump<NetCDF-3 filename> -ncml > >> > >> or, if you have the netCDF C library installed, go for: > >> > >> ncdump -x<NetCDF filename> > >> > >> Check out http://www.unidata.ucar.edu/software/netcdf/ncml/ for more > >> info, including all the fun ways you can use NCML in enhance the metadata > >> within a netCDF file. Now, if this is not all what you were looking for, > >> them I apologize for missing the boat. Please let me know if this answers > >> your question! > >> > >> Cheers! > >> > >> Sean > >> > >>> I thought such tools might have existed already so without > >>> writing new Java classes, I wonder if I can use things like toolsUI in > >>> the command line for such purposes. Any other tools that can serve? > >>> > >>> Thanks. > >>> > >>> -Fan > >>> > >>> > >> > >> Ticket Details > >> =================== > >> Ticket ID: RUP-211659 > >> Department: Support netCDF Java > >> Priority: High > >> Status: Open > >> > >> > > > > Ticket Details > > =================== > > Ticket ID: RUP-211659 > > Department: Support netCDF Java > > Priority: High > > Status: Open > > > > Ticket Details =================== Ticket ID: RUP-211659 Department: Support netCDF Java Priority: High Status: Open
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.