Package ucar.nc2.ui.op
Class PointFeatureDatasetViewer.SectionFeatureBean
- java.lang.Object
-
- ucar.nc2.ui.op.PointFeatureDatasetViewer.FeatureBean
-
- ucar.nc2.ui.op.PointFeatureDatasetViewer.StationBean
-
- ucar.nc2.ui.op.PointFeatureDatasetViewer.SectionFeatureBean
-
- All Implemented Interfaces:
Comparable<Station>
,EarthLocation
,Station
- Enclosing class:
- PointFeatureDatasetViewer
public static class PointFeatureDatasetViewer.SectionFeatureBean extends PointFeatureDatasetViewer.StationBean
-
-
Constructor Summary
Constructors Constructor Description SectionFeatureBean(TrajectoryProfileFeature pfc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Station so)
double
getAltitude()
Returns the altitude in some unit.String
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
getName()
Station name or id.int
getNobs()
get Number of obs at this stationString
getWmoId()
WMO station id.static String
hiddenProperties()
boolean
isMissing()
Are either lat or lon missing?void
setNobs(int npts)
-
Methods inherited from class ucar.nc2.ui.op.PointFeatureDatasetViewer.FeatureBean
getFields, showFields
-
-
-
-
Constructor Detail
-
SectionFeatureBean
public SectionFeatureBean(TrajectoryProfileFeature pfc) throws IOException
- Throws:
IOException
-
-
Method Detail
-
hiddenProperties
public static String hiddenProperties()
-
setNobs
public void setNobs(int npts)
- Overrides:
setNobs
in classPointFeatureDatasetViewer.StationBean
-
getNobs
public int getNobs()
Description copied from interface:Station
get Number of obs at this station- Specified by:
getNobs
in interfaceStation
- Overrides:
getNobs
in classPointFeatureDatasetViewer.StationBean
- Returns:
- Number of obs or -1 if unknown
-
getName
public String getName()
Description copied from interface:Station
Station name or id. Must be unique within the collection- Specified by:
getName
in interfaceStation
- Overrides:
getName
in classPointFeatureDatasetViewer.StationBean
- Returns:
- station name or id. May not be null.
-
getDescription
@Nullable public String getDescription()
Description copied from interface:Station
Station description- Specified by:
getDescription
in interfaceStation
- Overrides:
getDescription
in classPointFeatureDatasetViewer.StationBean
- Returns:
- station description or null
-
getWmoId
@Nullable public String getWmoId()
Description copied from interface:Station
WMO station id.- Specified by:
getWmoId
in interfaceStation
- Overrides:
getWmoId
in classPointFeatureDatasetViewer.StationBean
- Returns:
- WMO station id, 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
- Overrides:
getLatitude
in classPointFeatureDatasetViewer.StationBean
- 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
- Overrides:
getLongitude
in classPointFeatureDatasetViewer.StationBean
- 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
- Overrides:
getAltitude
in classPointFeatureDatasetViewer.StationBean
- 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
- Overrides:
getLatLon
in classPointFeatureDatasetViewer.StationBean
- Returns:
- lat/lon location
-
compareTo
public int compareTo(Station so)
- Specified by:
compareTo
in interfaceComparable<Station>
- Overrides:
compareTo
in classPointFeatureDatasetViewer.StationBean
-
isMissing
public boolean isMissing()
Description copied from interface:EarthLocation
Are either lat or lon missing?- Specified by:
isMissing
in interfaceEarthLocation
- Overrides:
isMissing
in classPointFeatureDatasetViewer.StationBean
- Returns:
- true if lat or lon is missing
-
-