@Immutable public class Ncdump extends 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(String[] args)
Main program.
|
static void |
ncdump(NetcdfFile nc,
String command,
Writer out,
CancelTask ct)
ncdump, parsing command string, file already open.
|
static void |
ncdump(String command,
Writer out,
CancelTask ct)
ncdump that parses a command string.
|
String |
print() |
static String |
printArray(Array ma)
Print array to returned String.
|
static String |
printArray(Array array,
String name,
CancelTask ct)
Print named array to returned String.
|
static String |
printArrayPlain(Array ma)
Print array as undifferentiated sequence of values.
|
static String |
printStructureData(StructureData sdata)
Print StructureData to returned String.
|
static 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(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, String command, Writer out, CancelTask ct) throws IOException
nc
- apply command to this filecommand
- : command stringout
- send output herect
- allow task to be cancelled; may be null.IOException
public static void ncdump(String command, Writer out, CancelTask ct) throws IOException
command
- command stringout
- send output herect
- allow task to be cancelled; may be null.IOException
- on write errorpublic String print()
public static String printArray(Array array, String name, CancelTask ct)
public static String printArrayPlain(Array ma)
ma
- any Array except ArrayStructurepublic static String printStructureData(StructureData sdata)
public static String printVariableData(Variable v, CancelTask ct) throws IOException
v
- variable to printct
- allow task to be cancelled; may be null.IOException
- on write error