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.
ok to post these to mail list. John On 10/17/2012 7:28 AM, Carlomusto, Michael wrote:
John, This doesn’t seem like the kind of question to post to the CF board. According to the Unidata website _http://www.unidata.ucar.edu/software/netcdf/ncml/_ a netCDF-3 file can be created using NcML. Can you create a netCDf-4 file too? Using the NetCDF-Java library, you can also use NcML to create a new netCDF-3 file, similar to the *ncgen* program. 1. Using a text or XML editor, create the NcML file with an "xml" or "ncml" file extension. Open the NcML file with *NetcdfDataset.open()*, then call *ucar.nc2.FileWriter.writeFile()* 2. In the _ToolsUI_ <http://www.unidata.ucar.edu/software/netcdf-java/v4.0/webstart/netCDFtools.jnlp> application, open an existing NcML file in the NcML tab, or create a new one. You can edit and save the NcML with the *"Save NcML*" button. You can create the equivilent binary NetCDF file with the *"Write NetCDF*" button. Thanks. MIke */"This information is only intended for the use of the individual or entity named in this email. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the contents of this information is strictly prohibited. If you have received this email in error, please notify me and delete it immediately."/* Michael Carlomusto address@hidden Harris Corp. Government Communications Systems Division (GCSD) Melbourne, FL (321) 309-7905