public class ByteWriter extends BinaryWriter
DEFAULT_CHUNK_SIZE, HOST, LSB, MSB
info, isCanceled, variables, writeProgress, writeVariableName, writeVariables
Constructor and Description |
---|
ByteWriter(EarthDataInfo info,
java.lang.String file)
Creates a new binary file from the specified earth data info
and file name.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
convertValue(java.lang.Number value)
Converts a data value to a byte array.
|
java.lang.Number |
getDefaultMissing()
Gets the default missing value.
|
double |
getTypeMax()
Gets the type maximum as a double.
|
double |
getTypeMin()
Gets the type minimum as a double.
|
double |
getTypeRange()
Gets the type range as a double.
|
byteSwap, close, flush, getBytes, getBytes, setHeader, setMissing, setOrder, setRange, setScaling, writeHeader, writeVariable
addVariable, cancel, finalize, getDestination, getProgress, getProgressLength, getProgressVariable
public ByteWriter(EarthDataInfo info, java.lang.String file) throws java.io.IOException
info
- the earth data info object.file
- the new binary file name.java.io.IOException
- if an error occurred opening the file.BinaryWriter.BinaryWriter(noaa.coastwatch.util.EarthDataInfo, java.lang.String)
public byte[] convertValue(java.lang.Number value)
BinaryWriter
getTypeMin()
to getTypeMax()
.convertValue
in class BinaryWriter
value
- the value for conversion.public double getTypeMin()
BinaryWriter
getTypeMin
in class BinaryWriter
public double getTypeMax()
BinaryWriter
getTypeMax
in class BinaryWriter
public double getTypeRange()
BinaryWriter
getTypeRange
in class BinaryWriter
public java.lang.Number getDefaultMissing()
BinaryWriter
getDefaultMissing
in class BinaryWriter