public abstract class StationProfileFeatureImpl extends OneNestedPointCollectionImpl implements StationProfileFeature
Modifier and Type | Field and Description |
---|---|
protected PointFeatureCollectionIterator |
localIterator |
protected Station |
s |
protected int |
timeSeriesNpts |
altUnits, collectionFeatureType, extras, name, npts, timeUnit
Constructor and Description |
---|
StationProfileFeatureImpl(Station s,
DateUnit timeUnit,
java.lang.String altUnits,
int npts) |
StationProfileFeatureImpl(java.lang.String name,
java.lang.String desc,
java.lang.String wmoId,
double lat,
double lon,
double alt,
DateUnit timeUnit,
java.lang.String altUnits,
int npts) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Station so) |
double |
getAltitude()
altitude in meters; missing = NaN.
|
java.lang.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
|
java.lang.String |
getName()
Get the name of this feature collection.
|
int |
getNobs()
get Number of obs at this station
|
java.lang.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, getAltUnits, getCollectionFeatureType, getExtraVariables, getNestedPointFeatureCollectionIterator, getTimeUnit, isMultipleNested, setSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProfileByDate, getTimes
getFeatureData
flatten, flatten, getAltUnits, getExtraVariables, getNestedPointFeatureCollectionIterator, getPointFeatureCollectionIterator, getTimeUnit, isMultipleNested
getCollectionFeatureType
protected int timeSeriesNpts
protected Station s
protected PointFeatureCollectionIterator localIterator
public StationProfileFeatureImpl(java.lang.String name, java.lang.String desc, java.lang.String wmoId, double lat, double lon, double alt, DateUnit timeUnit, java.lang.String altUnits, int npts)
public int getNobs()
Station
public java.lang.String getWmoId()
Station
public int size()
NestedPointFeatureCollection
size
in interface NestedPointFeatureCollection
size
in interface StationProfileFeature
size
in class OneNestedPointCollectionImpl
public java.lang.String getName()
FeatureCollection
getName
in interface FeatureCollection
getName
in interface Station
getName
in class OneNestedPointCollectionImpl
public java.lang.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 java.io.IOException
StationProfileFeature
hasNext
in interface StationProfileFeature
java.io.IOException
- on read errorpublic ProfileFeature next() throws java.io.IOException
StationProfileFeature
next
in interface StationProfileFeature
java.io.IOException
- on read errorpublic void resetIteration() throws java.io.IOException
StationProfileFeature
resetIteration
in interface StationProfileFeature
java.io.IOException
- on read errorpublic int compareTo(Station so)
compareTo
in interface java.lang.Comparable<Station>
public StationProfileFeature subset(DateRange dateRange) throws java.io.IOException
StationProfileFeature
subset
in interface StationProfileFeature
dateRange
- only points in this date range. may be null.java.io.IOException
- on read errorpublic StationProfileFeature subset(LatLonRect dateRange) throws java.io.IOException
NestedPointFeatureCollection
subset
in interface NestedPointFeatureCollection
dateRange
- spatial subsetjava.io.IOException
- on i/o error