|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.csiro.netcdf.NcWriteVariable
public class NcWriteVariable
The ncwriteVar command writes a specified portion of data to a Variable
object in a netCDF file.
Copyright 2010, CSIRO Australia
All rights reserved.
| Field Summary | |
|---|---|
static String |
NC_WRITE_VAR_COMMAND_NAME
The command name |
| Fields inherited from interface au.csiro.netcdf.cli.Command |
|---|
MAX_32BIT_OFFSET_FILE_SIZE, PRINT_WIDTH |
| Constructor Summary | |
|---|---|
NcWriteVariable()
Default constructor. |
|
| Method Summary | |
|---|---|
org.apache.commons.cli.Options |
createOptions()
Create the command line options for this command. |
void |
execute(File outputFile,
String variableName,
String fillRange,
InputStream dataStream,
boolean binary)
Write data to a variable. |
void |
execute(String[] args)
Run the command. |
String |
getCommandName()
|
String |
getUsageString()
|
String |
toString()
|
String |
validCommand(String[] args)
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_WRITE_VAR_COMMAND_NAME
| Constructor Detail |
|---|
public NcWriteVariable()
| Method Detail |
|---|
public void execute(String[] args)
throws org.apache.commons.cli.ParseException,
IOException
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.
public void execute(File outputFile,
String variableName,
String fillRange,
InputStream dataStream,
boolean binary)
throws IOException
outputFile - The netCDF file to be updated.variableName - The variable to be updated.fillRange - The range in which the data is to be written. Should be of the form n-n, n-n, n...dataStream - The stream from which input data is read. Assumed to contain text with one value per line.binary - True if the dataStream contains binary data, false if it is text
IOException - If either the netCDF file or the input stream cannot be accessed.public String getCommandName()
getCommandName in interface Commandpublic String toString()
toString in class Objectpublic String getUsageString()
getUsageString in interface Commandpublic org.apache.commons.cli.Options createOptions()
Command
createOptions in interface Commandpublic String validCommand(String[] args)
Command
validCommand in interface Commandargs - command line arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||