public abstract class StationObsDatasetImpl extends PointObsDatasetImpl implements StationObsDataset
Modifier and Type | Field and Description |
---|---|
protected StationDatasetHelper |
stationHelper |
protected List<Station> |
stations |
formatter, timeUnit
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title
Constructor and Description |
---|
StationObsDatasetImpl() |
StationObsDatasetImpl(NetcdfDataset ncfile) |
StationObsDatasetImpl(String title,
String description,
String location) |
Modifier and Type | Method and Description |
---|---|
List |
getData(LatLonRect boundingBox,
CancelTask cancel)
Get all data within the specified bounding box, allow user to cancel.
|
List |
getData(LatLonRect boundingBox,
Date start,
Date end,
CancelTask cancel)
Get all data within the specified bounding box and date range, allow user to cancel.
|
List |
getData(List<Station> stations)
Get all data for a list of Stations.
|
List |
getData(List<Station> stations,
CancelTask cancel)
Get all data for a list of Stations, allow user to cancel.
|
List |
getData(List<Station> stations,
Date start,
Date end)
Get data for a list of Stations within the specified date range.
|
List |
getData(List<Station> stations,
Date start,
Date end,
CancelTask cancel)
Get data for a list of Stations within the specified date range, allow user to cancel.
|
List |
getData(Station s)
Get all data for this Station.
|
List |
getData(Station s,
Date start,
Date end)
Get data for this Station within the specified date range.
|
List |
getData(Station s,
Date start,
Date end,
CancelTask cancel)
Get data for this Station within the specified date range, allow user to cancel.
|
Class |
getDataClass()
The getData() methods return objects of this Class
|
DataIterator |
getDataIterator(Station s)
Get all data for this Station.
|
DataIterator |
getDataIterator(Station s,
Date start,
Date end)
Get data for this Station within the specified date range.
|
String |
getDetailInfo() |
FeatureType |
getScientificDataType() |
Station |
getStation(String id)
Find a Station by name
|
int |
getStationDataCount(Station s)
How many Data objects are available for this Station?
|
List<Station> |
getStations()
Get all the Stations in the collection.
|
List<Station> |
getStations(CancelTask cancel)
Get all the Stations in the collection, allow user to cancel.
|
List<Station> |
getStations(LatLonRect boundingBox)
Get all the Stations within a bounding box.
|
List<Station> |
getStations(LatLonRect boundingBox,
CancelTask cancel)
Get all the Stations within a bounding box, allow user to cancel.
|
void |
sortByTime(List<StationObsDatatype> stationObs) |
getData, getData, getData, getMetersConversionFactor, getTime, getTimeUnits, setTimeUnits
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setBoundingBox, setDescription, setEndDate, setLocationURI, setStartDate, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle
getData
getData, getData, getData, getData, getDataCount, getDataIterator, getTimeUnits
protected StationDatasetHelper stationHelper
public StationObsDatasetImpl()
public StationObsDatasetImpl(String title, String description, String location)
public StationObsDatasetImpl(NetcdfDataset ncfile)
public String getDetailInfo()
getDetailInfo
in interface TypedDataset
getDetailInfo
in class PointObsDatasetImpl
public FeatureType getScientificDataType()
getScientificDataType
in class PointObsDatasetImpl
public Class getDataClass()
PointCollection
getDataClass
in interface PointCollection
getDataClass
in class PointObsDatasetImpl
public List<Station> getStations() throws IOException
StationCollection
getStations
in interface StationCollection
IOException
- on io errorpublic List<Station> getStations(CancelTask cancel) throws IOException
StationCollection
getStations
in interface StationCollection
cancel
- allow user to cancel. Implementors should return ASAP.IOException
- on io errorpublic List<Station> getStations(LatLonRect boundingBox) throws IOException
StationCollection
getStations
in interface StationCollection
boundingBox
- restrict data to this bounding noxIOException
- on io errorpublic List<Station> getStations(LatLonRect boundingBox, CancelTask cancel) throws IOException
StationCollection
getStations
in interface StationCollection
boundingBox
- restrict data to this bounding noxcancel
- allow user to cancel. Implementors should return ASAP.IOException
- on io errorpublic Station getStation(String id)
StationCollection
getStation
in interface StationCollection
id
- find this namepublic int getStationDataCount(Station s)
StationCollection
getStationDataCount
in interface StationCollection
s
- stationpublic List getData(Station s) throws IOException
StationCollection
getData
in interface StationCollection
s
- for this StationIOException
- on io errorpublic List getData(Station s, Date start, Date end) throws IOException
StationCollection
getData
in interface StationCollection
s
- for this Stationstart
- restrict data to after this timeend
- restrict data to before this timeIOException
- on io errorpublic List getData(Station s, Date start, Date end, CancelTask cancel) throws IOException
StationCollection
getData
in interface StationCollection
s
- for this Stationstart
- restrict data to after this timeend
- restrict data to before this timecancel
- allow user to cancel. Implementors should return ASAP.IOException
- on io errorpublic List getData(List<Station> stations) throws IOException
StationCollection
getData
in interface StationCollection
stations
- for these StationsIOException
- on io erroras a (possibly) more efficient alternative
public List getData(List<Station> stations, CancelTask cancel) throws IOException
StationCollection
getData
in interface StationCollection
stations
- for these Stationscancel
- allow user to cancel. Implementors should return ASAP.IOException
- on io erroras a (possibly) more efficient alternative
public List getData(List<Station> stations, Date start, Date end) throws IOException
StationCollection
getData
in interface StationCollection
stations
- for these Stationsstart
- restrict data to after this timeend
- restrict data to before this timeIOException
- on io erroras a (possibly) more efficient alternative
public List getData(List<Station> stations, Date start, Date end, CancelTask cancel) throws IOException
StationCollection
getData
in interface StationCollection
stations
- for these Stationsstart
- restrict data to after this timeend
- restrict data to before this timecancel
- allow user to cancel. Implementors should return ASAP.IOException
- on io erroras a (possibly) more efficient alternative
public List getData(LatLonRect boundingBox, CancelTask cancel) throws IOException
PointCollection
getData
in interface PointCollection
boundingBox
- restrict data to this bounding noxcancel
- allow user to cancel. Implementors should return ASAP.IOException
- on io erroras a (possibly) more efficient alternative
public List getData(LatLonRect boundingBox, Date start, Date end, CancelTask cancel) throws IOException
PointCollection
getData
in interface PointCollection
boundingBox
- 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.IOException
- on io erroras a (possibly) more efficient alternative
public void sortByTime(List<StationObsDatatype> stationObs)
public DataIterator getDataIterator(Station s)
StationCollection
getDataIterator
in interface StationCollection
s
- for this Stationpublic DataIterator getDataIterator(Station s, Date start, Date end)
getDataIterator
in interface StationCollection
s
- for this Stationstart
- restrict data to after this timeend
- restrict data to before this timeCopyright © 1999–2014 UCAR/Unidata. All rights reserved.