|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.dt.TypedDatasetImpl
ucar.nc2.dt.point.PointObsDatasetImpl
ucar.nc2.dt.point.StationObsDatasetImpl
public abstract class StationObsDatasetImpl
Superclass for implementations of StationObsDataset. Subclass needs to:
| Field Summary | |
|---|---|
protected StationDatasetHelper |
stationHelper
|
protected java.util.ArrayList |
stations
|
| Fields inherited from class ucar.nc2.dt.point.PointObsDatasetImpl |
|---|
formatter, meterUnit, timeUnit |
| Fields inherited from class ucar.nc2.dt.TypedDatasetImpl |
|---|
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title |
| Constructor Summary | |
|---|---|
StationObsDatasetImpl()
|
|
StationObsDatasetImpl(NetcdfFile ncfile)
|
|
StationObsDatasetImpl(java.lang.String title,
java.lang.String description,
java.lang.String location)
|
|
| Method Summary | |
|---|---|
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,
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,
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 |
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. |
java.lang.String |
getDetailInfo()
Show debug / underlying implementation details |
DataType |
getScientificDataType()
|
Station |
getStation(java.lang.String id)
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. |
void |
sortByTime(java.util.List stationObs)
|
| Methods inherited from class ucar.nc2.dt.point.PointObsDatasetImpl |
|---|
getData, getData, getData, getMetersConversionFactor, getTime, getTimeUnits, setTimeUnits |
| Methods inherited from class ucar.nc2.dt.TypedDatasetImpl |
|---|
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setBoundingBox, setDescription, setEndDate, setLocationURI, setStartDate, setTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ucar.nc2.dt.TypedDataset |
|---|
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle |
| Methods inherited from interface ucar.nc2.dt.PointCollection |
|---|
getData, getData, getData, getData, getDataCount, getDataIterator, getTimeUnits |
| Methods inherited from interface ucar.nc2.dt.StationCollection |
|---|
getData |
| Methods inherited from interface ucar.nc2.dt.PointCollection |
|---|
getData, getData, getData, getData, getDataCount, getDataIterator, getTimeUnits |
| Field Detail |
|---|
protected StationDatasetHelper stationHelper
protected java.util.ArrayList stations
| Constructor Detail |
|---|
public StationObsDatasetImpl()
public StationObsDatasetImpl(java.lang.String title,
java.lang.String description,
java.lang.String location)
public StationObsDatasetImpl(NetcdfFile ncfile)
| Method Detail |
|---|
public java.lang.String getDetailInfo()
TypedDataset
getDetailInfo in interface TypedDatasetgetDetailInfo in class PointObsDatasetImplpublic DataType getScientificDataType()
getScientificDataType in class PointObsDatasetImplpublic java.lang.Class getDataClass()
PointCollection
getDataClass in interface PointCollectiongetDataClass in class PointObsDatasetImpl
public java.util.List getStations()
throws java.io.IOException
StationCollection
getStations in interface StationCollectionjava.io.IOExceptionpublic 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.IOExceptionpublic java.util.List getStations(LatLonRect boundingBox) throws java.io.IOException
StationCollection
getStations in interface StationCollectionjava.io.IOExceptionpublic 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 id)
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.IOExceptionpublic java.util.List getData(Station s, java.util.Date start, java.util.Date end) throws java.io.IOException
StationCollection
getData in interface StationCollectionjava.io.IOExceptionpublic 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 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 alternativepublic 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 alternativepublic void sortByTime(java.util.List stationObs)
public DataIterator getDataIterator(Station s)
StationCollection
getDataIterator in interface StationCollectionpublic DataIterator getDataIterator(Station s, java.util.Date start, java.util.Date end)
getDataIterator in interface StationCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||