public class CompositeStationCollection extends StationTimeSeriesCollectionImpl implements UpdateableCollection
Modifier and Type | Field and Description |
---|---|
protected List<VariableSimpleIF> |
dataVariables |
protected List<Attribute> |
globalAttributes |
localIterator
altUnits, collectionFeatureType, extras, name, npts, timeUnit
Modifier | Constructor and Description |
---|---|
protected |
CompositeStationCollection(String name,
DateUnit timeUnit,
String altUnits,
TimedCollection dataCollection) |
Modifier and Type | Method and Description |
---|---|
protected StationHelper |
createStationHelper() |
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() |
List<Attribute> |
getGlobalAttributes() |
PointFeatureCollectionIterator |
getPointFeatureCollectionIterator(int bufferSize)
Iterate through the collection, composed of PointFeatureCollection.
|
StationTimeSeriesFeature |
getStationFeature(Station s)
Get the collection of data for a particular Station.
|
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.
|
CalendarDateRange |
update() |
finish, flatten, getBoundingBox, getNestedPointFeatureCollectionIterator, getStation, getStation, getStationFeatures, getStationFeatures, getStationFeatures, getStationHelper, getStations, getStations, getStations, hasNext, next, resetIteration, subsetFeatures
flatten, getAltUnits, getCollectionFeatureType, getExtraVariables, getName, getTimeUnit, isMultipleNested, setSize, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flatten, getAltUnits, getExtraVariables, getTimeUnit, isMultipleNested, size
getCollectionFeatureType, getName
protected List<VariableSimpleIF> dataVariables
protected CompositeStationCollection(String name, DateUnit timeUnit, String altUnits, TimedCollection dataCollection) throws IOException
IOException
protected StationHelper createStationHelper() throws IOException
createStationHelper
in class StationTimeSeriesCollectionImpl
IOException
public List<VariableSimpleIF> getDataVariables()
public CalendarDateRange update() throws IOException
update
in interface UpdateableCollection
IOException
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.