Package ucar.unidata.metdata
Class Metar
java.lang.Object
ucar.unidata.metdata.StationOb
ucar.unidata.metdata.Metar
- All Implemented Interfaces:
Serializable
Abstraction for surface observations.
TODO: push exceptions back down to decoder
decoder uses ByteString directly.
- Version:
- $Revision: 1.8 $
- Author:
- Glenn Davis
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat
(StringBuffer buf) Format this Metar for toString()Get the Altimeter setting for this metarGet the ceiling valueGet the dewpoint value.Get the sky coverageGet the temperaturegetText()
Get the raw METAR textGet the vertical visibility valueGet the wind direction.Get the wind speed.toString()
Return a formatted string representation for this Metar.Methods inherited from class ucar.unidata.metdata.StationOb
getEnsemble, getStation, getStationIdentifier, getTimestamp
-
Constructor Details
-
Metar
public Metar(Station stn, Timestamp timestamp, Ensemble ensemble, ByteString text, WMOHeader wmoHeader) Create a new Metar- Parameters:
stn
- the Stationtimestamp
- the timeensemble
- the decoded valuestext
- the raw textwmoHeader
- the WMO header
-
-
Method Details
-
getText
Get the raw METAR text- Returns:
- the raw data
-
getAltimeterSetting
Get the Altimeter setting for this metar- Returns:
- altimeter setting Value
-
getCeiling
Get the ceiling value- Returns:
- the ceiling value
-
getDewPoint
Get the dewpoint value.- Returns:
- the dewpoint value
-
getSkyCoverage
Get the sky coverage- Returns:
- the sky coverage Value
-
getTemperature
Get the temperature- Returns:
- the temperature Value
-
getVerticalVisibility
Get the vertical visibility value- Returns:
- the vertical visibility Value
-
getWindDirection
Get the wind direction.- Returns:
- wind direction Value
-
getWindSpeed
Get the wind speed.- Returns:
- wind speed Value
-
format
Format this Metar for toString()- Parameters:
buf
- buffer for output format- Returns:
buf
with formatted info
-
toString
Return a formatted string representation for this Metar.
-