public abstract class StationProfileCollectionImpl extends MultipleNestedPointCollectionImpl implements StationProfileFeatureCollection
| Modifier and Type | Field and Description |
|---|---|
protected NestedPointFeatureCollectionIterator |
localIterator |
altUnits, collectionFeatureType, extras, name, npts, timeUnit| Constructor and Description |
|---|
StationProfileCollectionImpl(String name,
DateUnit timeUnit,
String altUnits) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Station so) |
protected abstract StationHelper |
createStationHelper() |
LatLonRect |
getBoundingBox()
Get the bounding box including all the stations.
|
PointFeatureCollectionIterator |
getPointFeatureCollectionIterator(int bufferSize)
Iterate through the collection, composed of PointFeatureCollection.
|
Station |
getStation(String name)
Find a Station by name.
|
List<StationFeature> |
getStationFeatures()
Get list of stations as StationFeatures
|
protected StationHelper |
getStationHelper() |
StationProfileFeature |
getStationProfileFeature(Station s)
Get the StationProfileFeature for a specific Station.
|
List<Station> |
getStations()
Get all the Stations in the collection.
|
List<Station> |
getStations(LatLonRect boundingBox)
Get all the Stations within a bounding box.
|
List<Station> |
getStations(List<String> stnNames)
Translate list of station names to list of Stations.
|
boolean |
hasNext()
Use the internal iterator to check if there is another StationProfileFeature in the iteration.
|
StationProfileFeature |
next()
Use the internal iterator to get the next StationProfileFeature in the iteration.
|
void |
resetIteration()
Reset the internal iterator for another iteration over the StationProfileFeature in this Collection.
|
StationProfileCollectionImpl |
subset(LatLonRect boundingBox)
Get a subsetted NestedPointFeatureCollection based on a LatLonRect
|
StationProfileCollectionImpl |
subset(List<Station> stations)
Get a subsetted StationProfileFeatureCollection
|
flatten, flatten, getAltUnits, getCollectionFeatureType, getExtraVariables, getName, getTimeUnit, isMultipleNested, setSize, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflatten, flatten, getAltUnits, getExtraVariables, getNestedPointFeatureCollectionIterator, getTimeUnit, isMultipleNested, sizegetCollectionFeatureType, getNameprotected NestedPointFeatureCollectionIterator localIterator
protected StationHelper getStationHelper()
protected abstract StationHelper createStationHelper() throws IOException
IOExceptionpublic List<StationFeature> getStationFeatures() throws IOException
StationProfileFeatureCollectiongetStationFeatures in interface StationProfileFeatureCollectionIOException - on i/o errorpublic List<Station> getStations()
StationCollectiongetStations in interface StationCollectionpublic List<Station> getStations(List<String> stnNames)
StationCollectiongetStations in interface StationCollectionstnNames - list of stnNamespublic List<Station> getStations(LatLonRect boundingBox) throws IOException
StationCollectiongetStations in interface StationCollectionboundingBox - spatial subsetIOException - on i/o errorpublic Station getStation(String name)
StationCollectiongetStation in interface StationCollectionname - name/id of the stationpublic LatLonRect getBoundingBox()
StationCollectiongetBoundingBox in interface StationCollectionpublic StationProfileCollectionImpl subset(List<Station> stations) throws IOException
StationProfileFeatureCollectionsubset in interface StationProfileFeatureCollectionstations - only contain these stationsIOException - on i/o errorpublic StationProfileCollectionImpl subset(LatLonRect boundingBox) throws IOException
NestedPointFeatureCollectionsubset in interface NestedPointFeatureCollectionboundingBox - spatial subsetIOException - on i/o errorpublic StationProfileFeature getStationProfileFeature(Station s) throws IOException
StationProfileFeatureCollectiongetStationProfileFeature in interface StationProfileFeatureCollections - at this stationIOException - on i/o errorpublic PointFeatureCollectionIterator getPointFeatureCollectionIterator(int bufferSize) throws IOException
NestedPointFeatureCollectiongetPointFeatureCollectionIterator in interface NestedPointFeatureCollectiongetPointFeatureCollectionIterator in class MultipleNestedPointCollectionImplbufferSize - how many bytes can be used to buffer data, use -1 to use default.IOException - on read errorpublic boolean hasNext()
throws IOException
StationProfileFeatureCollectionhasNext in interface StationProfileFeatureCollectionIOException - on read errorpublic StationProfileFeature next() throws IOException
StationProfileFeatureCollectionnext in interface StationProfileFeatureCollectionIOException - on read errorpublic void resetIteration()
throws IOException
StationProfileFeatureCollectionresetIteration in interface StationProfileFeatureCollectionIOException - on read errorpublic int compareTo(Station so)
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.