public static class NetcdfFormatWriter.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
NetcdfFormatWriter.Builder |
addAttribute(Attribute att)
Add a global attribute
|
Dimension |
addDimension(Dimension dim)
Add a dimension to the root group.
|
Dimension |
addDimension(java.lang.String dimName,
int length)
Add a dimension to the root group.
|
Structure.Builder |
addStructure(java.lang.String shortName,
java.lang.String dimString)
Add a Structure to the root group.
|
Dimension |
addUnlimitedDimension(java.lang.String dimName)
Add an unlimited dimension to the root group.
|
Variable.Builder |
addVariable(java.lang.String shortName,
DataType dataType,
java.util.List<Dimension> dims)
Add a Variable to the root group.
|
Variable.Builder |
addVariable(java.lang.String shortName,
DataType dataType,
java.lang.String dimString)
Add a Variable to the root group.
|
NetcdfFormatWriter |
build()
Once this is called, do not use the Builder again.
|
long |
calcSize() |
NetcdfFileFormat |
getFormat() |
IOServiceProvider |
getIosp() |
Group.Builder |
getRootGroup()
Get the root group
|
NetcdfFormatWriter.Builder |
setChunker(Nc4Chunking chunker)
Nc4Chunking, used only for netcdf4
|
NetcdfFormatWriter.Builder |
setExtraHeader(int extraHeaderBytes)
Set extra bytes to reserve in the header.
|
NetcdfFormatWriter.Builder |
setFill(boolean fill)
Set the fill flag.
|
NetcdfFormatWriter.Builder |
setFormat(NetcdfFileFormat format)
Set the format version.
|
NetcdfFormatWriter.Builder |
setIosp(IOServiceProvider iosp) |
NetcdfFormatWriter.Builder |
setLocation(java.lang.String location)
The file locatipn
|
NetcdfFormatWriter.Builder |
setNewFile(boolean newFile)
True if its a new file, false if its an existing file.
|
NetcdfFormatWriter.Builder |
setPreallocateSize(long preallocateSize)
Preallocate the file size, for efficiency.
|
NetcdfFormatWriter.Builder |
setRootGroup(Group.Builder rootGroup)
Set the root group.
|
NetcdfFormatWriter.Builder |
setUseJna(boolean useJna)
Set if you want to use JNA / netcdf c library to do the writing.
|
public NetcdfFormatWriter.Builder addAttribute(Attribute att)
public Dimension addDimension(java.lang.String dimName, int length)
public Structure.Builder addStructure(java.lang.String shortName, java.lang.String dimString)
public Dimension addUnlimitedDimension(java.lang.String dimName)
public Variable.Builder addVariable(java.lang.String shortName, DataType dataType, java.util.List<Dimension> dims)
public Variable.Builder addVariable(java.lang.String shortName, DataType dataType, java.lang.String dimString)
public NetcdfFormatWriter build() throws java.io.IOException
java.io.IOException
public long calcSize()
public NetcdfFileFormat getFormat()
public IOServiceProvider getIosp()
public Group.Builder getRootGroup()
public NetcdfFormatWriter.Builder setChunker(Nc4Chunking chunker)
public NetcdfFormatWriter.Builder setExtraHeader(int extraHeaderBytes)
extraHeaderBytes
- # bytes extra for the headerpublic NetcdfFormatWriter.Builder setFill(boolean fill)
public NetcdfFormatWriter.Builder setFormat(NetcdfFileFormat format)
public NetcdfFormatWriter.Builder setIosp(IOServiceProvider iosp)
public NetcdfFormatWriter.Builder setLocation(java.lang.String location)
public NetcdfFormatWriter.Builder setNewFile(boolean newFile)
public NetcdfFormatWriter.Builder setPreallocateSize(long preallocateSize)
public NetcdfFormatWriter.Builder setRootGroup(Group.Builder rootGroup)
public NetcdfFormatWriter.Builder setUseJna(boolean useJna)