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, dds
Fields inherited from class noaa.coastwatch.io.EarthDataReader
dataProjection, info, rawMetadataMap, variables
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the data format description.double
Gets the CoastWatch HDF metadata version for this dataset.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.OpendapReader
close, getAttributeMap, getPrimitiveClassType, isUnsigned
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
-
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:
getDataFormat
in 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: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:
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.- Throws:
Exception
-