|
||||||||||
| 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.List<Station> |
stations
|
| Fields inherited from class ucar.nc2.dt.point.PointObsDatasetImpl |
|---|
formatter, timeUnit |
| Fields inherited from class ucar.nc2.dt.TypedDatasetImpl |
|---|
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title |
| Constructor Summary | |
|---|---|
StationObsDatasetImpl()
|
|
StationObsDatasetImpl(NetcdfDataset 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<Station> stations)
Get all data for a list of Stations. |
java.util.List |
getData(java.util.List<Station> stations,
CancelTask cancel)
Get all data for a list of Stations, allow user to cancel. |
java.util.List |
getData(java.util.List<Station> 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<Station> 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()
|
FeatureType |
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<Station> |
getStations()
Get all the Stations in the collection. |
java.util.List<Station> |
getStations(CancelTask cancel)
Get all the Stations in the collection, allow user to cancel. |
java.util.List<Station> |
getStations(LatLonRect boundingBox)
Get all the Stations within a bounding box. |
java.util.List<Station> |
getStations(LatLonRect boundingBox,
CancelTask cancel)
Get all the Stations within a bounding box, allow user to cancel. |
void |
sortByTime(java.util.List<StationObsDatatype> 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.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.List<Station> stations
| Constructor Detail |
|---|
public StationObsDatasetImpl()
public StationObsDatasetImpl(java.lang.String title,
java.lang.String description,
java.lang.String location)
public StationObsDatasetImpl(NetcdfDataset ncfile)
| Method Detail |
|---|
public java.lang.String getDetailInfo()
getDetailInfo in interface TypedDatasetgetDetailInfo in class PointObsDatasetImplpublic FeatureType getScientificDataType()
getScientificDataType in class PointObsDatasetImplpublic java.lang.Class getDataClass()
PointCollection
getDataClass in interface PointCollectiongetDataClass in class PointObsDatasetImplpublic java.util.List<Station> getStations() throws java.io.IOException
StationCollection
getStations in interface StationCollectionjava.io.IOException - on io errorpublic java.util.List<Station> getStations(CancelTask cancel) throws java.io.IOException
StationCollection
getStations in interface StationCollectioncancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException - on io errorpublic java.util.List<Station> getStations(LatLonRect boundingBox) throws java.io.IOException
StationCollection
getStations in interface StationCollectionboundingBox - restrict data to this bounding nox
java.io.IOException - on io errorpublic java.util.List<Station> getStations(LatLonRect boundingBox, CancelTask cancel) throws java.io.IOException
StationCollection
getStations in interface StationCollectionboundingBox - restrict data to this bounding noxcancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException - on io errorpublic Station getStation(java.lang.String id)
StationCollection
getStation in interface StationCollectionid - find this name
public 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 StationCollections - for this Station
java.io.IOException - on io errorpublic java.util.List getData(Station s, java.util.Date start, java.util.Date end) throws java.io.IOException
StationCollection
getData in interface StationCollections - for this Stationstart - restrict data to after this timeend - restrict data to before this time
java.io.IOException - on io errorpublic java.util.List getData(Station s, java.util.Date start, java.util.Date end, CancelTask cancel) throws java.io.IOException
StationCollection
getData in interface StationCollections - for this Stationstart - restrict data to after this timeend - restrict data to before this timecancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException - on io errorpublic java.util.List getData(java.util.List<Station> stations) throws java.io.IOException
StationCollection
getData in interface StationCollectionstations - for these Stations
java.io.IOException - on io erroras a (possibly) more efficient alternativepublic java.util.List getData(java.util.List<Station> stations, CancelTask cancel) throws java.io.IOException
StationCollection
getData in interface StationCollectionstations - for these Stationscancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException - on io erroras a (possibly) more efficient alternativepublic java.util.List getData(java.util.List<Station> stations, java.util.Date start, java.util.Date end) throws java.io.IOException
StationCollection
getData in interface StationCollectionstations - for these Stationsstart - restrict data to after this timeend - restrict data to before this time
java.io.IOException - on io erroras a (possibly) more efficient alternativepublic java.util.List getData(java.util.List<Station> stations, java.util.Date start, java.util.Date end, CancelTask cancel) throws java.io.IOException
StationCollection
getData in interface StationCollectionstations - for these Stationsstart - restrict data to after this timeend - restrict data to before this timecancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException - on io erroras a (possibly) more efficient alternativepublic java.util.List getData(LatLonRect boundingBox, CancelTask cancel) throws java.io.IOException
PointCollection
getData in interface PointCollectionboundingBox - restrict data to this bounding noxcancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException - on io erroras 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 PointCollectionboundingBox - restrict data to this bounding noxstart - restrict data to after this timeend - restrict data to before this timecancel - allow user to cancel. Implementors should return ASAP.
java.io.IOException - on io erroras a (possibly) more efficient alternativepublic void sortByTime(java.util.List<StationObsDatatype> stationObs)
public DataIterator getDataIterator(Station s)
StationCollection
getDataIterator in interface StationCollections - for this Station
public DataIterator getDataIterator(Station s, java.util.Date start, java.util.Date end)
getDataIterator in interface StationCollections - for this Stationstart - restrict data to after this timeend - restrict data to before this time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||