ucar.unidata.metdata
Class Metar

java.lang.Object
  extended by ucar.unidata.metdata.StationOb
      extended by ucar.unidata.metdata.Metar
All Implemented Interfaces:
Serializable

public class Metar
extends StationOb

Abstraction for surface observations. TODO: push exceptions back down to decoder decoder uses ByteString directly.

Version:
$Revision: 1.8 $
Author:
Glenn Davis
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ucar.unidata.metdata.StationOb
ensemble
 
Constructor Summary
Metar(Station stn, Timestamp timestamp, Ensemble ensemble, ByteString text, WMOHeader wmoHeader)
          Create a new Metar
 
Method Summary
 StringBuffer format(StringBuffer buf)
          Format this Metar for toString()
 Value getAltimeterSetting()
          Get the Altimeter setting for this metar
 Value getCeiling()
          Get the ceiling value
 Value getDewPoint()
          Get the dewpoint value.
 Value getSkyCoverage()
          Get the sky coverage
 Value getTemperature()
          Get the temperature
 ByteString getText()
          Get the raw METAR text
 Value getVerticalVisibility()
          Get the vertical visibility value
 Value getWindDirection()
          Get the wind direction.
 Value getWindSpeed()
          Get the wind speed.
 String toString()
          Return a formatted string representation for this Metar.
 
Methods inherited from class ucar.unidata.metdata.StationOb
getEnsemble, getStation, getStationIdentifier, getTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Metar

public Metar(Station stn,
             Timestamp timestamp,
             Ensemble ensemble,
             ByteString text,
             WMOHeader wmoHeader)
Create a new Metar

Parameters:
stn - the Station
timestamp - the time
ensemble - the decoded values
text - the raw text
wmoHeader - the WMO header
Method Detail

getText

public ByteString getText()
Get the raw METAR text

Returns:
the raw data

getAltimeterSetting

public Value getAltimeterSetting()
Get the Altimeter setting for this metar

Returns:
altimeter setting Value

getCeiling

public Value getCeiling()
Get the ceiling value

Returns:
the ceiling value

getDewPoint

public Value getDewPoint()
Get the dewpoint value.

Returns:
the dewpoint value

getSkyCoverage

public Value getSkyCoverage()
Get the sky coverage

Returns:
the sky coverage Value

getTemperature

public Value getTemperature()
Get the temperature

Returns:
the temperature Value

getVerticalVisibility

public Value getVerticalVisibility()
Get the vertical visibility value

Returns:
the vertical visibility Value

getWindDirection

public Value getWindDirection()
Get the wind direction.

Returns:
wind direction Value

getWindSpeed

public Value getWindSpeed()
Get the wind speed.

Returns:
wind speed Value

format

public StringBuffer format(StringBuffer buf)
Format this Metar for toString()

Parameters:
buf - buffer for output format
Returns:
buf with formatted info

toString

public String toString()
Return a formatted string representation for this Metar.

Overrides:
toString in class Object
Returns:
formatted string representation