public abstract class StationProfileFeatureImpl extends PointFeatureCCImpl implements StationProfileFeature
Modifier and Type | Class and Description |
---|---|
static class |
StationProfileFeatureImpl.StationProfileFeatureSubset |
Modifier and Type | Field and Description |
---|---|
protected PointFeatureCollectionIterator |
localIterator |
protected Station |
station |
protected int |
timeSeriesNpts |
collectionFeatureType
Constructor and Description |
---|
StationProfileFeatureImpl(Station s,
CalendarDateUnit timeUnit,
String altUnits,
int npts) |
StationProfileFeatureImpl(String name,
String desc,
String wmoId,
double lat,
double lon,
double alt,
CalendarDateUnit timeUnit,
String altUnits,
int npts) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Station so) |
double |
getAltitude()
Returns the altitude in some unit.
|
String |
getDescription()
Station description
|
double |
getLatitude()
Returns the latitude in some unit.
|
LatLonPoint |
getLatLon()
Get the lat/lon location
|
double |
getLongitude()
Returns the longitude in some unit.
|
String |
getName()
Get the name of this feature collection.
|
int |
getNobs()
get Number of obs at this station
|
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?
|
Iterator<ProfileFeature> |
iterator() |
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 Features in the collection.
|
StationProfileFeature |
subset(CalendarDateRange dateRange)
Subset this collection by dateRange
|
StationProfileFeature |
subset(LatLonRect boundingBox) |
getCollectionFeatureType
getAltUnits, getBoundingBox, getCalendarDateRange, getExtraVariables, getInfo, getTimeUnit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFeatureData, getPointFeatureCollectionIterator, getProfileByDate, getTimes
getCollectionIterator
getAltUnits, getBoundingBox, getCalendarDateRange, getCollectionFeatureType, getExtraVariables, getTimeUnit
forEach, spliterator
protected int timeSeriesNpts
protected Station station
protected PointFeatureCollectionIterator localIterator
public StationProfileFeatureImpl(String name, String desc, String wmoId, double lat, double lon, double alt, CalendarDateUnit timeUnit, String altUnits, int npts)
public StationProfileFeatureImpl(Station s, CalendarDateUnit timeUnit, String altUnits, int npts)
public int getNobs()
Station
getNobs
in interface Station
getNobs
in class DsgCollectionImpl
public int size()
DsgFeatureCollection
size
in interface DsgFeatureCollection
size
in interface StationProfileFeature
size
in class DsgCollectionImpl
@Nonnull public String getName()
DsgFeatureCollection
getName
in interface DsgFeatureCollection
getName
in interface Station
getName
in class DsgCollectionImpl
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
EarthLocation
was retrieved from a PointFeature
(via PointFeature.getLocation()
), then the unit can be obtained by calling
pointFeature.getFeatureCollection().getAltUnits()
.getAltitude
in interface EarthLocation
Double.NaN
indicates "no altitude".public LatLonPoint getLatLon()
EarthLocation
getLatLon
in interface EarthLocation
public boolean isMissing()
EarthLocation
isMissing
in interface EarthLocation
public int compareTo(@Nonnull Station so)
compareTo
in interface Comparable<Station>
public StationProfileFeature subset(LatLonRect boundingBox) throws IOException
IOException
public StationProfileFeature subset(CalendarDateRange dateRange) throws IOException
StationProfileFeature
subset
in interface StationProfileFeature
dateRange
- only points in this date range. may be null.IOException
- on read errorpublic Iterator<ProfileFeature> iterator()
iterator
in interface Iterable<ProfileFeature>
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 error