public class NcMLGWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
schemaLocation |
Constructor and Description |
---|
NcMLGWriter() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] arg) |
void |
writeXML(NetcdfDataset ncd,
OutputStream os,
boolean showCoords,
String uri)
Write a NetcdfDataset as an NcML-G document to the specified stream.
|
protected static final String schemaLocation
public void writeXML(NetcdfDataset ncd, OutputStream os, boolean showCoords, String uri) throws IOException
ncd
- write this dataset; should have opened with "add coordinates".os
- write to this OutputStreamshowCoords
- show 1D coordinate valuesuri
- use this url, if null use getLocation()IOException
- on io errorpublic static void main(String[] arg)