NetcdfCopier (library) or Nccopy (command line)@Deprecated
public class FileWriter2
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileWriter2.ChunkingIndex
Deprecated.
use ucar.nc2.write.ChunkingIndex
|
static class |
FileWriter2.N3StructureStrategy
Deprecated.
do not use
|
| Constructor and Description |
|---|
FileWriter2(NetcdfFile fileIn,
java.lang.String fileOutName,
NetcdfFileWriter.Version version,
Nc4Chunking chunker)
Deprecated.
Use this constructor to copy entire file.
|
FileWriter2(NetcdfFileWriter fileWriter)
Deprecated.
Use this constructor to copy specific variables to new file.
|
| Modifier and Type | Method and Description |
|---|---|
Variable |
addVariable(Variable oldVar)
Deprecated.
Specify which variable will get written
|
double |
copyVarData(java.util.List<Variable> oldVars,
Structure recordVar,
CancelTask cancel)
Deprecated.
Write data from varList into new file.
|
NetcdfFileWriter |
getNetcdfFileWriter()
Deprecated.
|
static void |
main(java.lang.String[] arg)
Deprecated.
use ucar.nc2.write.Nccopy
|
static void |
setDebugFlags(DebugFlags debugFlags)
Deprecated.
Set debugging flags
|
void |
setN3StructureStrategy(FileWriter2.N3StructureStrategy n3StructureStrategy)
Deprecated.
|
NetcdfFile |
write()
Deprecated.
|
NetcdfFile |
write(CancelTask cancel)
Deprecated.
Write the input file to the output file.
|
public FileWriter2(NetcdfFile fileIn, java.lang.String fileOutName, NetcdfFileWriter.Version version, Nc4Chunking chunker) throws java.io.IOException
fileIn - copy this filefileOutName - to this output fileversion - output file versionchunker - chunking strategy (netcdf4 only)java.io.IOException - on read/write errorpublic FileWriter2(NetcdfFileWriter fileWriter)
fileWriter - this encapsolates new file.public static void setDebugFlags(DebugFlags debugFlags)
debugFlags - debug flagspublic void setN3StructureStrategy(FileWriter2.N3StructureStrategy n3StructureStrategy)
public NetcdfFileWriter getNetcdfFileWriter()
public Variable addVariable(Variable oldVar)
oldVar - add this variable, and all parent groupspublic NetcdfFile write() throws java.io.IOException
java.io.IOExceptionpublic NetcdfFile write(CancelTask cancel) throws java.io.IOException
cancel - allow user to cancel; may be null.java.io.IOExceptionpublic double copyVarData(java.util.List<Variable> oldVars, Structure recordVar, CancelTask cancel) throws java.io.IOException
oldVars - list of variables from the original file, with data in themrecordVar - the record variable from the original file, or null means dont use record variablescancel - allow user to cancel, may be null.java.io.IOException - if I/O error@Deprecated
public static void main(java.lang.String[] arg)
throws java.io.IOException
where:
arg - -in fileIn -out fileOut [-netcdf4]java.io.IOException - on read or write error