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 |
localIteratoraltUnits, 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, subsetFeaturesflatten, getAltUnits, getCollectionFeatureType, getExtraVariables, getName, getTimeUnit, isMultipleNested, setSize, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflatten, getAltUnits, getExtraVariables, getTimeUnit, isMultipleNested, sizegetCollectionFeatureType, getNameprotected 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.IOExceptionprotected StationHelper createStationHelper() throws java.io.IOException
createStationHelper in class StationTimeSeriesCollectionImpljava.io.IOExceptionpublic java.util.List<VariableSimpleIF> getDataVariables()
public java.util.List<Attribute> getGlobalAttributes()
public CalendarDateRange update() throws java.io.IOException
update in interface UpdateableCollectionjava.io.IOExceptionpublic StationTimeSeriesFeatureCollection subset(java.util.List<Station> stations) throws java.io.IOException
StationTimeSeriesFeatureCollectionsubset in interface StationTimeSeriesFeatureCollectionsubset in class StationTimeSeriesCollectionImplstations - only contain these stationsjava.io.IOException - on i/o errorpublic StationTimeSeriesFeatureCollection subset(LatLonRect boundingBox) throws java.io.IOException
StationTimeSeriesFeatureCollectionsubset in interface NestedPointFeatureCollectionsubset in interface StationTimeSeriesFeatureCollectionsubset in class StationTimeSeriesCollectionImplboundingBox - spatial subset. may be nulljava.io.IOException - on i/o errorpublic StationTimeSeriesFeature getStationFeature(Station s) throws java.io.IOException
StationTimeSeriesFeatureCollectiongetStationFeature in interface StationTimeSeriesFeatureCollectiongetStationFeature in class StationTimeSeriesCollectionImpls - 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
NestedPointFeatureCollectionflatten in interface NestedPointFeatureCollectionflatten in class StationTimeSeriesCollectionImplboundingBox - 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
StationTimeSeriesFeatureCollectionflatten in interface StationTimeSeriesFeatureCollectionflatten in class StationTimeSeriesCollectionImplstations - 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
NestedPointFeatureCollectiongetPointFeatureCollectionIterator in interface NestedPointFeatureCollectiongetPointFeatureCollectionIterator in class StationTimeSeriesCollectionImplbufferSize - how many bytes can be used to buffer data, use -1 to use default.java.io.IOException - on read error