|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.dt.point.SubsetServiceDataset
public class SubsetServiceDataset
| Constructor Summary | |
|---|---|
SubsetServiceDataset(java.lang.String ncml,
java.lang.String stations)
|
|
| Method Summary | |
|---|---|
void |
close()
Close all resources associated with this dataset. |
Attribute |
findGlobalAttributeIgnoreCase(java.lang.String name)
|
LatLonRect |
getBoundingBox()
|
java.util.List |
getData()
Get all data. |
java.util.List |
getData(CancelTask cancel)
Get all data, allow user to cancel. |
java.util.List |
getData(LatLonRect boundingBox)
Get all data within the specified bounding box. |
java.util.List |
getData(LatLonRect boundingBox,
CancelTask cancel)
Get all data within the specified bounding box, allow user to cancel. |
java.util.List |
getData(LatLonRect boundingBox,
java.util.Date start,
java.util.Date end)
Get all data within the specified bounding box and date range. |
java.util.List |
getData(LatLonRect boundingBox,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
Get all data within the specified bounding box and date range, allow user to cancel. |
java.util.List |
getData(java.util.List stations)
Get all data for a list of Stations. |
java.util.List |
getData(java.util.List stations,
CancelTask cancel)
Get all data for a list of Stations, allow user to cancel. |
java.util.List |
getData(java.util.List stations,
java.util.Date start,
java.util.Date end)
Get data for a list of Stations within the specified date range. |
java.util.List |
getData(java.util.List stations,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
Get data for a list of Stations within the specified date range, allow user to cancel. |
java.util.List |
getData(Station s)
Get all data for this Station. |
java.util.List |
getData(Station s,
CancelTask cancel)
Get all data for this Station, allow user to cancel. |
java.util.List |
getData(Station s,
java.util.Date start,
java.util.Date end)
Get data for this Station within the specified date range. |
java.util.List |
getData(Station s,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
Get data for this Station within the specified date range, allow user to cancel. |
java.lang.Class |
getDataClass()
The getData() methods return objects of this Class |
int |
getDataCount()
Get estimate of number of data records (may not be exact). |
DataIterator |
getDataIterator(int bufferSize)
Get an efficient iterator over all the data in the Collection. |
DataIterator |
getDataIterator(Station s)
Get all data for this Station. |
DataIterator |
getDataIterator(Station s,
java.util.Date start,
java.util.Date end)
Get data for this Station within the specified date range. |
VariableSimpleIF |
getDataVariable(java.lang.String shortName)
Get the named data Variable. |
java.util.List |
getDataVariables()
The data Variables available in this dataset. |
java.lang.String |
getDescription()
|
java.lang.String |
getDetailInfo()
|
java.util.Date |
getEndDate()
|
java.util.List |
getGlobalAttributes()
List of global attributes. |
java.lang.String |
getLocationURI()
|
NetcdfFile |
getNetcdfFile()
|
java.util.Date |
getStartDate()
|
Station |
getStation(java.lang.String name)
Find a Station by name |
int |
getStationDataCount(Station s)
How many Data objects are available for this Station? |
java.util.List |
getStations()
Get all the Stations in the collection. |
java.util.List |
getStations(CancelTask cancel)
Get all the Stations in the collection, allow user to cancel. |
java.util.List |
getStations(LatLonRect boundingBox)
Get all the Stations within a bounding box. |
java.util.List |
getStations(LatLonRect boundingBox,
CancelTask cancel)
Get all the Stations within a bounding box, allow user to cancel. |
DateUnit |
getTimeUnits()
Get the units of Calendar time. |
java.lang.String |
getTitle()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubsetServiceDataset(java.lang.String ncml,
java.lang.String stations)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String getTitle()
getTitle in interface TypedDatasetpublic java.lang.String getDescription()
getDescription in interface TypedDatasetpublic java.lang.String getLocationURI()
getLocationURI in interface TypedDatasetpublic java.util.Date getStartDate()
getStartDate in interface TypedDatasetpublic java.util.Date getEndDate()
getEndDate in interface TypedDatasetpublic LatLonRect getBoundingBox()
getBoundingBox in interface TypedDatasetpublic java.util.List getGlobalAttributes()
TypedDataset
getGlobalAttributes in interface TypedDatasetpublic Attribute findGlobalAttributeIgnoreCase(java.lang.String name)
findGlobalAttributeIgnoreCase in interface TypedDatasetname - attribute name
public java.util.List getDataVariables()
TypedDataset
getDataVariables in interface TypedDatasetpublic VariableSimpleIF getDataVariable(java.lang.String shortName)
TypedDataset
getDataVariable in interface TypedDatasetshortName - of data Variable.
public NetcdfFile getNetcdfFile()
getNetcdfFile in interface TypedDataset
public void close()
throws java.io.IOException
TypedDataset
close in interface TypedDatasetjava.io.IOException - on I/O errorpublic java.lang.String getDetailInfo()
getDetailInfo in interface TypedDatasetpublic java.lang.Class getDataClass()
PointCollection
getDataClass in interface PointCollectionpublic DateUnit getTimeUnits()
PointCollection
getTimeUnits in interface PointCollection
public java.util.List getData()
throws java.io.IOException
PointCollection
getData in interface PointCollectionjava.io.IOExceptionas a (possibly) more efficient alternative
public java.util.List getData(CancelTask cancel)
throws java.io.IOException
PointCollection
getData in interface PointCollectioncancel - allow user to cancel. Implementors should return ASAP.
java.io.IOExceptionas a (possibly) more efficient alternativepublic int getDataCount()
PointCollection
getDataCount in interface PointCollection
public java.util.List getData(LatLonRect boundingBox)
throws java.io.IOException
PointCollection
getData in interface PointCollectionjava.io.IOExceptionas a (possibly) more efficient alternative
public java.util.List getData(LatLonRect boundingBox,
CancelTask cancel)
throws java.io.IOException
PointCollection
getData in interface PointCollectioncancel - allow user to cancel. Implementors should return ASAP.
java.io.IOExceptionas a (possibly) more efficient alternative
public java.util.List getData(LatLonRect boundingBox,
java.util.Date start,
java.util.Date end)
throws java.io.IOException
PointCollection
getData in interface PointCollectionjava.io.IOExceptionas a (possibly) more efficient alternative
public java.util.List getData(LatLonRect boundingBox,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
throws java.io.IOException
PointCollection
getData in interface PointCollectioncancel - allow user to cancel. Implementors should return ASAP.
java.io.IOExceptionas a (possibly) more efficient alternative
public DataIterator getDataIterator(int bufferSize)
throws java.io.IOException
PointCollectionWe dont need a cancelTask, just stop the iteration if the user want to cancel.
Example for point observations:
Iterator iter = pointObsDataset.getDataIterator();
while (iter.hasNext()) {
PointObsDatatype pobs = (PointObsDatatype) iter.next();
StructureData sdata = pobs.getData();
// process fully
}
getDataIterator in interface PointCollectionbufferSize - if > 0, the internal buffer size, else use the default. Typically 100k - 1M for best results.
java.io.IOException
public java.util.List getStations()
throws java.io.IOException
StationCollection
getStations in interface StationCollectionjava.io.IOException
public java.util.List getStations(CancelTask cancel)
throws java.io.IOException
StationCollection
getStations in interface StationCollectioncancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException
public java.util.List getStations(LatLonRect boundingBox)
throws java.io.IOException
StationCollection
getStations in interface StationCollectionjava.io.IOException
public java.util.List getStations(LatLonRect boundingBox,
CancelTask cancel)
throws java.io.IOException
StationCollection
getStations in interface StationCollectioncancel - allow user to cancel. Implementors should return ASAP.
java.io.IOExceptionpublic Station getStation(java.lang.String name)
StationCollection
getStation in interface StationCollectionpublic int getStationDataCount(Station s)
StationCollection
getStationDataCount in interface StationCollections - station
public java.util.List getData(Station s)
throws java.io.IOException
StationCollection
getData in interface StationCollectionjava.io.IOException
public java.util.List getData(Station s,
CancelTask cancel)
throws java.io.IOException
StationCollection
getData in interface StationCollectioncancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException
public java.util.List getData(Station s,
java.util.Date start,
java.util.Date end)
throws java.io.IOException
StationCollection
getData in interface StationCollectionjava.io.IOException
public java.util.List getData(Station s,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
throws java.io.IOException
StationCollection
getData in interface StationCollectioncancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException
public java.util.List getData(java.util.List stations)
throws java.io.IOException
StationCollection
getData in interface StationCollectionjava.io.IOExceptionas a (possibly) more efficient alternative
public java.util.List getData(java.util.List stations,
CancelTask cancel)
throws java.io.IOException
StationCollection
getData in interface StationCollectioncancel - allow user to cancel. Implementors should return ASAP.
java.io.IOExceptionas a (possibly) more efficient alternative
public java.util.List getData(java.util.List stations,
java.util.Date start,
java.util.Date end)
throws java.io.IOException
StationCollection
getData in interface StationCollectionjava.io.IOExceptionas a (possibly) more efficient alternative
public java.util.List getData(java.util.List stations,
java.util.Date start,
java.util.Date end,
CancelTask cancel)
throws java.io.IOException
StationCollection
getData in interface StationCollectioncancel - allow user to cancel. Implementors should return ASAP.
java.io.IOExceptionas a (possibly) more efficient alternativepublic DataIterator getDataIterator(Station s)
StationCollection
getDataIterator in interface StationCollection
public DataIterator getDataIterator(Station s,
java.util.Date start,
java.util.Date end)
StationCollection
getDataIterator in interface StationCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||