public abstract class StationProfileFeatureImpl extends PointFeatureCCImpl implements StationProfileFeature
| Modifier and Type | Class and Description |
|---|---|
static class |
StationProfileFeatureImpl.StationProfileFeatureSubset |
| Modifier and Type | Field and Description |
|---|---|
protected PointFeatureCollectionIterator |
localIterator |
protected Station |
station |
protected int |
timeSeriesNpts |
collectionFeatureType| Constructor and Description |
|---|
StationProfileFeatureImpl(Station s,
CalendarDateUnit timeUnit,
String altUnits,
int npts) |
StationProfileFeatureImpl(String name,
String desc,
String wmoId,
double lat,
double lon,
double alt,
CalendarDateUnit timeUnit,
String altUnits,
int npts) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Station so) |
double |
getAltitude()
Returns the altitude in some unit.
|
String |
getDescription()
Station description
|
double |
getLatitude()
Returns the latitude in some unit.
|
LatLonPoint |
getLatLon()
Get the lat/lon location
|
double |
getLongitude()
Returns the longitude in some unit.
|
String |
getName()
Get the name of this feature collection.
|
int |
getNobs()
get Number of obs at this station
|
String |
getWmoId()
WMO station id.
|
boolean |
hasNext()
Use the internal iterator to check if there is another ProfileFeature in the iteration.
|
boolean |
isMissing()
Are either lat or lon missing?
|
Iterator<ProfileFeature> |
iterator() |
ProfileFeature |
next()
Use the internal iterator to get the next ProfileFeature in the iteration.
|
void |
resetIteration()
Reset the internal iterator for another iteration over the ProfileFeature in this Collection.
|
int |
size()
The number of Features in the collection.
|
StationProfileFeature |
subset(CalendarDateRange dateRange)
Subset this collection by dateRange
|
StationProfileFeature |
subset(LatLonRect boundingBox) |
getCollectionFeatureTypegetAltUnits, getBoundingBox, getCalendarDateRange, getExtraVariables, getInfo, getTimeUnitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeatureData, getPointFeatureCollectionIterator, getProfileByDate, getTimesgetCollectionIteratorgetAltUnits, getBoundingBox, getCalendarDateRange, getCollectionFeatureType, getExtraVariables, getTimeUnitforEach, spliteratorprotected int timeSeriesNpts
protected Station station
protected PointFeatureCollectionIterator localIterator
public StationProfileFeatureImpl(String name, String desc, String wmoId, double lat, double lon, double alt, CalendarDateUnit timeUnit, String altUnits, int npts)
public StationProfileFeatureImpl(Station s, CalendarDateUnit timeUnit, String altUnits, int npts)
public int getNobs()
StationgetNobs in interface StationgetNobs in class DsgCollectionImplpublic int size()
DsgFeatureCollectionsize in interface DsgFeatureCollectionsize in interface StationProfileFeaturesize in class DsgCollectionImpl@Nonnull public String getName()
DsgFeatureCollectiongetName in interface DsgFeatureCollectiongetName in interface StationgetName in class DsgCollectionImplpublic String getDescription()
StationgetDescription in interface Stationpublic double getLatitude()
EarthLocationgetLatitude in interface EarthLocationpublic double getLongitude()
EarthLocationgetLongitude in interface EarthLocationpublic double getAltitude()
EarthLocationEarthLocation was retrieved from a PointFeature
(via PointFeature.getLocation()), then the unit can be obtained by calling
pointFeature.getFeatureCollection().getAltUnits().getAltitude in interface EarthLocationDouble.NaN indicates "no altitude".public LatLonPoint getLatLon()
EarthLocationgetLatLon in interface EarthLocationpublic boolean isMissing()
EarthLocationisMissing in interface EarthLocationpublic int compareTo(@Nonnull Station so)
compareTo in interface Comparable<Station>public StationProfileFeature subset(LatLonRect boundingBox) throws IOException
IOExceptionpublic StationProfileFeature subset(CalendarDateRange dateRange) throws IOException
StationProfileFeaturesubset in interface StationProfileFeaturedateRange - only points in this date range. may be null.IOException - on read errorpublic Iterator<ProfileFeature> iterator()
iterator in interface Iterable<ProfileFeature>public boolean hasNext()
throws IOException
StationProfileFeaturehasNext in interface StationProfileFeatureIOException - on read errorpublic ProfileFeature next() throws IOException
StationProfileFeaturenext in interface StationProfileFeatureIOException - on read errorpublic void resetIteration()
throws IOException
StationProfileFeatureresetIteration in interface StationProfileFeatureIOException - on read error