Package ucar.nc2.ft.point.collection
Class CompositeStationCollection
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- ucar.nc2.ft.point.PointFeatureCCImpl
-
- ucar.nc2.ft.point.StationTimeSeriesCollectionImpl
-
- ucar.nc2.ft.point.collection.CompositeStationCollection
-
- All Implemented Interfaces:
Iterable<StationTimeSeriesFeature>
,DsgFeatureCollection
,UpdateableCollection
,PointFeatureCC
,StationFeatureCollection
,StationTimeSeriesFeatureCollection
public class CompositeStationCollection extends StationTimeSeriesCollectionImpl implements UpdateableCollection
StationTimeSeries composed of a collection of individual StationTimeSeries. "Composite" pattern.- Since:
- May 19, 2009
-
-
Field Summary
Fields Modifier and Type Field Description protected List<VariableSimpleIF>
dataVariables
-
Fields inherited from class ucar.nc2.ft.point.StationTimeSeriesCollectionImpl
localIterator
-
Fields inherited from class ucar.nc2.ft.point.PointFeatureCCImpl
collectionFeatureType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeContainer
attributes()
protected StationHelper
createStationHelper()
PointFeatureCollection
flatten(List<String> stations, CalendarDateRange dateRange, List<VariableSimpleIF> varList)
Flatten into a PointFeatureCollection, discarding connectedness information.PointFeatureCollection
flatten(LatLonRect boundingBox, CalendarDateRange dateRange)
List<VariableSimpleIF>
getDataVariables()
List<Attribute>
getGlobalAttributes()
Deprecated.use attributes()PointFeatureCollectionIterator
getPointFeatureCollectionIterator()
StationTimeSeriesFeatureCollection
subset(List<StationFeature> stations)
StationTimeSeriesFeatureCollection
subset(LatLonRect boundingBox)
CalendarDateRange
update()
-
Methods inherited from class ucar.nc2.ft.point.StationTimeSeriesCollectionImpl
findStationFeature, finish, getBoundingBox, getCollectionIterator, getStationFeature, getStationFeatures, getStationFeatures, getStationFeatures, getStationHelper, getStationTimeSeriesFeature, hasNext, iterator, next, resetIteration, subset, subset, subsetFeatures
-
Methods inherited from class ucar.nc2.ft.point.PointFeatureCCImpl
getCollectionFeatureType
-
Methods inherited from class ucar.nc2.ft.point.DsgCollectionImpl
getAltName, getAltUnits, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getInfo, getName, getNobs, getTimeName, getTimeUnit, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ucar.nc2.ft.DsgFeatureCollection
getAltName, getAltUnits, getCalendarDateRange, getCollectionFeatureType, getCoordinateVariables, getExtraVariables, getName, getTimeName, getTimeUnit, size
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
dataVariables
protected List<VariableSimpleIF> dataVariables
-
-
Method Detail
-
createStationHelper
protected StationHelper createStationHelper() throws IOException
- Specified by:
createStationHelper
in classStationTimeSeriesCollectionImpl
- Throws:
IOException
-
getDataVariables
public List<VariableSimpleIF> getDataVariables()
-
attributes
public AttributeContainer attributes()
-
getGlobalAttributes
@Deprecated public List<Attribute> getGlobalAttributes()
Deprecated.use attributes()
-
update
public CalendarDateRange update() throws IOException
- Specified by:
update
in interfaceUpdateableCollection
- Throws:
IOException
-
subset
public StationTimeSeriesFeatureCollection subset(List<StationFeature> stations)
- Specified by:
subset
in interfaceStationTimeSeriesFeatureCollection
- Overrides:
subset
in classStationTimeSeriesCollectionImpl
-
subset
public StationTimeSeriesFeatureCollection subset(LatLonRect boundingBox)
- Specified by:
subset
in interfaceStationTimeSeriesFeatureCollection
- Overrides:
subset
in classStationTimeSeriesCollectionImpl
-
flatten
public PointFeatureCollection flatten(LatLonRect boundingBox, CalendarDateRange dateRange)
- Specified by:
flatten
in interfaceStationTimeSeriesFeatureCollection
- Overrides:
flatten
in classStationTimeSeriesCollectionImpl
-
flatten
public PointFeatureCollection flatten(List<String> stations, CalendarDateRange dateRange, List<VariableSimpleIF> varList)
Description copied from interface:StationTimeSeriesFeatureCollection
Flatten into a PointFeatureCollection, discarding connectedness information.- Specified by:
flatten
in interfaceStationTimeSeriesFeatureCollection
- Overrides:
flatten
in classStationTimeSeriesCollectionImpl
- Parameters:
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 ignored- Returns:
- a PointFeatureCollection, may be null if its empty.
-
getPointFeatureCollectionIterator
public PointFeatureCollectionIterator getPointFeatureCollectionIterator()
- Specified by:
getPointFeatureCollectionIterator
in interfaceStationTimeSeriesFeatureCollection
- Overrides:
getPointFeatureCollectionIterator
in classStationTimeSeriesCollectionImpl
-
-