public interface ReaderList
ReaderList
interface is designed to group together
a set of related EarthDataReader
instances with the same earth transform and allow them to be
accessible with less I/O overhead than if they were each opened
separately.Modifier and Type | Method and Description |
---|---|
int |
getClosestIndex(java.util.Date date)
Get the index of the reader closest in start date to the
specified date.
|
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.
|
EarthTransform getTransform()
int size()
java.util.Date getStartDate(int index)
index
- the reader index to query.DataVariable getVariable(int index, java.lang.String varName) throws java.io.IOException
index
- the reader index to query.varName
- the variable name to retrieve.java.io.IOException
- if an error occurred accessing the variable.EarthDataReader getReader(int index) throws java.io.IOException
index
- the reader index to return.java.io.IOException
- if an error occurred accessing the reader.int getClosestIndex(java.util.Date date)
date
- the date to get the closest reader for.