|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.ft.point.PointCollectionImpl
ucar.nc2.ft.point.StationFeatureImpl
public abstract class StationFeatureImpl
Superclass for implementations of StationFeature: time series of data at a point Concrete subclass must implement getPointFeatureIterator();
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ucar.nc2.ft.point.PointCollectionImpl |
---|
PointCollectionImpl.PointCollectionSubset |
Field Summary | |
---|---|
protected Station |
s
|
protected DateUnit |
timeUnit
|
Fields inherited from class ucar.nc2.ft.point.PointCollectionImpl |
---|
boundingBox, dateRange, localIterator, name, npts |
Constructor Summary | |
---|---|
StationFeatureImpl(Station s,
DateUnit timeUnit,
int npts)
|
|
StationFeatureImpl(String name,
String desc,
String wmoId,
double lat,
double lon,
double alt,
DateUnit timeUnit,
int npts)
|
Method Summary | |
---|---|
int |
compareTo(Station so)
|
double |
getAltitude()
altitude in meters; missing = NaN. |
FeatureType |
getCollectionFeatureType()
All features in this collection have this feature type |
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 |
isMissing()
Are either lat or lon missing? |
void |
setNumberPoints(int npts)
|
int |
size()
The number of points in the collection. |
StationTimeSeriesFeature |
subset(DateRange dateRange)
Subset this collection by dateRange |
String |
toString()
|
Methods inherited from class ucar.nc2.ft.point.PointCollectionImpl |
---|
calcBounds, finish, getBoundingBox, getDateRange, hasNext, next, resetIteration, setBoundingBox, setDateRange, setSize, subset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ucar.nc2.ft.PointFeatureCollection |
---|
calcBounds, finish, getBoundingBox, getDateRange, getPointFeatureIterator, hasNext, next, resetIteration, setBoundingBox, setDateRange, setSize, subset |
Field Detail |
---|
protected Station s
protected DateUnit timeUnit
Constructor Detail |
---|
public StationFeatureImpl(String name, String desc, String wmoId, double lat, double lon, double alt, DateUnit timeUnit, int npts)
public StationFeatureImpl(Station s, DateUnit timeUnit, int npts)
Method Detail |
---|
public String getWmoId()
Station
getWmoId
in interface Station
public int size()
PointFeatureCollection
size
in interface PointFeatureCollection
size
in interface StationTimeSeriesFeature
size
in class PointCollectionImpl
public void setNumberPoints(int npts)
public String getName()
FeatureCollection
getName
in interface FeatureCollection
getName
in interface Station
getName
in class PointCollectionImpl
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 FeatureType getCollectionFeatureType()
FeatureCollection
getCollectionFeatureType
in interface FeatureCollection
getCollectionFeatureType
in class PointCollectionImpl
public String toString()
toString
in class Object
public StationTimeSeriesFeature subset(DateRange dateRange) throws IOException
StationTimeSeriesFeature
subset
in interface StationTimeSeriesFeature
dateRange
- only points in this date range. may be null.
IOException
- on read errorpublic int compareTo(Station so)
compareTo
in interface Comparable<Station>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |