public abstract class StationTimeSeriesFeatureImpl extends PointCollectionImpl implements StationTimeSeriesFeature
Modifier and Type | Class and Description |
---|---|
static class |
StationTimeSeriesFeatureImpl.StationFeatureSubset |
PointCollectionImpl.PointCollectionSubset
Modifier and Type | Field and Description |
---|---|
protected StationFeature |
s |
localIterator
Constructor and Description |
---|
StationTimeSeriesFeatureImpl(StationFeature s,
CalendarDateUnit timeUnit,
String altUnits,
int nfeatures) |
StationTimeSeriesFeatureImpl(String name,
String desc,
String wmoId,
double lat,
double lon,
double alt,
CalendarDateUnit timeUnit,
String altUnits,
int npts,
StructureData sdata) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Station so) |
boolean |
equals(Object o) |
double |
getAltitude()
Returns the altitude in some unit.
|
FeatureType |
getCollectionFeatureType()
All features in this collection have this feature type
|
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 |
getWmoId()
WMO station id.
|
int |
hashCode() |
boolean |
isMissing()
Are either lat or lon missing?
|
StationTimeSeriesFeature |
subset(CalendarDateRange dateRange)
Subset this collection by calendar dateRange
|
String |
toString() |
finish, hasNext, iterator, next, resetIteration, subset
getAltUnits, getBoundingBox, getCalendarDateRange, getExtraVariables, getInfo, getName, getNobs, getTimeUnit, size
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFeatureData, size
finish, getPointFeatureIterator, hasNext, next, resetIteration, subset
getAltUnits, getBoundingBox, getCalendarDateRange, getExtraVariables, getName, getTimeUnit
forEach, iterator, spliterator
protected StationFeature s
public StationTimeSeriesFeatureImpl(String name, String desc, String wmoId, double lat, double lon, double alt, CalendarDateUnit timeUnit, String altUnits, int npts, StructureData sdata)
public StationTimeSeriesFeatureImpl(StationFeature s, CalendarDateUnit timeUnit, String altUnits, int nfeatures)
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
@Nonnull public FeatureType getCollectionFeatureType()
DsgFeatureCollection
getCollectionFeatureType
in interface DsgFeatureCollection
getCollectionFeatureType
in class PointCollectionImpl
public StationTimeSeriesFeature subset(CalendarDateRange dateRange) throws IOException
StationTimeSeriesFeature
subset
in interface StationTimeSeriesFeature
dateRange
- only points in this date range. may be null.IOException
- on read errorpublic int compareTo(@Nonnull Station so)
compareTo
in interface Comparable<Station>