|
||||||||||
| 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();
| Field Summary | |
|---|---|
protected int |
npts
|
protected Station |
s
|
protected DateUnit |
timeUnit
|
| Fields inherited from class ucar.nc2.ft.point.PointCollectionImpl |
|---|
boundingBox, dateRange, localIterator, name |
| Constructor Summary | |
|---|---|
StationFeatureImpl(Station s,
DateUnit timeUnit,
int npts)
|
|
StationFeatureImpl(java.lang.String name,
java.lang.String desc,
java.lang.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 |
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. |
java.lang.String |
getWmoId()
WMO station id. |
void |
setNumberPoints(int npts)
|
int |
size()
The number of points in the collection. |
StationTimeSeriesFeature |
subset(DateRange dateRange)
Subset this collection by dateRange |
| Methods inherited from class ucar.nc2.ft.point.PointCollectionImpl |
|---|
hasNext, next, resetIteration, setSize, subset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ucar.nc2.ft.PointFeatureCollection |
|---|
getPointFeatureIterator, hasNext, next, resetIteration, subset |
| Field Detail |
|---|
protected Station s
protected DateUnit timeUnit
protected int npts
| Constructor Detail |
|---|
public StationFeatureImpl(java.lang.String name,
java.lang.String desc,
java.lang.String wmoId,
double lat,
double lon,
double alt,
DateUnit timeUnit,
int npts)
public StationFeatureImpl(Station s,
DateUnit timeUnit,
int npts)
| Method Detail |
|---|
public java.lang.String getWmoId()
Station
getWmoId in interface Stationpublic int size()
PointFeatureCollection
size in interface PointFeatureCollectionsize in interface StationTimeSeriesFeaturesize in class PointCollectionImplpublic void setNumberPoints(int npts)
public java.lang.String getName()
FeatureCollection
getName in interface FeatureCollectiongetName in interface StationgetName in class PointCollectionImplpublic java.lang.String getDescription()
Station
getDescription in interface Stationpublic double getLatitude()
EarthLocation
getLatitude in interface EarthLocationpublic double getLongitude()
EarthLocation
getLongitude in interface EarthLocationpublic double getAltitude()
EarthLocation
getAltitude in interface EarthLocationpublic LatLonPoint getLatLon()
EarthLocation
getLatLon in interface EarthLocationpublic FeatureType getCollectionFeatureType()
FeatureCollection
getCollectionFeatureType in interface FeatureCollectiongetCollectionFeatureType in class PointCollectionImpl
public StationTimeSeriesFeature subset(DateRange dateRange)
throws java.io.IOException
StationTimeSeriesFeature
subset in interface StationTimeSeriesFeaturedateRange - only points in this date range. may be null.
java.io.IOException - on read errorpublic int compareTo(Station so)
compareTo in interface java.lang.Comparable<Station>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||