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 class
StationTimeSeriesFeatureImpl.StationFeatureSubset
-
Nested classes/interfaces inherited from class ucar.nc2.ft.point.PointCollectionImpl
PointCollectionImpl.PointCollectionSubset
-
-
Field Summary
Fields Modifier and Type Field Description protected StationFeature
s
-
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 int
compareTo(Station so)
boolean
equals(Object o)
double
getAltitude()
Returns the altitude in some unit.FeatureType
getCollectionFeatureType()
All features in this collection have this feature typeString
getDescription()
Station descriptiondouble
getLatitude()
Returns the latitude in some unit.LatLonPoint
getLatLon()
Get the lat/lon locationdouble
getLongitude()
Returns the longitude in some unit.String
getWmoId()
WMO station id.int
hashCode()
boolean
isMissing()
Are either lat or lon missing?StationTimeSeriesFeature
subset(CalendarDateRange dateRange)
Subset this collection by calendar dateRangeString
toString()
-
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:Station
Station description- Specified by:
getDescription
in interfaceStation
- Returns:
- station description or null
-
getLatitude
public double getLatitude()
Description copied from interface:EarthLocation
Returns the latitude in some unit. The unit is very likely decimal degrees north, but we don't enforce that anywhere.- Specified by:
getLatitude
in interfaceEarthLocation
- Returns:
- the latitude in some unit.
-
getLongitude
public double getLongitude()
Description copied from interface:EarthLocation
Returns the longitude in some unit. The unit is very likely decimal degrees east, but we don't enforce that anywhere.- Specified by:
getLongitude
in interfaceEarthLocation
- Returns:
- the longitude in some unit.
-
getAltitude
public double getAltitude()
Description copied from interface:EarthLocation
Returns the altitude in some unit.- Specified by:
getAltitude
in interfaceEarthLocation
- Returns:
- the altitude in some unit. A value of
Double.NaN
indicates "no altitude".
-
getLatLon
public LatLonPoint getLatLon()
Description copied from interface:EarthLocation
Get the lat/lon location- Specified by:
getLatLon
in interfaceEarthLocation
- Returns:
- lat/lon location
-
isMissing
public boolean isMissing()
Description copied from interface:EarthLocation
Are either lat or lon missing?- Specified by:
isMissing
in interfaceEarthLocation
- Returns:
- true if lat or lon is missing
-
getCollectionFeatureType
@Nonnull public FeatureType getCollectionFeatureType()
Description copied from interface:DsgFeatureCollection
All features in this collection have this feature type- Specified by:
getCollectionFeatureType
in interfaceDsgFeatureCollection
- Overrides:
getCollectionFeatureType
in classPointCollectionImpl
- Returns:
- the feature type
-
subset
public StationTimeSeriesFeature subset(CalendarDateRange dateRange)
Description copied from interface:StationTimeSeriesFeature
Subset this collection by calendar dateRange- Specified by:
subset
in 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:
compareTo
in interfaceComparable<Station>
-
-