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 Station |
s |
altUnits, boundingBox, dateRange, extras, localIterator, name, npts, timeUnit
Constructor and Description |
---|
StationTimeSeriesFeatureImpl(Station s,
DateUnit timeUnit,
java.lang.String altUnits,
int npts) |
StationTimeSeriesFeatureImpl(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) |
boolean |
equals(java.lang.Object o) |
double |
getAltitude()
altitude in meters; missing = NaN.
|
FeatureType |
getCollectionFeatureType()
All features in this collection have this feature type
|
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.
|
DateUnit |
getTimeUnit()
The udunit time unit string.
|
java.lang.String |
getWmoId()
WMO station id.
|
int |
hashCode() |
boolean |
isMissing()
Are either lat or lon missing?
|
void |
setNumberPoints(int npts) |
int |
size()
The number of points in the collection.
|
StationTimeSeriesFeature |
subset(CalendarDateRange dateRange)
Subset this collection by calendar dateRange
|
StationTimeSeriesFeature |
subset(DateRange dateRange) |
java.lang.String |
toString() |
calcBounds, finish, getAltUnits, getBoundingBox, getCalendarDateRange, getDateRange, getExtraVariables, getNobs, hasNext, next, resetIteration, setBoundingBox, setCalendarDateRange, setDateRange, setSize, subset, subset
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFeatureData
calcBounds, finish, getAltUnits, getBoundingBox, getCalendarDateRange, getDateRange, getExtraVariables, getPointFeatureIterator, hasNext, next, resetIteration, setBoundingBox, setCalendarDateRange, setDateRange, setSize, subset, subset
protected Station s
public StationTimeSeriesFeatureImpl(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 java.lang.String getWmoId()
Station
public int size()
PointFeatureCollection
size
in interface PointFeatureCollection
size
in interface StationTimeSeriesFeature
size
in class PointCollectionImpl
public void setNumberPoints(int npts)
public java.lang.String getName()
FeatureCollection
getName
in interface FeatureCollection
getName
in interface Station
getName
in class PointCollectionImpl
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 FeatureType getCollectionFeatureType()
FeatureCollection
getCollectionFeatureType
in interface FeatureCollection
getCollectionFeatureType
in class PointCollectionImpl
public DateUnit getTimeUnit()
PointFeatureCollection
getTimeUnit
in interface PointFeatureCollection
getTimeUnit
in class PointCollectionImpl
public java.lang.String toString()
toString
in class java.lang.Object
public StationTimeSeriesFeature subset(CalendarDateRange dateRange) throws java.io.IOException
StationTimeSeriesFeature
subset
in interface StationTimeSeriesFeature
dateRange
- only points in this date range. may be null.java.io.IOException
- on read errorpublic StationTimeSeriesFeature subset(DateRange dateRange) throws java.io.IOException
subset
in interface StationTimeSeriesFeature
java.io.IOException
public int compareTo(Station so)
compareTo
in interface java.lang.Comparable<Station>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object