@Immutable
public class Ncdump
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Ncdump.Builder |
static class |
Ncdump.WantValues
Tell Ncdump if you want values printed.
|
Modifier and Type | Method and Description |
---|---|
static Ncdump.Builder |
builder(NetcdfFile ncfile) |
static void |
main(java.lang.String[] args)
Main program.
|
static void |
ncdump(NetcdfFile nc,
java.lang.String command,
java.io.Writer out,
CancelTask ct)
ncdump, parsing command string, file already open.
|
static void |
ncdump(java.lang.String command,
java.io.Writer out,
CancelTask ct)
ncdump that parses a command string.
|
java.lang.String |
print() |
static java.lang.String |
printArray(Array ma)
Print array to returned String.
|
static java.lang.String |
printArray(Array array,
java.lang.String name,
CancelTask ct)
Print named array to returned String.
|
static java.lang.String |
printArrayPlain(Array ma)
Print array as undifferentiated sequence of values.
|
static java.lang.String |
printStructureData(StructureData sdata)
Print StructureData to returned String.
|
static java.lang.String |
printVariableData(Variable v,
CancelTask ct)
Print all the data of the given Variable.
|
public static Ncdump.Builder builder(NetcdfFile ncfile)
public 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
- argumentspublic static void ncdump(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
public static void ncdump(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 java.lang.String print()
public static java.lang.String printArray(Array ma)
public static java.lang.String printArray(Array array, java.lang.String name, CancelTask ct)
public static java.lang.String printArrayPlain(Array ma)
ma
- any Array except ArrayStructurepublic static java.lang.String printStructureData(StructureData sdata)
public 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 error