public class CompositeStationCollection extends StationTimeSeriesCollectionImpl implements UpdateableCollection
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<VariableSimpleIF> |
dataVariables |
localIterator, stationHelpernpts| Modifier | Constructor and Description |
|---|---|
protected |
CompositeStationCollection(java.lang.String name,
TimedCollection dataCollection,
java.util.List<Station> stns,
java.util.List<VariableSimpleIF> dataVariables) |
| Modifier and Type | Method and Description |
|---|---|
PointFeatureCollection |
flatten(LatLonRect boundingBox,
DateRange dateRange)
Flatten into a PointFeatureCollection, discarding connectedness information.
|
PointFeatureCollection |
flatten(java.util.List<java.lang.String> stations,
DateRange dateRange,
java.util.List<VariableSimpleIF> varList)
Flatten into a PointFeatureCollection, discarding connectedness information.
|
java.util.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(java.util.List<Station> stations)
Get a subsetted StationCollection based on a list of Stations.
|
void |
update() |
finish, getBoundingBox, getNestedPointFeatureCollectionIterator, getStation, getStation, getStations, getStations, getStations, hasNext, next, resetIterationgetCollectionFeatureType, getName, isMultipleNested, setSize, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisMultipleNested, sizegetCollectionFeatureType, getNameprotected java.util.List<VariableSimpleIF> dataVariables
protected CompositeStationCollection(java.lang.String name,
TimedCollection dataCollection,
java.util.List<Station> stns,
java.util.List<VariableSimpleIF> dataVariables)
throws java.io.IOException
java.io.IOExceptionprotected void initStationHelper()
initStationHelper in class StationTimeSeriesCollectionImplpublic java.util.List<VariableSimpleIF> getDataVariables()
public void update()
update in interface UpdateableCollectionpublic 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, DateRange 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, DateRange 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