|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.nc2.ft.point.OneNestedPointCollectionImpl
ucar.nc2.ft.point.StationProfileFeatureImpl
public abstract class StationProfileFeatureImpl
Abstract superclass for implementations of StationProfileFeature. Subclass must implement getPointFeatureCollectionIterator();
| Field Summary | |
|---|---|
protected PointFeatureCollectionIterator |
localIterator
|
protected Station |
s
|
protected int |
timeSeriesNpts
|
protected DateUnit |
timeUnit
|
| Fields inherited from class ucar.nc2.ft.point.OneNestedPointCollectionImpl |
|---|
npts |
| Constructor Summary | |
|---|---|
StationProfileFeatureImpl(Station s,
DateUnit timeUnit,
int npts)
|
|
StationProfileFeatureImpl(String name,
String desc,
String wmoId,
double lat,
double lon,
double alt,
DateUnit timeUnit,
int npts)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Station so)
|
double |
getAltitude()
|
String |
getDescription()
|
double |
getLatitude()
|
LatLonPoint |
getLatLon()
|
double |
getLongitude()
|
String |
getName()
Get the name of this feature collection. |
String |
getWmoId()
|
boolean |
hasNext()
Use the internal iterator to check if there is another ProfileFeature in the iteration. |
boolean |
isMissing()
|
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 elements in the collection. |
StationProfileFeature |
subset(DateRange dateRange)
Subset this collection by dateRange |
StationProfileFeature |
subset(LatLonRect dateRange)
Get a subsetted NestedPointFeatureCollection based on a LatLonRect |
| Methods inherited from class ucar.nc2.ft.point.OneNestedPointCollectionImpl |
|---|
flatten, getCollectionFeatureType, getNestedPointFeatureCollectionIterator, isMultipleNested, setSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ucar.nc2.ft.StationProfileFeature |
|---|
getProfileByDate, getTimes |
| Methods inherited from interface ucar.nc2.ft.NestedPointFeatureCollection |
|---|
flatten, getNestedPointFeatureCollectionIterator, getPointFeatureCollectionIterator, isMultipleNested |
| Methods inherited from interface ucar.nc2.ft.FeatureCollection |
|---|
getCollectionFeatureType |
| Field Detail |
|---|
protected DateUnit timeUnit
protected int timeSeriesNpts
protected Station s
protected PointFeatureCollectionIterator localIterator
| Constructor Detail |
|---|
public StationProfileFeatureImpl(String name,
String desc,
String wmoId,
double lat,
double lon,
double alt,
DateUnit timeUnit,
int npts)
public StationProfileFeatureImpl(Station s,
DateUnit timeUnit,
int npts)
| Method Detail |
|---|
public String getWmoId()
getWmoId in interface Stationpublic int size()
NestedPointFeatureCollection
size in interface NestedPointFeatureCollectionsize in interface StationProfileFeaturesize in class OneNestedPointCollectionImplpublic String getName()
FeatureCollection
getName in interface FeatureCollectiongetName in interface StationgetName in class OneNestedPointCollectionImplpublic String getDescription()
getDescription in interface Stationpublic double getLatitude()
getLatitude in interface EarthLocationpublic double getLongitude()
getLongitude in interface EarthLocationpublic double getAltitude()
getAltitude in interface EarthLocationpublic LatLonPoint getLatLon()
getLatLon in interface EarthLocationpublic boolean isMissing()
isMissing in interface EarthLocation
public boolean hasNext()
throws IOException
StationProfileFeature
hasNext in interface StationProfileFeatureIOException - on read error
public ProfileFeature next()
throws IOException
StationProfileFeature
next in interface StationProfileFeatureIOException - on read error
public void resetIteration()
throws IOException
StationProfileFeature
resetIteration in interface StationProfileFeatureIOException - on read errorpublic int compareTo(Station so)
compareTo in interface Comparable<Station>
public StationProfileFeature subset(DateRange dateRange)
throws IOException
StationProfileFeature
subset in interface StationProfileFeaturedateRange - only points in this date range. may be null.
IOException - on read error
public StationProfileFeature subset(LatLonRect dateRange)
throws IOException
NestedPointFeatureCollection
subset in interface NestedPointFeatureCollectiondateRange - spatial subset
IOException - on i/o error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||