Package ucar.nc2.ui.op
Class PointFeatureDatasetViewer.StationBean
- java.lang.Object
-
- ucar.nc2.ui.op.PointFeatureDatasetViewer.FeatureBean
-
- ucar.nc2.ui.op.PointFeatureDatasetViewer.StationBean
-
- All Implemented Interfaces:
Comparable<Station>
,EarthLocation
,Station
- Direct Known Subclasses:
PointFeatureDatasetViewer.PointObsBean
,PointFeatureDatasetViewer.ProfileFeatureBean
,PointFeatureDatasetViewer.SectionFeatureBean
,PointFeatureDatasetViewer.TrajectoryFeatureBean
- Enclosing class:
- PointFeatureDatasetViewer
public static class PointFeatureDatasetViewer.StationBean extends PointFeatureDatasetViewer.FeatureBean implements Station
-
-
Constructor Summary
Constructors Constructor Description StationBean()
StationBean(StructureData sdata)
StationBean(Station s)
-
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
-
StationBean
public StationBean()
-
StationBean
public StationBean(StructureData sdata) throws IOException
- Throws:
IOException
-
StationBean
public StationBean(Station s) throws IOException
- Throws:
IOException
-
-
Method Detail
-
hiddenProperties
public static String hiddenProperties()
-
getNobs
public int getNobs()
Description copied from interface:Station
get Number of obs at this station
-
setNobs
public void setNobs(int npts)
-
getName
public String getName()
Description copied from interface:Station
Station name or id. Must be unique within the collection
-
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
-
compareTo
public int compareTo(Station so)
- Specified by:
compareTo
in interfaceComparable<Station>
-
-