public class NOAA1bFileReader extends EarthDataReader
NOAA1bFileReader
class extends EarthDataReader
to handle NOAA 1b weather satellite data
files from a number of NOAA satellite sensors.dataProjection, info, rawMetadataMap, variables
Constructor and Description |
---|
NOAA1bFileReader(java.lang.String fileName)
Creates a new reader assuming big endian byte order.
|
NOAA1bFileReader(java.lang.String fileName,
boolean isByteSwapped)
Creates a new reader.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader and frees any resources.
|
java.lang.String |
getDataFormat()
Gets the data format description.
|
protected DataVariable |
getPreviewImpl(int index)
Implementation for the subclass.
|
DataVariable |
getVariable(int index)
Creates a data variable object.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
canUpdateNavigation, finalize, getAllGrids, getAllVariables, getCoordinateSystems, getIndex, getInfo, getName, getPreview, getPreview, getRawMetadata, getSceneTime, getSource, getStatistics, getStatisticsVariables, getVariable, getVariables, getVariablesForSystem, putStatistics, setDataProjection, setUnitsMap, updateNavigation
public NOAA1bFileReader(java.lang.String fileName) throws java.io.IOException
fileName
- the NOAA 1b filename.java.io.IOException
- if an error occurred reading the file.public NOAA1bFileReader(java.lang.String fileName, boolean isByteSwapped) throws java.io.IOException
fileName
- the NOAA 1b filename.isByteSwapped
- the byte swapped flag, true if the data
is in little endian byte order.java.io.IOException
- if an error occurred reading the file.public java.lang.String getDataFormat()
EarthDataReader
getDataFormat
in class EarthDataReader
protected DataVariable getPreviewImpl(int index) throws java.io.IOException
EarthDataReader
getPreviewImpl
in class EarthDataReader
java.io.IOException
EarthDataReader.getPreview(int)
public DataVariable getVariable(int index) throws java.io.IOException
EarthDataReader
getVariable
in class EarthDataReader
index
- the index of the variable to get. Indexing
starts at 0.java.io.IOException
- if the data source had I/O errors.EarthDataReader.getPreview(int)
public void close() throws java.io.IOException
EarthDataReader
close
in class EarthDataReader
java.io.IOException
- if the data source had I/O errors.public static void main(java.lang.String[] argv) throws java.lang.Exception
argv
- the array of command line parameters.java.lang.Exception