public abstract class StationTimeSeriesCollectionImpl extends PointFeatureCCImpl implements StationTimeSeriesFeatureCollection
Modifier and Type | Field and Description |
---|---|
protected PointFeatureCollectionIterator |
localIterator |
collectionFeatureType
Constructor and Description |
---|
StationTimeSeriesCollectionImpl(java.lang.String name,
CalendarDateUnit timeUnit,
java.lang.String altUnits) |
StationTimeSeriesCollectionImpl(java.lang.String name,
java.util.List<CoordinateAxis> coordVars) |
Modifier and Type | Method and Description |
---|---|
protected abstract StationHelper |
createStationHelper() |
StationFeature |
findStationFeature(java.lang.String name) |
void |
finish()
Make sure that the internal iterator is complete, and recover resources.
|
PointFeatureCollection |
flatten(LatLonRect boundingBox,
CalendarDateRange dateRange) |
PointFeatureCollection |
flatten(java.util.List<java.lang.String> stationNames,
CalendarDateRange dateRange,
java.util.List<VariableSimpleIF> varList)
Flatten into a PointFeatureCollection, discarding connectedness information.
|
LatLonRect |
getBoundingBox()
The boundingBox for the FeatureCollection.
|
IOIterator<PointFeatureCollection> |
getCollectionIterator()
General way to handle iterations on all classes that implement this interface.
|
PointFeatureCollectionIterator |
getPointFeatureCollectionIterator() |
StationFeature |
getStationFeature(PointFeature flatPointFeature) |
java.util.List<StationFeature> |
getStationFeatures() |
java.util.List<StationFeature> |
getStationFeatures(LatLonRect boundingBox) |
java.util.List<StationFeature> |
getStationFeatures(java.util.List<java.lang.String> stnNames) |
protected StationHelper |
getStationHelper() |
StationTimeSeriesFeature |
getStationTimeSeriesFeature(StationFeature s) |
boolean |
hasNext()
Use the internal iterator to check if there is another StationTimeSeriesFeature in the iteration.
|
java.util.Iterator<StationTimeSeriesFeature> |
iterator() |
StationTimeSeriesFeature |
next()
Use the internal iterator to get the next StationTimeSeriesFeature in the iteration.
|
void |
resetIteration()
Reset the internal iterator for another iteration over the StationTimeSeriesFeatures in this Collection.
|
StationTimeSeriesFeatureCollection |
subset(LatLonRect boundingBox) |
StationTimeSeriesFeatureCollection |
subset(LatLonRect boundingBox,
CalendarDateRange dateRange) |
StationTimeSeriesFeatureCollection |
subset(java.util.List<StationFeature> stations) |
StationTimeSeriesFeatureCollection |
subset(java.util.List<StationFeature> stnsWanted,
CalendarDateRange dateRange) |
StationTimeSeriesFeatureCollection |
subsetFeatures(java.util.List<StationFeature> stationsFeatures) |
getCollectionFeatureType
getAltName, getAltUnits, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getInfo, getName, getNobs, getTimeName, getTimeUnit, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAltName, getAltUnits, getCalendarDateRange, getCollectionFeatureType, getCoordinateVariables, getExtraVariables, getName, getTimeName, getTimeUnit, size
protected PointFeatureCollectionIterator localIterator
public StationTimeSeriesCollectionImpl(java.lang.String name, CalendarDateUnit timeUnit, java.lang.String altUnits)
public StationTimeSeriesCollectionImpl(java.lang.String name, java.util.List<CoordinateAxis> coordVars)
protected StationHelper getStationHelper()
protected abstract StationHelper createStationHelper() throws java.io.IOException
java.io.IOException
public LatLonRect getBoundingBox()
DsgFeatureCollection
getBoundingBox
in interface DsgFeatureCollection
getBoundingBox
in class DsgCollectionImpl
public java.util.List<StationFeature> getStationFeatures()
getStationFeatures
in interface StationFeatureCollection
getStationFeatures
in interface StationTimeSeriesFeatureCollection
public java.util.List<StationFeature> getStationFeatures(java.util.List<java.lang.String> stnNames)
getStationFeatures
in interface StationFeatureCollection
getStationFeatures
in interface StationTimeSeriesFeatureCollection
public java.util.List<StationFeature> getStationFeatures(LatLonRect boundingBox)
getStationFeatures
in interface StationFeatureCollection
getStationFeatures
in interface StationTimeSeriesFeatureCollection
public StationFeature findStationFeature(java.lang.String name)
findStationFeature
in interface StationFeatureCollection
findStationFeature
in interface StationTimeSeriesFeatureCollection
public StationTimeSeriesFeature getStationTimeSeriesFeature(StationFeature s)
getStationTimeSeriesFeature
in interface StationTimeSeriesFeatureCollection
public StationTimeSeriesFeatureCollection subset(LatLonRect boundingBox)
subset
in interface StationTimeSeriesFeatureCollection
public StationTimeSeriesFeatureCollection subset(LatLonRect boundingBox, CalendarDateRange dateRange)
subset
in interface StationTimeSeriesFeatureCollection
public StationTimeSeriesFeatureCollection subset(java.util.List<StationFeature> stations)
subset
in interface StationTimeSeriesFeatureCollection
public StationTimeSeriesFeatureCollection subset(java.util.List<StationFeature> stnsWanted, CalendarDateRange dateRange)
subset
in interface StationTimeSeriesFeatureCollection
public StationTimeSeriesFeatureCollection subsetFeatures(java.util.List<StationFeature> stationsFeatures)
subsetFeatures
in interface StationTimeSeriesFeatureCollection
public PointFeatureCollection flatten(java.util.List<java.lang.String> stationNames, CalendarDateRange dateRange, java.util.List<VariableSimpleIF> varList)
StationTimeSeriesFeatureCollection
flatten
in interface StationTimeSeriesFeatureCollection
stationNames
- 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 ignoredpublic PointFeatureCollection flatten(LatLonRect boundingBox, CalendarDateRange dateRange) throws java.io.IOException
flatten
in interface StationTimeSeriesFeatureCollection
java.io.IOException
public StationFeature getStationFeature(PointFeature flatPointFeature)
getStationFeature
in interface StationTimeSeriesFeatureCollection
public java.util.Iterator<StationTimeSeriesFeature> iterator()
iterator
in interface java.lang.Iterable<StationTimeSeriesFeature>
public IOIterator<PointFeatureCollection> getCollectionIterator()
PointFeatureCC
getCollectionIterator
in interface PointFeatureCC
public PointFeatureCollectionIterator getPointFeatureCollectionIterator()
getPointFeatureCollectionIterator
in interface StationTimeSeriesFeatureCollection
public boolean hasNext() throws java.io.IOException
StationTimeSeriesFeatureCollection
hasNext
in interface StationTimeSeriesFeatureCollection
java.io.IOException
- on read errorpublic void finish()
StationTimeSeriesFeatureCollection
finish
in interface StationTimeSeriesFeatureCollection
PointFeatureIterator.close()
public StationTimeSeriesFeature next() throws java.io.IOException
StationTimeSeriesFeatureCollection
next
in interface StationTimeSeriesFeatureCollection
java.io.IOException
- on read errorpublic void resetIteration()
StationTimeSeriesFeatureCollection
resetIteration
in interface StationTimeSeriesFeatureCollection