ucar.nc2.ft.point
Class StationFeatureImpl
java.lang.Object
ucar.nc2.ft.point.PointCollectionImpl
ucar.nc2.ft.point.StationFeatureImpl
- All Implemented Interfaces:
- Comparable<Station>, FeatureCollection, PointFeatureCollection, StationTimeSeriesFeature, EarthLocation, Station
public abstract class StationFeatureImpl
- extends PointCollectionImpl
- implements StationTimeSeriesFeature
Superclass for implementations of StationFeature: time series of data at a point
Concrete subclass must implement getPointFeatureIterator();
- Author:
- caron
| Methods inherited from class ucar.nc2.ft.point.PointCollectionImpl |
calcBounds, finish, getBoundingBox, getDateRange, hasNext, next, resetIteration, setBoundingBox, setDateRange, setSize, subset |
| Methods inherited from interface ucar.nc2.ft.PointFeatureCollection |
calcBounds, finish, getBoundingBox, getDateRange, getPointFeatureIterator, hasNext, next, resetIteration, setBoundingBox, setDateRange, setSize, subset |
s
protected Station s
timeUnit
protected DateUnit timeUnit
StationFeatureImpl
public StationFeatureImpl(String name,
String desc,
String wmoId,
double lat,
double lon,
double alt,
DateUnit timeUnit,
int npts)
StationFeatureImpl
public StationFeatureImpl(Station s,
DateUnit timeUnit,
int npts)
getWmoId
public String getWmoId()
- Specified by:
getWmoId in interface Station
size
public int size()
- Description copied from interface:
PointFeatureCollection
- The number of points in the collection. May not be known until after iterating through the collection.
- Specified by:
size in interface PointFeatureCollection- Specified by:
size in interface StationTimeSeriesFeature- Overrides:
size in class PointCollectionImpl
- Returns:
- number of points in the collection, or -1 if not known.
setNumberPoints
public void setNumberPoints(int npts)
getName
public String getName()
- Description copied from interface:
FeatureCollection
- Get the name of this feature collection.
- Specified by:
getName in interface FeatureCollection- Specified by:
getName in interface Station- Overrides:
getName in class PointCollectionImpl
- Returns:
- the name of this feature collection
getDescription
public String getDescription()
- Specified by:
getDescription in interface Station
getLatitude
public double getLatitude()
- Specified by:
getLatitude in interface EarthLocation
getLongitude
public double getLongitude()
- Specified by:
getLongitude in interface EarthLocation
getAltitude
public double getAltitude()
- Specified by:
getAltitude in interface EarthLocation
getLatLon
public LatLonPoint getLatLon()
- Specified by:
getLatLon in interface EarthLocation
isMissing
public boolean isMissing()
- Specified by:
isMissing in interface EarthLocation
getCollectionFeatureType
public FeatureType getCollectionFeatureType()
- Description copied from interface:
FeatureCollection
- All features in this collection have this feature type
- Specified by:
getCollectionFeatureType in interface FeatureCollection- Overrides:
getCollectionFeatureType in class PointCollectionImpl
- Returns:
- the feature type
toString
public String toString()
- Overrides:
toString in class Object
subset
public StationTimeSeriesFeature subset(DateRange dateRange)
throws IOException
- Description copied from interface:
StationTimeSeriesFeature
- Subset this collection by dateRange
- Specified by:
subset in interface StationTimeSeriesFeature
- Parameters:
dateRange - only points in this date range. may be null.
- Returns:
- subsetted collection, may be null if empty
- Throws:
IOException - on read error
compareTo
public int compareTo(Station so)
- Specified by:
compareTo in interface Comparable<Station>
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.