public abstract class StationProfileFeatureImpl extends OneNestedPointCollectionImpl implements StationProfileFeature
Modifier and Type | Field and Description |
---|---|
protected PointFeatureCollectionIterator |
localIterator |
protected Station |
s |
protected int |
timeSeriesNpts |
protected DateUnit |
timeUnit |
npts
Constructor and Description |
---|
StationProfileFeatureImpl(Station s,
DateUnit timeUnit,
int npts) |
StationProfileFeatureImpl(String name,
String desc,
String wmoId,
double lat,
double lon,
double alt,
DateUnit timeUnit,
int npts) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Station so) |
double |
getAltitude()
altitude in meters; missing = NaN.
|
String |
getDescription()
Station description
|
double |
getLatitude()
latitude in decimal degrees north
|
LatLonPoint |
getLatLon()
Get the lat/lon location
|
double |
getLongitude()
longitude in decimal degrees east
|
String |
getName()
Get the name of this feature collection.
|
String |
getWmoId()
WMO station id.
|
boolean |
hasNext()
Use the internal iterator to check if there is another ProfileFeature in the iteration.
|
boolean |
isMissing()
Are either lat or lon missing?
|
ProfileFeature |
next()
Use the internal iterator to get the next ProfileFeature in the iteration.
|
void |
resetIteration()
Reset the internal iterator for another iteration over the ProfileFeature in this Collection.
|
int |
size()
The number of elements in the collection.
|
StationProfileFeature |
subset(DateRange dateRange)
Subset this collection by dateRange
|
StationProfileFeature |
subset(LatLonRect dateRange)
Get a subsetted NestedPointFeatureCollection based on a LatLonRect
|
flatten, flatten, getCollectionFeatureType, getNestedPointFeatureCollectionIterator, isMultipleNested, setSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProfileByDate, getTimes
flatten, flatten, getNestedPointFeatureCollectionIterator, getPointFeatureCollectionIterator, isMultipleNested
getCollectionFeatureType
protected DateUnit timeUnit
protected int timeSeriesNpts
protected Station s
protected PointFeatureCollectionIterator localIterator
public StationProfileFeatureImpl(String name, String desc, String wmoId, double lat, double lon, double alt, DateUnit timeUnit, int npts)
public int size()
NestedPointFeatureCollection
size
in interface NestedPointFeatureCollection
size
in interface StationProfileFeature
size
in class OneNestedPointCollectionImpl
public String getName()
FeatureCollection
getName
in interface FeatureCollection
getName
in interface Station
getName
in class OneNestedPointCollectionImpl
public String getDescription()
Station
getDescription
in interface Station
public double getLatitude()
EarthLocation
getLatitude
in interface EarthLocation
public double getLongitude()
EarthLocation
getLongitude
in interface EarthLocation
public double getAltitude()
EarthLocation
getAltitude
in interface EarthLocation
public LatLonPoint getLatLon()
EarthLocation
getLatLon
in interface EarthLocation
public boolean isMissing()
EarthLocation
isMissing
in interface EarthLocation
public boolean hasNext() throws IOException
StationProfileFeature
hasNext
in interface StationProfileFeature
IOException
- on read errorpublic ProfileFeature next() throws IOException
StationProfileFeature
next
in interface StationProfileFeature
IOException
- on read errorpublic void resetIteration() throws IOException
StationProfileFeature
resetIteration
in interface StationProfileFeature
IOException
- on read errorpublic int compareTo(Station so)
compareTo
in interface Comparable<Station>
public StationProfileFeature subset(DateRange dateRange) throws IOException
StationProfileFeature
subset
in interface StationProfileFeature
dateRange
- only points in this date range. may be null.IOException
- on read errorpublic StationProfileFeature subset(LatLonRect dateRange) throws IOException
NestedPointFeatureCollection
subset
in interface NestedPointFeatureCollection
dateRange
- spatial subsetIOException
- on i/o errorCopyright © 1999–2014 UCAR/Unidata. All rights reserved.