public class CompositeStationCollection extends StationTimeSeriesCollectionImpl implements UpdateableCollection
Modifier and Type | Field and Description |
---|---|
protected java.util.List<VariableSimpleIF> |
dataVariables |
protected java.util.List<Attribute> |
globalAttributes |
localIterator
altUnits, collectionFeatureType, extras, name, npts, timeUnit
Modifier | Constructor and Description |
---|---|
protected |
CompositeStationCollection(java.lang.String name,
DateUnit timeUnit,
java.lang.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(java.util.List<java.lang.String> stations,
CalendarDateRange dateRange,
java.util.List<VariableSimpleIF> varList)
Flatten into a PointFeatureCollection, discarding connectedness information.
|
java.util.List<VariableSimpleIF> |
getDataVariables() |
java.util.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(java.util.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 java.util.List<VariableSimpleIF> dataVariables
protected java.util.List<Attribute> globalAttributes
protected CompositeStationCollection(java.lang.String name, DateUnit timeUnit, java.lang.String altUnits, TimedCollection dataCollection) throws java.io.IOException
java.io.IOException
protected StationHelper createStationHelper() throws java.io.IOException
createStationHelper
in class StationTimeSeriesCollectionImpl
java.io.IOException
public java.util.List<VariableSimpleIF> getDataVariables()
public java.util.List<Attribute> getGlobalAttributes()
public CalendarDateRange update() throws java.io.IOException
update
in interface UpdateableCollection
java.io.IOException
public StationTimeSeriesFeatureCollection subset(java.util.List<Station> stations) throws java.io.IOException
StationTimeSeriesFeatureCollection
subset
in interface StationTimeSeriesFeatureCollection
subset
in class StationTimeSeriesCollectionImpl
stations
- only contain these stationsjava.io.IOException
- on i/o errorpublic StationTimeSeriesFeatureCollection subset(LatLonRect boundingBox) throws java.io.IOException
StationTimeSeriesFeatureCollection
subset
in interface NestedPointFeatureCollection
subset
in interface StationTimeSeriesFeatureCollection
subset
in class StationTimeSeriesCollectionImpl
boundingBox
- spatial subset. may be nulljava.io.IOException
- on i/o errorpublic StationTimeSeriesFeature getStationFeature(Station s) throws java.io.IOException
StationTimeSeriesFeatureCollection
getStationFeature
in interface StationTimeSeriesFeatureCollection
getStationFeature
in class StationTimeSeriesCollectionImpl
s
- get data for this station, must have come from this Collectionjava.io.IOException
- on i/o errorpublic PointFeatureCollection flatten(LatLonRect boundingBox, CalendarDateRange dateRange) throws java.io.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.java.io.IOException
- on read errorpublic PointFeatureCollection flatten(java.util.List<java.lang.String> stations, CalendarDateRange dateRange, java.util.List<VariableSimpleIF> varList) throws java.io.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 ignoredjava.io.IOException
- on read errorpublic PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws java.io.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.java.io.IOException
- on read error