@Immutable public class NcdumpArray extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NcdumpArray.Builder |
static class |
NcdumpArray.WantValues
Tell Ncdump if you want values printed.
|
| Modifier and Type | Method and Description |
|---|---|
static NcdumpArray.Builder |
builder(NetcdfFile ncfile) |
static void |
main(String[] args)
Main program.
|
static void |
ncdump(NetcdfFile nc,
String command,
Writer out,
CancelTask cancel)
ncdump, parsing command string, file already open.
|
static void |
ncdump(String command,
Writer out,
CancelTask cancel)
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 cancel)
Print named array to returned String.
|
static String |
printArrayPlain(Array<?> array)
Print array as undifferentiated sequence of values.
|
static String |
printStructureData(StructureData sdata)
Print StructureData to returned String.
|
static String |
printVariableData(Variable v,
CancelTask cancel)
Print all the data of the given Variable.
|
public static void ncdump(String command, Writer out, CancelTask cancel) throws IOException
command - command stringout - send output herecancel - allow task to be cancelled; may be null.IOException - on write errorpublic static void ncdump(NetcdfFile nc, String command, Writer out, CancelTask cancel) throws IOException
nc - apply command to this filecommand - : command stringout - send output herecancel - allow task to be cancelled; may be null.IOExceptionpublic static NcdumpArray.Builder builder(NetcdfFile ncfile)
public String print()
public static String printVariableData(Variable v, CancelTask cancel) throws IOException
v - variable to printcancel - allow task to be cancelled; may be null.IOException - on write errorpublic static String printArrayPlain(Array<?> array)
array - any Array except StructureDataArraypublic static String printArray(Array<?> array, String name, CancelTask cancel)
public static String printStructureData(StructureData sdata)
public static void main(String[] args)
ucar.nc2.NCdumpW filename [-cdl | -ncml] [-c | -vall] [-v varName1;varName2;..] [-v varName(0:1,:,12)]
where:
args - arguments