Package noaa.coastwatch.io
Class CWOpendapReader
java.lang.Object
noaa.coastwatch.io.EarthDataReader
noaa.coastwatch.io.OpendapReader
noaa.coastwatch.io.CWOpendapReader
The
CWOpendapReader class reads OPeNDAP
accessible datasets and uses the CoastWatch HDF metadata
conventions to parse the attribute and variable data.- Since:
- 3.2.1
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.io.OpendapReader
connect, das, ddsFields inherited from class noaa.coastwatch.io.EarthDataReader
dataProjection, info, rawMetadataMap, variables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the data format description.doubleGets the CoastWatch HDF metadata version for this dataset.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.OpendapReader
close, getAttributeMap, getPrimitiveClassType, isUnsignedMethods 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
-
CWOpendapReader
Creates a new reader using the specified URL.- Parameters:
url- the network location.- Throws:
IOException- if the an error occurred accessing the dataset.
-
-
Method Details
-
getDataFormat
Gets the data format description.- Specified by:
getDataFormatin classEarthDataReader
-
getMetaVersion
public double getMetaVersion()Gets the CoastWatch HDF metadata version for this dataset.- Returns:
- the metadata version. If no metadata attribute can be found, the metadata version is assumed to be 2.3.
-
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:
-
main
Tests this class.- Parameters:
argv- the array of command line parameters.- Throws:
Exception
-