public class NOAA1bV2Reader extends NOAA1bReader
NOAA1bV1Reader
Modifier and Type | Class and Description |
---|---|
class |
NOAA1bV2Reader.ArchiveHeaderV2
The archive header version 2 class is an archive header that can
read NOAA-KLM style Archive Retrieval System (ARS) headers.
|
class |
NOAA1bV2Reader.DataHeaderV2
The data header version 2 class is a data header that can
retrieve NOAA-KLM data header information.
|
class |
NOAA1bV2Reader.ScanLineV2
The scan line version 2 class is a scan line that can read,
calibrate, and navigate NOAA-KLM data.
|
NOAA1bReader.ArchiveHeader, NOAA1bReader.DataHeader, NOAA1bReader.LongitudeInterpolator, NOAA1bReader.ScanLine, NOAA1bReader.ScanLineCalibration
Modifier and Type | Field and Description |
---|---|
protected int |
cloudDataOffset
The cloud data offset.
|
static java.lang.String |
DATA_FORMAT
The data format string supported by this class.
|
archive, archiveHeaderSize, attributeDataSize, dataHeaders, GAC_NAVIGATION_END, GAC_NAVIGATION_START, GAC_NAVIGATION_STEP, GAC_SAMPLES, header, inputChannel, LAC_NAVIGATION_END, LAC_NAVIGATION_START, LAC_NAVIGATION_STEP, LAC_SAMPLES, lines, LOOKUP_TABLE_SIZE, MAX_LOOKUP_TABLES, MAX_SCAN_LINES, navigationEnd, navigationStart, navigationStep, records, recordSize, samples, scanLineCache, scanLineMap, sensorWordSize, SWATH_POLY_SIZE
dataProjection, info, rawMetadataMap, variables
Constructor and Description |
---|
NOAA1bV2Reader(java.lang.String file)
Constructs a NOAA 1b version 2 reader from the specified file.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkFormat()
Checks the dataset format and throws an error if it is
incompatible with this reader.
|
protected boolean |
getArchiveFlag()
Checks for an archive header and returns true if so.
|
NOAA1bReader.ArchiveHeader |
getArchiveHeader()
Gets the archive header if it exists.
|
java.lang.String |
getDataFormat()
Gets the data format description.
|
protected int |
getDataFormatVersion()
Gets the data format version.
|
NOAA1bReader.DataHeader |
getDataHeader()
Gets the data header.
|
NOAA1bReader.ScanLine |
getScanLine(int line,
int start,
int count)
Gets the scan line at the specified index.
|
protected java.lang.String[] |
getVariableNames()
Gets the variable names in this dataset.
|
protected boolean |
isNavigationUsable(int record,
java.nio.ByteBuffer buffer)
Gets the navigation data usability flag.
|
protected boolean |
isValidFormatDescription(java.lang.String format)
Checks the data format description.
|
close, getBytes, getDataBuffer, getInt, getLines, getNBit, getPreviewImpl, getRecordStart, getSamples, getShort, getUByte, getUInt, getUShort, getVariable, interpolateNavigation, interpolateRawNavigation, isArchive, isByteSwapped, isPrint
canUpdateNavigation, finalize, getAllGrids, getAllVariables, getCoordinateSystems, getIndex, getInfo, getName, getPreview, getPreview, getRawMetadata, getSceneTime, getSource, getStatistics, getStatisticsVariables, getVariable, getVariables, getVariablesForSystem, putStatistics, setDataProjection, setUnitsMap, updateNavigation
public static final java.lang.String DATA_FORMAT
protected int cloudDataOffset
public NOAA1bV2Reader(java.lang.String file) throws java.io.IOException
file
- the file name to read.java.io.IOException
- if an error occurred reading the file data.public java.lang.String getDataFormat()
getDataFormat
in class EarthDataReader
protected java.lang.String[] getVariableNames()
NOAA1bReader
getVariableNames
in class NOAA1bReader
protected boolean getArchiveFlag() throws java.io.IOException
getArchiveFlag
in class NOAA1bReader
java.io.IOException
protected int getDataFormatVersion()
protected boolean isValidFormatDescription(java.lang.String format)
protected void checkFormat() throws java.io.IOException
NOAA1bReader
checkFormat
in class NOAA1bReader
java.io.IOException
public NOAA1bReader.ArchiveHeader getArchiveHeader() throws java.io.IOException
NOAA1bReader
getArchiveHeader
in class NOAA1bReader
java.io.IOException
- if an error occurred reading the file data.public NOAA1bReader.DataHeader getDataHeader() throws java.io.IOException
NOAA1bReader
getDataHeader
in class NOAA1bReader
java.io.IOException
- if an error occurred reading the file data.protected boolean isNavigationUsable(int record, java.nio.ByteBuffer buffer) throws java.io.IOException
NOAA1bReader
isNavigationUsable
in class NOAA1bReader
record
- the record to check for navigation (note this is
not the same as the line number used in the scan line
constructor).buffer
- the buffer to use for reading data.java.io.IOException
public NOAA1bReader.ScanLine getScanLine(int line, int start, int count) throws java.io.IOException
NOAA1bReader
getScanLine
in class NOAA1bReader
line
- the scan line index in the range [0..lines-1].start
- the starting sensor data sample.count
- the total number of sensor data samples. If the
count is 0, no sensor data is read.java.io.IOException
- if an error occurred reading the file
data or the scan line is marked as missing.NOAA1bReader.ScanLine
,
NOAA1bReader.getLines()