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,
java.lang.String altUnits,
int npts) |
StationProfileFeatureImpl(Station s,
java.util.List<CoordinateAxis> coords,
int npts) |
StationProfileFeatureImpl(java.lang.String name,
java.lang.String desc,
java.lang.String wmoId,
double lat,
double lon,
double alt,
CalendarDateUnit timeUnit,
java.lang.String altUnits,
int npts) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Station so) |
boolean |
equals(java.lang.Object o) |
double |
getAltitude()
Returns the altitude in some unit.
|
java.lang.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.
|
java.lang.String |
getName()
Get the name of this feature collection.
|
int |
getNobs()
get Number of obs at this station
|
java.lang.String |
getWmoId()
WMO station id.
|
int |
hashCode() |
boolean |
hasNext()
Use the internal iterator to check if there is another ProfileFeature in the iteration.
|
boolean |
isMissing()
Are either lat or lon missing?
|
java.util.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) |
getCollectionFeatureType
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCoordinateVariables, getExtraVariables, getInfo, getTimeName, getTimeUnit
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getFeatureData, getPointFeatureCollectionIterator, getProfileByDate, getTimes
create
getCollectionIterator
getAltName, getAltUnits, getBoundingBox, getCalendarDateRange, getCollectionFeatureType, getCoordinateVariables, getExtraVariables, getTimeName, getTimeUnit
protected int timeSeriesNpts
protected Station station
protected PointFeatureCollectionIterator localIterator
public StationProfileFeatureImpl(java.lang.String name, java.lang.String desc, java.lang.String wmoId, double lat, double lon, double alt, CalendarDateUnit timeUnit, java.lang.String altUnits, int npts)
public StationProfileFeatureImpl(Station s, CalendarDateUnit timeUnit, java.lang.String altUnits, int npts)
public StationProfileFeatureImpl(Station s, java.util.List<CoordinateAxis> coords, int npts)
public int getNobs()
Station
getNobs
in interface Station
getNobs
in class DsgCollectionImpl
public java.lang.String getWmoId()
Station
public int size()
DsgFeatureCollection
size
in interface DsgFeatureCollection
size
in interface StationProfileFeature
size
in class DsgCollectionImpl
@Nonnull public java.lang.String getName()
DsgFeatureCollection
getName
in interface DsgFeatureCollection
getName
in interface Station
getName
in class DsgCollectionImpl
public java.lang.String getDescription()
Station
getDescription
in interface Station
public double getLatitude()
EarthLocation
getLatitude
in interface EarthLocation
public double getLongitude()
EarthLocation
getLongitude
in interface EarthLocation
public double getAltitude()
EarthLocation
getAltitude
in interface EarthLocation
Double.NaN
indicates "no altitude".public LatLonPoint getLatLon()
EarthLocation
getLatLon
in interface EarthLocation
public boolean isMissing()
EarthLocation
isMissing
in interface EarthLocation
public int compareTo(@Nonnull Station so)
compareTo
in interface java.lang.Comparable<Station>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public StationProfileFeature subset(LatLonRect boundingBox)
public StationProfileFeature subset(CalendarDateRange dateRange)
StationProfileFeature
subset
in interface StationProfileFeature
dateRange
- only points in this date range. may be null.public java.util.Iterator<ProfileFeature> iterator()
iterator
in interface java.lang.Iterable<ProfileFeature>
public boolean hasNext() throws java.io.IOException
StationProfileFeature
hasNext
in interface StationProfileFeature
java.io.IOException
- on read errorpublic ProfileFeature next() throws java.io.IOException
StationProfileFeature
next
in interface StationProfileFeature
java.io.IOException
- on read errorpublic void resetIteration() throws java.io.IOException
StationProfileFeature
resetIteration
in interface StationProfileFeature
java.io.IOException
- on read error