public class CompositeStationCollection extends StationTimeSeriesCollectionImpl implements UpdateableCollection
Modifier and Type | Field and Description |
---|---|
protected List<VariableSimpleIF> |
dataVariables |
localIterator, stationHelper
npts
Modifier | Constructor and Description |
---|---|
protected |
CompositeStationCollection(String name,
TimedCollection dataCollection,
List<Station> stns,
List<VariableSimpleIF> dataVariables) |
Modifier and Type | Method and Description |
---|---|
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.
|
List<VariableSimpleIF> |
getDataVariables() |
PointFeatureCollectionIterator |
getPointFeatureCollectionIterator(int bufferSize)
Iterate through the collection, composed of PointFeatureCollection.
|
StationTimeSeriesFeature |
getStationFeature(Station s)
Get the collection of data for a particular Station.
|
protected void |
initStationHelper() |
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.
|
void |
update() |
finish, flatten, getBoundingBox, getNestedPointFeatureCollectionIterator, getStation, getStation, getStations, getStations, getStations, hasNext, next, resetIteration
flatten, getCollectionFeatureType, getName, isMultipleNested, setSize, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flatten, isMultipleNested, size
getCollectionFeatureType, getName
protected List<VariableSimpleIF> dataVariables
protected CompositeStationCollection(String name, TimedCollection dataCollection, List<Station> stns, List<VariableSimpleIF> dataVariables) throws IOException
IOException
protected void initStationHelper()
initStationHelper
in class StationTimeSeriesCollectionImpl
public List<VariableSimpleIF> getDataVariables()
public void update()
update
in interface UpdateableCollection
public StationTimeSeriesFeatureCollection subset(List<Station> stations) throws IOException
StationTimeSeriesFeatureCollection
subset
in interface StationTimeSeriesFeatureCollection
subset
in class StationTimeSeriesCollectionImpl
stations
- only contain these stationsIOException
- on i/o errorpublic StationTimeSeriesFeatureCollection subset(LatLonRect boundingBox) throws IOException
StationTimeSeriesFeatureCollection
subset
in interface NestedPointFeatureCollection
subset
in interface StationTimeSeriesFeatureCollection
subset
in class StationTimeSeriesCollectionImpl
boundingBox
- spatial subset. may be nullIOException
- on i/o errorpublic StationTimeSeriesFeature getStationFeature(Station s) throws IOException
StationTimeSeriesFeatureCollection
getStationFeature
in interface StationTimeSeriesFeatureCollection
getStationFeature
in class StationTimeSeriesCollectionImpl
s
- get data for this station, must have come from this CollectionIOException
- on i/o errorpublic PointFeatureCollection flatten(LatLonRect boundingBox, CalendarDateRange dateRange) throws IOException
NestedPointFeatureCollection
flatten
in interface NestedPointFeatureCollection
flatten
in class StationTimeSeriesCollectionImpl
boundingBox
- 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, CalendarDateRange dateRange, List<VariableSimpleIF> varList) throws IOException
StationTimeSeriesFeatureCollection
flatten
in interface StationTimeSeriesFeatureCollection
flatten
in class StationTimeSeriesCollectionImpl
stations
- 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 PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws IOException
NestedPointFeatureCollection
getPointFeatureCollectionIterator
in interface NestedPointFeatureCollection
getPointFeatureCollectionIterator
in class StationTimeSeriesCollectionImpl
bufferSize
- how many bytes can be used to buffer data, use -1 to use default.IOException
- on read errorCopyright © 1999–2015 UCAR/Unidata. All rights reserved.