Package noaa.coastwatch.io.noaa1b
Class NOAA1bFileReader
java.lang.Object
noaa.coastwatch.io.EarthDataReader
noaa.coastwatch.io.noaa1b.NOAA1bFileReader
The
NOAA1bFileReader
class extends EarthDataReader
to handle NOAA 1b weather satellite data
files from a number of NOAA satellite sensors.- Since:
- 3.2.2
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.io.EarthDataReader
dataProjection, info, rawMetadataMap, variables
-
Constructor Summary
ConstructorDescriptionNOAA1bFileReader
(String fileName) Creates a new reader assuming big endian byte order.NOAA1bFileReader
(String fileName, boolean isByteSwapped) Creates a new reader. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the reader and frees any resources.Gets the data format description.protected DataVariable
getPreviewImpl
(int index) Implementation for the subclass.getVariable
(int index) Creates a data variable object.static void
Tests this class.Methods inherited from class noaa.coastwatch.io.EarthDataReader
canUpdateNavigation, containsVariable, finalize, getAllGrids, getAllVariables, getChunkProducer, getCoordinateSystems, getIndex, getInfo, getName, getPreview, getPreview, getRawMetadata, getRawMetadata, getSceneTime, getSource, getStatistics, getStatisticsVariables, getVariable, getVariables, getVariablesForSystem, putStatistics, setDataProjection, setUnitsMap, updateNavigation
-
Constructor Details
-
NOAA1bFileReader
Creates a new reader assuming big endian byte order.- Parameters:
fileName
- the NOAA 1b filename.- Throws:
IOException
- if an error occurred reading the file.
-
NOAA1bFileReader
Creates a new reader.- Parameters:
fileName
- the NOAA 1b filename.isByteSwapped
- the byte swapped flag, true if the data is in little endian byte order.- Throws:
IOException
- if an error occurred reading the file.
-
-
Method Details
-
getDataFormat
Description copied from class:EarthDataReader
Gets the data format description.- Specified by:
getDataFormat
in classEarthDataReader
-
getPreviewImpl
Description copied from class:EarthDataReader
Implementation for the subclass.- Specified by:
getPreviewImpl
in classEarthDataReader
- Throws:
IOException
- See Also:
-
getVariable
Description copied from class:EarthDataReader
Creates a data variable object. The full data is read into the object.- Specified by:
getVariable
in classEarthDataReader
- Parameters:
index
- the index of the variable to get. Indexing starts at 0.- Returns:
- a data variable object with full data value array.
- Throws:
IOException
- if the data source had I/O errors.- See Also:
-
close
Description copied from class:EarthDataReader
Closes the reader and frees any resources.- Specified by:
close
in classEarthDataReader
- Throws:
IOException
- if the data source had I/O errors.
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.- Throws:
Exception
-