Package ucar.nc2.ft.point
Class StationTimeSeriesFeatureImpl
- java.lang.Object
-
- ucar.nc2.ft.point.DsgCollectionImpl
-
- ucar.nc2.ft.point.PointCollectionImpl
-
- ucar.nc2.ft.point.StationTimeSeriesFeatureImpl
-
- All Implemented Interfaces:
Comparable<Station>,Iterable<PointFeature>,DsgFeatureCollection,StationFeature,PointFeatureCollection,StationTimeSeriesFeature,EarthLocation,Station
- Direct Known Subclasses:
StationTimeSeriesFeatureImpl.StationFeatureSubset
public abstract class StationTimeSeriesFeatureImpl extends PointCollectionImpl implements StationTimeSeriesFeature
Superclass for implementations of StationFeature: time series of data at a point Concrete subclass must implement getFeatureData() and getPointFeatureIterator();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStationTimeSeriesFeatureImpl.StationFeatureSubset-
Nested classes/interfaces inherited from class ucar.nc2.ft.point.PointCollectionImpl
PointCollectionImpl.PointCollectionSubset
-
-
Field Summary
Fields Modifier and Type Field Description protected StationFeatures-
Fields inherited from class ucar.nc2.ft.point.PointCollectionImpl
localIterator
-
-
Constructor Summary
Constructors Constructor Description StationTimeSeriesFeatureImpl(String name, String desc, String wmoId, double lat, double lon, double alt, List<CoordinateAxis> coords, int npts, StructureData sdata)StationTimeSeriesFeatureImpl(String name, String desc, String wmoId, double lat, double lon, double alt, CalendarDateUnit timeUnit, String altUnits, int npts, StructureData sdata)StationTimeSeriesFeatureImpl(StationFeature s, List<CoordinateAxis> coords, int nfeatures)StationTimeSeriesFeatureImpl(StationFeature s, CalendarDateUnit timeUnit, String altUnits, int nfeatures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Station so)booleanequals(Object o)doublegetAltitude()Returns the altitude in some unit.FeatureTypegetCollectionFeatureType()All features in this collection have this feature typeStringgetDescription()Station descriptiondoublegetLatitude()Returns the latitude in some unit.LatLonPointgetLatLon()Get the lat/lon locationdoublegetLongitude()Returns the longitude in some unit.StringgetWmoId()WMO station id.inthashCode()booleanisMissing()Are either lat or lon missing?StationTimeSeriesFeaturesubset(CalendarDateRange dateRange)Subset this collection by calendar dateRangeStringtoString()-
Methods inherited from class ucar.nc2.ft.point.PointCollectionImpl
finish, hasNext, iterator, next, resetIteration, subset
-
Methods inherited from class ucar.nc2.ft.point.DsgCollectionImpl
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getInfo, getName, getNobs, getTimeName, getTimeUnit, size
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ucar.nc2.ft.DsgFeatureCollection
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getName, getTimeName, getTimeUnit
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface ucar.nc2.ft.PointFeatureCollection
finish, getPointFeatureIterator, hasNext, next, resetIteration, subset
-
Methods inherited from interface ucar.nc2.ft.StationTimeSeriesFeature
getFeatureData, size
-
-
-
-
Field Detail
-
s
protected StationFeature s
-
-
Constructor Detail
-
StationTimeSeriesFeatureImpl
public StationTimeSeriesFeatureImpl(String name, String desc, String wmoId, double lat, double lon, double alt, CalendarDateUnit timeUnit, String altUnits, int npts, StructureData sdata)
-
StationTimeSeriesFeatureImpl
public StationTimeSeriesFeatureImpl(String name, String desc, String wmoId, double lat, double lon, double alt, List<CoordinateAxis> coords, int npts, StructureData sdata)
-
StationTimeSeriesFeatureImpl
public StationTimeSeriesFeatureImpl(StationFeature s, CalendarDateUnit timeUnit, String altUnits, int nfeatures)
-
StationTimeSeriesFeatureImpl
public StationTimeSeriesFeatureImpl(StationFeature s, List<CoordinateAxis> coords, int nfeatures)
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:StationStation description- Specified by:
getDescriptionin interfaceStation- Returns:
- station description or null
-
getLatitude
public double getLatitude()
Description copied from interface:EarthLocationReturns the latitude in some unit. The unit is very likely decimal degrees north, but we don't enforce that anywhere.- Specified by:
getLatitudein interfaceEarthLocation- Returns:
- the latitude in some unit.
-
getLongitude
public double getLongitude()
Description copied from interface:EarthLocationReturns the longitude in some unit. The unit is very likely decimal degrees east, but we don't enforce that anywhere.- Specified by:
getLongitudein interfaceEarthLocation- Returns:
- the longitude in some unit.
-
getAltitude
public double getAltitude()
Description copied from interface:EarthLocationReturns the altitude in some unit.- Specified by:
getAltitudein interfaceEarthLocation- Returns:
- the altitude in some unit. A value of
Double.NaNindicates "no altitude".
-
getLatLon
public LatLonPoint getLatLon()
Description copied from interface:EarthLocationGet the lat/lon location- Specified by:
getLatLonin interfaceEarthLocation- Returns:
- lat/lon location
-
isMissing
public boolean isMissing()
Description copied from interface:EarthLocationAre either lat or lon missing?- Specified by:
isMissingin interfaceEarthLocation- Returns:
- true if lat or lon is missing
-
getCollectionFeatureType
@Nonnull public FeatureType getCollectionFeatureType()
Description copied from interface:DsgFeatureCollectionAll features in this collection have this feature type- Specified by:
getCollectionFeatureTypein interfaceDsgFeatureCollection- Overrides:
getCollectionFeatureTypein classPointCollectionImpl- Returns:
- the feature type
-
subset
public StationTimeSeriesFeature subset(CalendarDateRange dateRange)
Description copied from interface:StationTimeSeriesFeatureSubset this collection by calendar dateRange- Specified by:
subsetin interfaceStationTimeSeriesFeature- Parameters:
dateRange- only points in this date range. may be null.- Returns:
- subsetted collection, may be null if empty
-
compareTo
public int compareTo(@Nonnull Station so)- Specified by:
compareToin interfaceComparable<Station>
-
-