|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.csiro.netcdf.NcDefineDimension
public class NcDefineDimension
The ncdefineDim command defines a Dimension in a netCDF file.
Copyright 2010, CSIRO Australia All rights reserved.
| Field Summary | |
|---|---|
static String |
DIMENSION_NAME
The name of the command line option used for specifying the name of the dimension. |
static String |
DIMENSION_SIZE
The name of the command line option used for specifying the size of the dimension. |
static String |
IS_LARGE_FILE
Whether the netCDF file should be written with large file support, that is, 64-bit addressing for files greater than 2 GB. |
static String |
NC_DEFINE_DIM_COMMAND_NAME
The command name |
static String |
OUTPUT_FILE
The name of the command line option used for specifying the output netCDF file name. |
| Fields inherited from interface au.csiro.netcdf.cli.Command |
|---|
MAX_32BIT_OFFSET_FILE_SIZE, PRINT_WIDTH |
| Constructor Summary | |
|---|---|
NcDefineDimension()
Constructor |
|
| Method Summary | |
|---|---|
org.apache.commons.cli.Options |
createOptions()
Create the command line options for this command. |
void |
execute(String[] args)
Run the command. |
void |
execute(String outputFilename,
String dimensionName,
int dimensionSize,
boolean isUnlimited,
boolean isLargeFileSupport)
Allows the command to be run programmatically, instead of from a command line. |
String |
getCommandName()
|
String |
getUsageString()
|
String |
toString()
|
String |
validCommand(String[] commandLine)
Determine if this command is valid, check its syntax. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NC_DEFINE_DIM_COMMAND_NAME
public static final String OUTPUT_FILE
public static final String DIMENSION_SIZE
public static final String DIMENSION_NAME
public static final String IS_LARGE_FILE
| Constructor Detail |
|---|
public NcDefineDimension()
| Method Detail |
|---|
public void execute(String[] args)
throws org.apache.commons.cli.ParseException,
IOException,
IllegalArgumentException
Command
execute in interface Commandargs - command line arguments.
org.apache.commons.cli.ParseException - thrown if the command line arguments can not be parsed.
IOException - thrown if netCDF can to be written to or read from.
IllegalArgumentException
public void execute(String outputFilename,
String dimensionName,
int dimensionSize,
boolean isUnlimited,
boolean isLargeFileSupport)
throws IOException,
SecurityException,
IllegalStateException
outputFilename - the netCDF file in which to define a dimension.dimensionName - the name of the dimension, this value will be used to reference the dimension.dimensionSize - the size of the dimension, if the dimension is unlimited, then a size of 0 is used.isUnlimited - whether the size of the dimension is unlimited. note: only the first dimension defined can be
unlimited.isLargeFileSupport - whether the netCDF file should be written with large file support, i.e. 64-bit addressing for files
greater than 2 GB.
IOException - thrown if netCDF can to be written to or read from.
SecurityException - thrown if a security manager exists and it prevents the netCDF file from being created.
IllegalStateException - thrown if the Dimension can not be added to the netCDF-3 file.public String getCommandName()
getCommandName in interface Commandpublic String toString()
toString in class Objectpublic org.apache.commons.cli.Options createOptions()
Command
createOptions in interface Commandpublic String getUsageString()
getUsageString in interface Commandpublic String validCommand(String[] commandLine)
validCommand in interface CommandcommandLine - command line arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||