Package ucar.nc2.dt.point
Class StationObsDatasetImpl
- java.lang.Object
-
- ucar.nc2.dt.TypedDatasetImpl
-
- ucar.nc2.dt.point.PointObsDatasetImpl
-
- ucar.nc2.dt.point.StationObsDatasetImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PointCollection
,PointObsDataset
,StationCollection
,StationObsDataset
,TypedDataset
- Direct Known Subclasses:
CFstationObsDataset
,MadisStationObsDataset
,NdbcDataset
,OldUnidataStationObsDataset
,SequenceObsDataset
,UnidataStationObsDataset
,UnidataStationObsDataset2
,UnidataStationObsMultidimDataset
public abstract class StationObsDatasetImpl extends PointObsDatasetImpl implements StationObsDataset
Deprecated.use ucar.nc2.ft.pointSuperclass for implementations of StationObsDataset. Subclass needs to:- fill the station array
- implement getData( Station s, CancelTask)
-
-
Field Summary
Fields Modifier and Type Field Description protected StationDatasetHelper
stationHelper
Deprecated.protected List<Station>
stations
Deprecated.-
Fields inherited from class ucar.nc2.dt.point.PointObsDatasetImpl
formatter, timeUnit
-
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl
boundingBox, dataVariables, desc, endDate, location, netcdfDataset, parseInfo, startDate, title
-
-
Constructor Summary
Constructors Constructor Description StationObsDatasetImpl()
Deprecated.StationObsDatasetImpl(String title, String description, String location)
Deprecated.StationObsDatasetImpl(NetcdfDataset ncfile)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List
getData(List<Station> stations)
Deprecated.Get all data for a list of Stations.List
getData(List<Station> stations, Date start, Date end)
Deprecated.Get data for a list of Stations within the specified date range.List
getData(List<Station> stations, Date start, Date end, CancelTask cancel)
Deprecated.Get data for a list of Stations within the specified date range, allow user to cancel.List
getData(List<Station> stations, CancelTask cancel)
Deprecated.Get all data for a list of Stations, allow user to cancel.List
getData(LatLonRect boundingBox, Date start, Date end, CancelTask cancel)
Deprecated.Get all data within the specified bounding box and date range, allow user to cancel.List
getData(LatLonRect boundingBox, CancelTask cancel)
Deprecated.Get all data within the specified bounding box, allow user to cancel.List
getData(Station s)
Deprecated.Get all data for this Station.List
getData(Station s, Date start, Date end)
Deprecated.Get data for this Station within the specified date range.List
getData(Station s, Date start, Date end, CancelTask cancel)
Deprecated.Get data for this Station within the specified date range, allow user to cancel.Class
getDataClass()
Deprecated.The getData() methods return objects of this ClassDataIterator
getDataIterator(Station s)
Deprecated.Get all data for this Station.DataIterator
getDataIterator(Station s, Date start, Date end)
Deprecated.Get data for this Station within the specified date range.String
getDetailInfo()
Deprecated.FeatureType
getScientificDataType()
Deprecated.Station
getStation(String id)
Deprecated.Find a Station by nameint
getStationDataCount(Station s)
Deprecated.How many Data objects are available for this Station?List<Station>
getStations()
Deprecated.Get all the Stations in the collection.List<Station>
getStations(CancelTask cancel)
Deprecated.Get all the Stations in the collection, allow user to cancel.List<Station>
getStations(LatLonRect boundingBox)
Deprecated.Get all the Stations within a bounding box.List<Station>
getStations(LatLonRect boundingBox, CancelTask cancel)
Deprecated.Get all the Stations within a bounding box, allow user to cancel.void
sortByTime(List<StationObsDatatype> stationObs)
Deprecated.-
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, getLocation, 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.PointCollection
getData, getData, getData, getData, getDataCount, getDataIterator, getTimeUnits
-
Methods inherited from interface ucar.nc2.dt.StationCollection
getData
-
Methods inherited from interface ucar.nc2.dt.TypedDataset
close, findGlobalAttributeIgnoreCase, getBoundingBox, getDataVariable, getDataVariables, getDescription, getEndDate, getGlobalAttributes, getLocationURI, getNetcdfFile, getStartDate, getTitle
-
-
-
-
Field Detail
-
stationHelper
protected StationDatasetHelper stationHelper
Deprecated.
-
-
Constructor Detail
-
StationObsDatasetImpl
public StationObsDatasetImpl()
Deprecated.
-
StationObsDatasetImpl
public StationObsDatasetImpl(String title, String description, String location)
Deprecated.
-
StationObsDatasetImpl
public StationObsDatasetImpl(NetcdfDataset ncfile)
Deprecated.
-
-
Method Detail
-
getDetailInfo
public String getDetailInfo()
Deprecated.- Specified by:
getDetailInfo
in interfaceTypedDataset
- Overrides:
getDetailInfo
in classPointObsDatasetImpl
- Returns:
- debug / underlying implementation details
-
getScientificDataType
public FeatureType getScientificDataType()
Deprecated.- Overrides:
getScientificDataType
in classPointObsDatasetImpl
-
getDataClass
public Class getDataClass()
Deprecated.Description copied from interface:PointCollection
The getData() methods return objects of this Class- Specified by:
getDataClass
in interfacePointCollection
- Overrides:
getDataClass
in classPointObsDatasetImpl
- Returns:
- Class of the data
-
getStations
public List<Station> getStations() throws IOException
Deprecated.Description copied from interface:StationCollection
Get all the Stations in the collection.- Specified by:
getStations
in interfaceStationCollection
- Returns:
- List of Station
- Throws:
IOException
- on io error
-
getStations
public List<Station> getStations(CancelTask cancel) throws IOException
Deprecated.Description copied from interface:StationCollection
Get all the Stations in the collection, allow user to cancel.- Specified by:
getStations
in interfaceStationCollection
- Parameters:
cancel
- allow user to cancel. Implementors should return ASAP.- Returns:
- List of Station
- Throws:
IOException
- on io error
-
getStations
public List<Station> getStations(LatLonRect boundingBox) throws IOException
Deprecated.Description copied from interface:StationCollection
Get all the Stations within a bounding box.- Specified by:
getStations
in interfaceStationCollection
- Parameters:
boundingBox
- restrict data to this bounding nox- Returns:
- List of Station
- Throws:
IOException
- on io error
-
getStations
public List<Station> getStations(LatLonRect boundingBox, CancelTask cancel) throws IOException
Deprecated.Description copied from interface:StationCollection
Get all the Stations within a bounding box, allow user to cancel.- Specified by:
getStations
in interfaceStationCollection
- Parameters:
boundingBox
- restrict data to this bounding noxcancel
- allow user to cancel. Implementors should return ASAP.- Returns:
- List of Station
- Throws:
IOException
- on io error
-
getStation
public Station getStation(String id)
Deprecated.Description copied from interface:StationCollection
Find a Station by name- Specified by:
getStation
in interfaceStationCollection
- Parameters:
id
- find this name- Returns:
- Station, or null
-
getStationDataCount
public int getStationDataCount(Station s)
Deprecated.Description copied from interface:StationCollection
How many Data objects are available for this Station?- Specified by:
getStationDataCount
in interfaceStationCollection
- Parameters:
s
- station- Returns:
- count or -1 if unknown.
-
getData
public List getData(Station s) throws IOException
Deprecated.Description copied from interface:StationCollection
Get all data for this Station.- Specified by:
getData
in interfaceStationCollection
- Parameters:
s
- for this Station- Returns:
- List of getDataClass()
- Throws:
IOException
- on io error
-
getData
public List getData(Station s, Date start, Date end) throws IOException
Deprecated.Description copied from interface:StationCollection
Get data for this Station within the specified date range.- Specified by:
getData
in interfaceStationCollection
- Parameters:
s
- for this Stationstart
- restrict data to after this timeend
- restrict data to before this time- Returns:
- List of getDataClass()
- Throws:
IOException
- on io error
-
getData
public List getData(Station s, Date start, Date end, CancelTask cancel) throws IOException
Deprecated.Description copied from interface:StationCollection
Get data for this Station within the specified date range, allow user to cancel.- Specified by:
getData
in interfaceStationCollection
- Parameters:
s
- for this Stationstart
- restrict data to after this timeend
- restrict data to before this timecancel
- allow user to cancel. Implementors should return ASAP.- Returns:
- List of getDataClass()
- Throws:
IOException
- on io error
-
getData
public List getData(List<Station> stations) throws IOException
Deprecated.Description copied from interface:StationCollection
Get all data for a list of Stations.- Specified by:
getData
in interfaceStationCollection
- Parameters:
stations
- for these Stations- Returns:
- List of getDataClass()
- Throws:
IOException
- on io error- See Also:
as a (possibly) more efficient alternative
-
getData
public List getData(List<Station> stations, CancelTask cancel) throws IOException
Deprecated.Description copied from interface:StationCollection
Get all data for a list of Stations, allow user to cancel.- Specified by:
getData
in interfaceStationCollection
- Parameters:
stations
- for these Stationscancel
- allow user to cancel. Implementors should return ASAP.- Returns:
- List of getDataClass()
- Throws:
IOException
- on io error- See Also:
as a (possibly) more efficient alternative
-
getData
public List getData(List<Station> stations, Date start, Date end) throws IOException
Deprecated.Description copied from interface:StationCollection
Get data for a list of Stations within the specified date range.- Specified by:
getData
in interfaceStationCollection
- Parameters:
stations
- for these Stationsstart
- restrict data to after this timeend
- restrict data to before this time- Returns:
- List of getDataClass()
- Throws:
IOException
- on io error- See Also:
as a (possibly) more efficient alternative
-
getData
public List getData(List<Station> stations, Date start, Date end, CancelTask cancel) throws IOException
Deprecated.Description copied from interface:StationCollection
Get data for a list of Stations within the specified date range, allow user to cancel.- Specified by:
getData
in interfaceStationCollection
- Parameters:
stations
- for these Stationsstart
- restrict data to after this timeend
- restrict data to before this timecancel
- allow user to cancel. Implementors should return ASAP.- Returns:
- List of getDataClass()
- Throws:
IOException
- on io error- See Also:
as a (possibly) more efficient alternative
-
getData
public List getData(LatLonRect boundingBox, CancelTask cancel) throws IOException
Deprecated.Description copied from interface:PointCollection
Get all data within the specified bounding box, allow user to cancel.- Specified by:
getData
in interfacePointCollection
- Parameters:
boundingBox
- restrict data to this bounding noxcancel
- allow user to cancel. Implementors should return ASAP.- Returns:
- List of type getDataClass()
- Throws:
IOException
- on io error- See Also:
as a (possibly) more efficient alternative
-
getData
public List getData(LatLonRect boundingBox, Date start, Date end, CancelTask cancel) throws IOException
Deprecated.Description copied from interface:PointCollection
Get all data within the specified bounding box and date range, allow user to cancel.- Specified by:
getData
in interfacePointCollection
- Parameters:
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.- Returns:
- List of type getDataClass()
- Throws:
IOException
- on io error- See Also:
as a (possibly) more efficient alternative
-
sortByTime
public void sortByTime(List<StationObsDatatype> stationObs)
Deprecated.
-
getDataIterator
public DataIterator getDataIterator(Station s)
Deprecated.Description copied from interface:StationCollection
Get all data for this Station.- Specified by:
getDataIterator
in interfaceStationCollection
- Parameters:
s
- for this Station- Returns:
- iterator over type getDataClass()
-
getDataIterator
public DataIterator getDataIterator(Station s, Date start, Date end)
Deprecated.Get data for this Station within the specified date range.- Specified by:
getDataIterator
in interfaceStationCollection
- Parameters:
s
- for this Stationstart
- restrict data to after this timeend
- restrict data to before this time- Returns:
- Iterator over type getDataClass()
-
-