public abstract class StationTimeSeriesCollectionImpl extends OneNestedPointCollectionImpl implements StationTimeSeriesFeatureCollection
| Modifier and Type | Field and Description |
|---|---|
protected PointFeatureCollectionIterator |
localIterator |
protected StationHelper |
stationHelper |
npts| Constructor and Description |
|---|
StationTimeSeriesCollectionImpl(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Make sure that the internal iterator is complete, and recover resources.
|
PointFeatureCollection |
flatten(LatLonRect boundingBox,
CalendarDateRange dateRange)
Flatten into a PointFeatureCollection, discarding connectedness information.
|
PointFeatureCollection |
flatten(List<String> stations,
CalendarDateRange dateRange,
List<VariableSimpleIF> varList)
Flatten into a PointFeatureCollection, discarding connectedness information.
|
PointFeatureCollection |
flatten(List<String> stations,
DateRange dateRange,
List<VariableSimpleIF> varList)
Flatten into a PointFeatureCollection, discarding connectedness information.
|
LatLonRect |
getBoundingBox()
Get the bounding box including all the stations.
|
NestedPointFeatureCollectionIterator |
getNestedPointFeatureCollectionIterator(int bufferSize)
Iterate through the collection, composed of NestedPointFeatureCollection.
|
PointFeatureCollectionIterator |
getPointFeatureCollectionIterator(int bufferSize)
Iterate through the collection, composed of PointFeatureCollection.
|
Station |
getStation(PointFeature feature)
Get the station that belongs to this feature
|
Station |
getStation(String name)
Find a Station by name.
|
StationTimeSeriesFeature |
getStationFeature(Station s)
Get the collection of data for a particular Station.
|
List<Station> |
getStations()
Get all the Stations in the collection.
|
List<Station> |
getStations(LatLonRect boundingBox)
Get all the Stations within a bounding box.
|
List<Station> |
getStations(List<String> stnNames)
Translate list of station names to list of Stations.
|
boolean |
hasNext()
Use the internal iterator to check if there is another StationTimeSeriesFeature in the iteration.
|
protected abstract void |
initStationHelper() |
StationTimeSeriesFeature |
next()
Use the internal iterator to get the next StationTimeSeriesFeature in the iteration.
|
void |
resetIteration()
Reset the internal iterator for another iteration over the StationTimeSeriesFeatures in this Collection.
|
StationTimeSeriesFeatureCollection |
subset(LatLonRect boundingBox)
Get a subsetted StationCollection from a LatLonRect
|
StationTimeSeriesFeatureCollection |
subset(List<Station> stations)
Get a subsetted StationCollection based on a list of Stations.
|
flatten, getCollectionFeatureType, getName, isMultipleNested, setSize, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflatten, isMultipleNested, sizegetCollectionFeatureType, getNameprotected StationHelper stationHelper
protected PointFeatureCollectionIterator localIterator
public StationTimeSeriesCollectionImpl(String name)
protected abstract void initStationHelper()
public PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws IOException
NestedPointFeatureCollectiongetPointFeatureCollectionIterator in interface NestedPointFeatureCollectionbufferSize - how many bytes can be used to buffer data, use -1 to use default.IOException - on read errorpublic StationTimeSeriesFeature getStationFeature(Station s) throws IOException
StationTimeSeriesFeatureCollectiongetStationFeature in interface StationTimeSeriesFeatureCollections - get data for this station, must have come from this CollectionIOException - on i/o errorpublic Station getStation(PointFeature feature) throws IOException
StationTimeSeriesFeatureCollectiongetStation in interface StationTimeSeriesFeatureCollectionfeature - PointFeature obtained from a StationTimeSeriesFeature in this collectionIOException - on i/o errorpublic StationTimeSeriesFeatureCollection subset(LatLonRect boundingBox) throws IOException
StationTimeSeriesFeatureCollectionsubset in interface NestedPointFeatureCollectionsubset in interface StationTimeSeriesFeatureCollectionboundingBox - spatial subset. may be nullIOException - on i/o errorpublic StationTimeSeriesFeatureCollection subset(List<Station> stations) throws IOException
StationTimeSeriesFeatureCollectionsubset in interface StationTimeSeriesFeatureCollectionstations - only contain these stationsIOException - on i/o errorpublic PointFeatureCollection flatten(List<String> stations, CalendarDateRange dateRange, List<VariableSimpleIF> varList) throws IOException
StationTimeSeriesFeatureCollectionflatten in interface StationTimeSeriesFeatureCollectionstations - only contain these stations; if null or empty use alldateRange - only points in this date range. may be null.varList - only these member variables. may be null. currently ignoredIOException - on read errorpublic PointFeatureCollection flatten(LatLonRect boundingBox, CalendarDateRange dateRange) throws IOException
NestedPointFeatureCollectionflatten in interface NestedPointFeatureCollectionflatten in class OneNestedPointCollectionImplboundingBox - only points in this lat/lon bounding box. may be null.dateRange - only points in this date range. may be null.IOException - on read errorpublic PointFeatureCollection flatten(List<String> stations, DateRange dateRange, List<VariableSimpleIF> varList) throws IOException
StationTimeSeriesFeatureCollectionflatten in interface StationTimeSeriesFeatureCollectionstations - only contain these stations; if null or empty use alldateRange - only points in this date range. may be null.varList - only these member variables. may be null. currently ignoredIOException - on read errorpublic List<Station> getStations()
StationCollectiongetStations in interface StationCollectionpublic List<Station> getStations(List<String> stnNames)
StationCollectiongetStations in interface StationCollectionstnNames - list of stnNamespublic List<Station> getStations(LatLonRect boundingBox) throws IOException
StationCollectiongetStations in interface StationCollectionboundingBox - spatial subsetIOException - on i/o errorpublic Station getStation(String name)
StationCollectiongetStation in interface StationCollectionname - name/id of the stationpublic LatLonRect getBoundingBox()
StationCollectiongetBoundingBox in interface StationCollectionpublic NestedPointFeatureCollectionIterator getNestedPointFeatureCollectionIterator(int bufferSize) throws IOException
NestedPointFeatureCollectiongetNestedPointFeatureCollectionIterator in interface NestedPointFeatureCollectiongetNestedPointFeatureCollectionIterator in class OneNestedPointCollectionImplbufferSize - how many bytes can be used to buffer data, use -1 to use default.IOException - on read errorpublic boolean hasNext()
throws IOException
StationTimeSeriesFeatureCollectionhasNext in interface StationTimeSeriesFeatureCollectionIOException - on read errorpublic void finish()
StationTimeSeriesFeatureCollectionfinish in interface StationTimeSeriesFeatureCollectionPointFeatureIterator.finish()public StationTimeSeriesFeature next() throws IOException
StationTimeSeriesFeatureCollectionnext in interface StationTimeSeriesFeatureCollectionIOException - on read errorpublic void resetIteration()
throws IOException
StationTimeSeriesFeatureCollectionresetIteration in interface StationTimeSeriesFeatureCollectionIOException - on read errorCopyright © 1999–2014 UCAR/Unidata. All rights reserved.