ucar.nc2.ncml
Class NcMLGWriter
java.lang.Object
ucar.nc2.ncml.NcMLGWriter
public class NcMLGWriter
- extends Object
Helper class to write NcML-G.
- Author:
- caron
- See Also:
NetcdfFile
,
http://zeus.pin.unifi.it/projectsSites/galeon2-ncml-gml/
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ncNS
protected static final org.jdom.Namespace ncNS
schemaLocation
protected static final String schemaLocation
- See Also:
- Constant Field Values
NcMLGWriter
public NcMLGWriter()
writeXML
public void writeXML(NetcdfDataset ncd,
OutputStream os,
boolean showCoords,
String uri)
throws IOException
- Write a NetcdfDataset as an NcML-G document to the specified stream.
- Parameters:
ncd
- write this dataset; should have opened with "add coordinates".os
- write to this OutputStreamshowCoords
- show 1D coordinate valuesuri
- use this uri, if null use getLocation()
- Throws:
IOException
- on io error
main
public static void main(String[] arg)
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.