public class OpendapReaderList extends AbstractReaderList
OpendapReaderList
holds a list of OpendapReader
objects created through the use
of the data URL entries in the results of a CatalogQueryAgent
. The readers are special in
that they provide efficient access to the earth transform and start
dates of the OPeNDAP datasets without the I/O overhead of having to
open and read the DAS and DDS for each dataset. Variables returned
from the OPeNDAP readers are efficient for interactive data access
as they listen through the DataVariable.setAccessHint(int[], int[], int[])
method so that only the
data that is required is downloaded from the OPeNDAP server.Constructor and Description |
---|
OpendapReaderList(CatalogQueryAgent agent)
Creates a new list from entries returned by the query agent.
|
Modifier and Type | Method and Description |
---|---|
CatalogQueryAgent.Entry |
getEntry(int index)
Gets the catalog entry for the specified index.
|
EarthDataReader |
getReader(int index)
Gets the specified earth data reader.
|
java.util.Date |
getStartDate(int index)
Gets the starting date for the specified reader.
|
EarthTransform |
getTransform()
Gets the earth transform for this list.
|
DataVariable |
getVariable(int index,
java.lang.String varName)
Gets a variable from the specified reader.
|
int |
size()
Gets the number of readers in this list.
|
getClosestIndex
public OpendapReaderList(CatalogQueryAgent agent) throws java.io.IOException
agent
- the query agent to use for entries.java.io.IOException
- if an error occurred performing the entries
query.public CatalogQueryAgent.Entry getEntry(int index)
index
- the index of the entry to retrieve.public EarthTransform getTransform()
ReaderList
public int size()
ReaderList
public java.util.Date getStartDate(int index)
ReaderList
index
- the reader index to query.public DataVariable getVariable(int index, java.lang.String varName) throws java.io.IOException
ReaderList
index
- the reader index to query.varName
- the variable name to retrieve.java.io.IOException
- if an error occurred accessing the variable.public EarthDataReader getReader(int index) throws java.io.IOException
ReaderList
index
- the reader index to return.java.io.IOException
- if an error occurred accessing the reader.