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 StationDatasetHelperstationHelperDeprecated.protected List<ucar.unidata.geoloc.Station>stationsDeprecated.-
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(ucar.nc2.dataset.NetcdfDataset ncfile)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ListgetData(List<ucar.unidata.geoloc.Station> stations)Deprecated.Get all data for a list of Stations.ListgetData(List<ucar.unidata.geoloc.Station> stations, Date start, Date end)Deprecated.Get data for a list of Stations within the specified date range.ListgetData(List<ucar.unidata.geoloc.Station> stations, Date start, Date end, ucar.nc2.util.CancelTask cancel)Deprecated.Get data for a list of Stations within the specified date range, allow user to cancel.ListgetData(List<ucar.unidata.geoloc.Station> stations, ucar.nc2.util.CancelTask cancel)Deprecated.Get all data for a list of Stations, allow user to cancel.ListgetData(ucar.unidata.geoloc.LatLonRect boundingBox, Date start, Date end, ucar.nc2.util.CancelTask cancel)Deprecated.Get all data within the specified bounding box and date range, allow user to cancel.ListgetData(ucar.unidata.geoloc.LatLonRect boundingBox, ucar.nc2.util.CancelTask cancel)Deprecated.Get all data within the specified bounding box, allow user to cancel.ListgetData(ucar.unidata.geoloc.Station s)Deprecated.Get all data for this Station.ListgetData(ucar.unidata.geoloc.Station s, Date start, Date end)Deprecated.Get data for this Station within the specified date range.ListgetData(ucar.unidata.geoloc.Station s, Date start, Date end, ucar.nc2.util.CancelTask cancel)Deprecated.Get data for this Station within the specified date range, allow user to cancel.ClassgetDataClass()Deprecated.The getData() methods return objects of this ClassDataIteratorgetDataIterator(ucar.unidata.geoloc.Station s)Deprecated.Get all data for this Station.DataIteratorgetDataIterator(ucar.unidata.geoloc.Station s, Date start, Date end)Deprecated.Get data for this Station within the specified date range.StringgetDetailInfo()Deprecated.ucar.nc2.constants.FeatureTypegetScientificDataType()Deprecated.ucar.unidata.geoloc.StationgetStation(String id)Deprecated.Find a Station by nameintgetStationDataCount(ucar.unidata.geoloc.Station s)Deprecated.How many Data objects are available for this Station?List<ucar.unidata.geoloc.Station>getStations()Deprecated.Get all the Stations in the collection.List<ucar.unidata.geoloc.Station>getStations(ucar.nc2.util.CancelTask cancel)Deprecated.Get all the Stations in the collection, allow user to cancel.List<ucar.unidata.geoloc.Station>getStations(ucar.unidata.geoloc.LatLonRect boundingBox)Deprecated.Get all the Stations within a bounding box.List<ucar.unidata.geoloc.Station>getStations(ucar.unidata.geoloc.LatLonRect boundingBox, ucar.nc2.util.CancelTask cancel)Deprecated.Get all the Stations within a bounding box, allow user to cancel.voidsortByTime(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.
-
stations
protected List<ucar.unidata.geoloc.Station> stations
Deprecated.
-
-
Constructor Detail
-
StationObsDatasetImpl
public StationObsDatasetImpl()
Deprecated.
-
StationObsDatasetImpl
public StationObsDatasetImpl(String title, String description, String location)
Deprecated.
-
StationObsDatasetImpl
public StationObsDatasetImpl(ucar.nc2.dataset.NetcdfDataset ncfile)
Deprecated.
-
-
Method Detail
-
getDetailInfo
public String getDetailInfo()
Deprecated.- Specified by:
getDetailInfoin interfaceTypedDataset- Overrides:
getDetailInfoin classPointObsDatasetImpl- Returns:
- debug / underlying implementation details
-
getScientificDataType
public ucar.nc2.constants.FeatureType getScientificDataType()
Deprecated.- Overrides:
getScientificDataTypein classPointObsDatasetImpl
-
getDataClass
public Class getDataClass()
Deprecated.Description copied from interface:PointCollectionThe getData() methods return objects of this Class- Specified by:
getDataClassin interfacePointCollection- Overrides:
getDataClassin classPointObsDatasetImpl- Returns:
- Class of the data
-
getStations
public List<ucar.unidata.geoloc.Station> getStations() throws IOException
Deprecated.Description copied from interface:StationCollectionGet all the Stations in the collection.- Specified by:
getStationsin interfaceStationCollection- Returns:
- List of Station
- Throws:
IOException- on io error
-
getStations
public List<ucar.unidata.geoloc.Station> getStations(ucar.nc2.util.CancelTask cancel) throws IOException
Deprecated.Description copied from interface:StationCollectionGet all the Stations in the collection, allow user to cancel.- Specified by:
getStationsin interfaceStationCollection- Parameters:
cancel- allow user to cancel. Implementors should return ASAP.- Returns:
- List of Station
- Throws:
IOException- on io error
-
getStations
public List<ucar.unidata.geoloc.Station> getStations(ucar.unidata.geoloc.LatLonRect boundingBox) throws IOException
Deprecated.Description copied from interface:StationCollectionGet all the Stations within a bounding box.- Specified by:
getStationsin interfaceStationCollection- Parameters:
boundingBox- restrict data to this bounding nox- Returns:
- List of Station
- Throws:
IOException- on io error
-
getStations
public List<ucar.unidata.geoloc.Station> getStations(ucar.unidata.geoloc.LatLonRect boundingBox, ucar.nc2.util.CancelTask cancel) throws IOException
Deprecated.Description copied from interface:StationCollectionGet all the Stations within a bounding box, allow user to cancel.- Specified by:
getStationsin 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 ucar.unidata.geoloc.Station getStation(String id)
Deprecated.Description copied from interface:StationCollectionFind a Station by name- Specified by:
getStationin interfaceStationCollection- Parameters:
id- find this name- Returns:
- Station, or null
-
getStationDataCount
public int getStationDataCount(ucar.unidata.geoloc.Station s)
Deprecated.Description copied from interface:StationCollectionHow many Data objects are available for this Station?- Specified by:
getStationDataCountin interfaceStationCollection- Parameters:
s- station- Returns:
- count or -1 if unknown.
-
getData
public List getData(ucar.unidata.geoloc.Station s) throws IOException
Deprecated.Description copied from interface:StationCollectionGet all data for this Station.- Specified by:
getDatain interfaceStationCollection- Parameters:
s- for this Station- Returns:
- List of getDataClass()
- Throws:
IOException- on io error
-
getData
public List getData(ucar.unidata.geoloc.Station s, Date start, Date end) throws IOException
Deprecated.Description copied from interface:StationCollectionGet data for this Station within the specified date range.- Specified by:
getDatain 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(ucar.unidata.geoloc.Station s, Date start, Date end, ucar.nc2.util.CancelTask cancel) throws IOException
Deprecated.Description copied from interface:StationCollectionGet data for this Station within the specified date range, allow user to cancel.- Specified by:
getDatain 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<ucar.unidata.geoloc.Station> stations) throws IOException
Deprecated.Description copied from interface:StationCollectionGet all data for a list of Stations.- Specified by:
getDatain 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<ucar.unidata.geoloc.Station> stations, ucar.nc2.util.CancelTask cancel) throws IOException
Deprecated.Description copied from interface:StationCollectionGet all data for a list of Stations, allow user to cancel.- Specified by:
getDatain 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<ucar.unidata.geoloc.Station> stations, Date start, Date end) throws IOException
Deprecated.Description copied from interface:StationCollectionGet data for a list of Stations within the specified date range.- Specified by:
getDatain 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<ucar.unidata.geoloc.Station> stations, Date start, Date end, ucar.nc2.util.CancelTask cancel) throws IOException
Deprecated.Description copied from interface:StationCollectionGet data for a list of Stations within the specified date range, allow user to cancel.- Specified by:
getDatain 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(ucar.unidata.geoloc.LatLonRect boundingBox, ucar.nc2.util.CancelTask cancel) throws IOException
Deprecated.Description copied from interface:PointCollectionGet all data within the specified bounding box, allow user to cancel.- Specified by:
getDatain 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(ucar.unidata.geoloc.LatLonRect boundingBox, Date start, Date end, ucar.nc2.util.CancelTask cancel) throws IOException
Deprecated.Description copied from interface:PointCollectionGet all data within the specified bounding box and date range, allow user to cancel.- Specified by:
getDatain 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(ucar.unidata.geoloc.Station s)
Deprecated.Description copied from interface:StationCollectionGet all data for this Station.- Specified by:
getDataIteratorin interfaceStationCollection- Parameters:
s- for this Station- Returns:
- iterator over type getDataClass()
-
getDataIterator
public DataIterator getDataIterator(ucar.unidata.geoloc.Station s, Date start, Date end)
Deprecated.Get data for this Station within the specified date range.- Specified by:
getDataIteratorin interfaceStationCollection- Parameters:
s- for this Stationstart- restrict data to after this timeend- restrict data to before this time- Returns:
- Iterator over type getDataClass()
-
-