Class 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:
  • Constructor Details

    • 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 Details

    • 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