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
ConstructorsConstructorDescriptionNOAA1bFileReader(String fileName) Creates a new reader assuming big endian byte order.NOAA1bFileReader(String fileName, boolean isByteSwapped) Creates a new reader. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the reader and frees any resources.Gets the data format description.protected DataVariablegetPreviewImpl(int index) Implementation for the subclass.getVariable(int index) Creates a data variable object.static voidTests this class.Methods inherited from class noaa.coastwatch.io.EarthDataReader
canUpdateNavigation, containsVariable, finalize, findVariable, 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:EarthDataReaderGets the data format description.- Specified by:
getDataFormatin classEarthDataReader
-
getPreviewImpl
Description copied from class:EarthDataReaderImplementation for the subclass.- Specified by:
getPreviewImplin classEarthDataReader- Throws:
IOException- See Also:
-
getVariable
Description copied from class:EarthDataReaderCreates a data variable object. The full data is read into the object.- Specified by:
getVariablein 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:EarthDataReaderCloses the reader and frees any resources.- Specified by:
closein 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
-