ucar.nc2.ncml
Class NcMLGWriter
java.lang.Object
ucar.nc2.ncml.NcMLGWriter
public class NcMLGWriter
- extends java.lang.Object
Helper class to write NcML-G.
- Version:
- $Revision:63 $ $Date:2006-07-12 21:50:51Z $
- Author:
- caron
- See Also:
NetcdfFile
|
Field Summary |
protected static org.jdom.Namespace |
ncNS
|
protected static java.lang.String |
schemaLocation
|
|
Method Summary |
static void |
main(java.lang.String[] arg)
|
void |
writeXML(NetcdfDataset ncd,
java.io.OutputStream os,
boolean showCoords,
java.lang.String uri)
Write a NetcdfDataset as an NcML-G document to the specified stream. |
| 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 java.lang.String schemaLocation
- See Also:
- Constant Field Values
NcMLGWriter
public NcMLGWriter()
writeXML
public void writeXML(NetcdfDataset ncd,
java.io.OutputStream os,
boolean showCoords,
java.lang.String uri)
throws java.io.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:
java.io.IOException
main
public static void main(java.lang.String[] arg)