@Deprecated
public class NCdumpW
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NCdumpW.WantValues
Deprecated.
do not use
|
| Constructor and Description |
|---|
NCdumpW()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Deprecated.
Main program.
|
static boolean |
print(NetcdfFile nc,
java.lang.String command,
java.io.Writer out,
CancelTask ct)
Deprecated.
use Ncdump.ncdump(NetcdfFile nc, String command, Writer out, CancelTask ct)
|
static boolean |
print(NetcdfFile nc,
java.io.Writer out,
boolean showAll,
boolean showCoords,
boolean ncml,
boolean strict,
java.lang.String varNames,
CancelTask ct)
Deprecated.
ncdump-like print of netcdf file.
|
static boolean |
print(NetcdfFile nc,
java.io.Writer out,
NCdumpW.WantValues showValues,
boolean ncml,
boolean strict,
java.lang.String varNames,
CancelTask ct)
Deprecated.
ncdump-like print of netcdf file.
|
static boolean |
print(java.lang.String filename,
java.io.Writer out,
boolean showAll,
boolean showCoords,
boolean ncml,
boolean strict,
java.lang.String varNames,
CancelTask ct)
Deprecated.
ncdump-like print of netcdf file.
|
static boolean |
print(java.lang.String command,
java.io.Writer out,
CancelTask ct)
Deprecated.
ncdump that parses a command string.
|
static void |
printArray(Array array,
java.io.PrintWriter pw)
Deprecated.
Print array to named PrintWriter
|
static void |
printArrayPlain(Array ma,
java.io.PrintWriter out)
Deprecated.
Print array as undifferentiated sequence of values.
|
static void |
printStructureData(java.io.PrintWriter out,
StructureData sdata)
Deprecated.
Print contents of a StructureData.
|
static java.lang.String |
printVariableData(Variable v,
CancelTask ct)
Deprecated.
Print all the data of the given Variable.
|
static java.lang.String |
printVariableDataSection(Variable v,
java.lang.String sectionSpec,
CancelTask ct)
Deprecated.
Print a section of the data of the given Variable.
|
static java.lang.String |
toString(Array ma)
Deprecated.
Print array to returned String.
|
static java.lang.String |
toString(Array array,
java.lang.String name,
CancelTask ct)
Deprecated.
use Ncdump.printArray(Array array, String name, CancelTask ct)
|
static java.lang.String |
toString(StructureData sdata)
Deprecated.
Print StructureData to returned String.
|
static void |
writeNcML(NetcdfFile ncfile,
java.io.Writer writer,
NCdumpW.WantValues showValues,
java.lang.String url)
Deprecated.
will move in ver 6
|
public static boolean print(java.lang.String command,
java.io.Writer out,
CancelTask ct)
throws java.io.IOException
command - command stringout - send output herect - allow task to be cancelled; may be null.java.io.IOException - on write errorpublic static boolean print(NetcdfFile nc, java.lang.String command, java.io.Writer out, CancelTask ct) throws java.io.IOException
nc - apply command to this filecommand - : command stringout - send output herect - allow task to be cancelled; may be null.java.io.IOException - on write errorpublic static boolean print(java.lang.String filename,
java.io.Writer out,
boolean showAll,
boolean showCoords,
boolean ncml,
boolean strict,
java.lang.String varNames,
CancelTask ct)
throws java.io.IOException
filename - NetcdfFile to openout - print to this streamshowAll - dump all variable datashowCoords - only print header and coordinate variablesncml - print NcML representation (other arguments are ignored)strict - print strict CDL representationvarNames - semicolon delimited list of variables whose data should be printedct - allow task to be cancelled; may be null.java.io.IOException - on write errorpublic static boolean print(NetcdfFile nc, java.io.Writer out, boolean showAll, boolean showCoords, boolean ncml, boolean strict, java.lang.String varNames, CancelTask ct) throws java.io.IOException
nc - already opened NetcdfFileout - print to this streamshowAll - dump all variable datashowCoords - only print header and coordinate variablesncml - print NcML representation (other arguments are ignored)strict - print strict CDL representationvarNames - semicolon delimited list of variables whose data should be printed. May have
Fortran90 like selector: eg varName(1:2,*,2)ct - allow task to be cancelled; may be null.java.io.IOException - on write errorpublic static boolean print(NetcdfFile nc, java.io.Writer out, NCdumpW.WantValues showValues, boolean ncml, boolean strict, java.lang.String varNames, CancelTask ct) throws java.io.IOException
nc - already opened NetcdfFileout - print to this streamshowValues - do you want the variable values printed?ncml - print NcML representation (other arguments are ignored)strict - print strict CDL representationvarNames - semicolon delimited list of variables whose data should be printed. May have
Fortran90 like selector: eg varName(1:2,*,2)ct - allow task to be cancelled; may be null.java.io.IOException - on write errorpublic static java.lang.String printVariableData(Variable v, CancelTask ct) throws java.io.IOException
v - variable to printct - allow task to be cancelled; may be null.java.io.IOException - on write errorpublic static java.lang.String printVariableDataSection(Variable v, java.lang.String sectionSpec, CancelTask ct) throws java.io.IOException, InvalidRangeException
v - variable to printsectionSpec - string specificationct - allow task to be cancelled; may be null.java.io.IOException - on write errorInvalidRangeException - is specified section doesnt match variable shape@Deprecated public static java.lang.String toString(Array array, java.lang.String name, CancelTask ct)
public static void printStructureData(java.io.PrintWriter out,
StructureData sdata)
out - send output here.sdata - StructureData to print.public static java.lang.String toString(StructureData sdata)
public static void printArrayPlain(Array ma, java.io.PrintWriter out)
ma - any Array except ArrayStructureout - print to herepublic static void printArray(Array array, java.io.PrintWriter pw)
public static java.lang.String toString(Array ma)
@Deprecated public static void writeNcML(NetcdfFile ncfile, java.io.Writer writer, NCdumpW.WantValues showValues, java.lang.String url) throws java.io.IOException
ncfile - write NcML for this filewriter - write to this Writer. Must be using UTF-8 encoding (where applicable)showValues - do you want the variable values printed?url - use this for the url attribute; if null use getLocation(). // ??java.io.IOException - on write errorpublic static void main(java.lang.String[] args)
ucar.nc2.NCdumpW filename [-cdl | -ncml] [-c | -vall] [-v varName1;varName2;..] [-v varName(0:1,:,12)]
where:
args - arguments