public abstract class OpendapReader extends EarthDataReader
OpendapReader
class is the base class for readers that
use the OPeNDAP API to read data and metadata.Modifier and Type | Field and Description |
---|---|
protected opendap.dap.DConnect2 |
connect
The data connection.
|
protected opendap.dap.DAS |
das
The data attribute tables.
|
protected opendap.dap.DDS |
dds
The data descriptor object.
|
dataProjection, info, rawMetadataMap, variables
Modifier | Constructor and Description |
---|---|
protected |
OpendapReader(java.lang.String url)
Creates a new reader using the specified URL.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader.
|
protected static java.util.Map |
getAttributeMap(opendap.dap.AttributeTable table,
java.util.Map map)
Creates a map of attributes and values from an attribute
table.
|
protected static java.lang.Class |
getPrimitiveClassType(opendap.dap.BaseType base)
Gets the primitive Java class type for the specified OPeNDAP
base type.
|
protected static boolean |
isUnsigned(opendap.dap.BaseType base)
Returns true if the OPeNDAP primitive type is unsigned.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
canUpdateNavigation, finalize, getAllGrids, getAllVariables, getCoordinateSystems, getDataFormat, getIndex, getInfo, getName, getPreview, getPreview, getPreviewImpl, getRawMetadata, getSceneTime, getSource, getStatistics, getStatisticsVariables, getVariable, getVariable, getVariables, getVariablesForSystem, putStatistics, setDataProjection, setUnitsMap, updateNavigation
protected opendap.dap.DConnect2 connect
protected opendap.dap.DAS das
protected opendap.dap.DDS dds
protected OpendapReader(java.lang.String url) throws java.io.IOException
url
- the network location.java.io.IOException
- if the an error occurred accessing the dataset.protected static java.util.Map getAttributeMap(opendap.dap.AttributeTable table, java.util.Map map) throws java.io.IOException
table
- the attribute table to read.map
- the map to add attribute values to, or null to
create a new map.java.io.IOException
- if an error occurred converting an
attribute value to a numeric type.protected static java.lang.Class getPrimitiveClassType(opendap.dap.BaseType base)
base
- the OPeNDAP base type.protected static boolean isUnsigned(opendap.dap.BaseType base)
public void close() throws java.io.IOException
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