AWFObservation

Objective-C

@interface AWFObservation : AWFGeographicObject

Swift

class AWFObservation : AWFGeographicObject

An AWFObservation object represents data returned by the observations endpoint of the Aeris Weather API.

  • Station identifier for this location, usually an ICAO.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *stationId;

    Swift

    var stationId: String? { get set }
  • GMT Date of the observation.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSDate *timestamp;

    Swift

    var timestamp: Date? { get set }

Weather & Clouds

  • Primary observed weather phrase.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *weather;

    Swift

    var weather: String? { get set }
  • Coded weather for the primary weather observed.

    The coded weather values can often be used for translating the weather observed. Refer to the Weather Codes API documentation for additional information.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *weatherCoded;

    Swift

    var weatherCoded: String? { get set }
  • Full observed weather phrase.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *weatherFull;

    Swift

    var weatherFull: String? { get set }
  • Full set of weather codes for the observed weather.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *weatherFullCoded;

    Swift

    var weatherFullCoded: String? { get set }
  • Weather icon representing the observed weather from the default icon set.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *icon;

    Swift

    var icon: String? { get set }
  • Sky coverage code.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *cloudsCoded;

    Swift

    var cloudsCoded: String? { get set }
  • Percentage of the sky covered by clouds. A value of 0 indicates clear sky conditions, while a value of 100 indicates entirely overcast sky conditions.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat skyCoverPercentage;

    Swift

    var skyCoverPercentage: CGFloat { get set }
  • Estimated light level as a percentage.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat lightPercentage;

    Swift

    var lightPercentage: CGFloat { get set }
  • Solar radiation in watts per square meter (not provided by all stations).

    Declaration

    Objective-C

    @property (nonatomic) CGFloat solarRadiationWM2;

    Swift

    var solarRadiationWM2: CGFloat { get set }

Temperatures

  • Observed temperature in degrees Fahrenheit.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat tempF;

    Swift

    var tempF: CGFloat { get set }
  • Observed temperature in degrees Celsius.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat tempC;

    Swift

    var tempC: CGFloat { get set }
  • Apparent temperature in degrees Fahrenheit.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat feelslikeF;

    Swift

    var feelslikeF: CGFloat { get set }
  • Apparent temperature in degrees Celsius.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat feelslikeC;

    Swift

    var feelslikeC: CGFloat { get set }
  • Calculated wind chill temperature in degrees Fahrenheit.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat windchillF;

    Swift

    var windchillF: CGFloat { get set }
  • Calculated wind chill temperature in degrees Celsius.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat windchillC;

    Swift

    var windchillC: CGFloat { get set }
  • Calculated heat index temperature in degrees Fahrenheit.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat heatindexF;

    Swift

    var heatindexF: CGFloat { get set }
  • Calculated heat index temperature in degrees Celsius.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat heatindexC;

    Swift

    var heatindexC: CGFloat { get set }

Dew Points

  • Observed dew point temperature in degrees Fahrenheit.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat dewpointF;

    Swift

    var dewpointF: CGFloat { get set }
  • Observed dew point temperature in degrees Celsius.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat dewpointC;

    Swift

    var dewpointC: CGFloat { get set }

Relative Humidity

  • Calculated relative humidity as a percentage.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat humidity;

    Swift

    var humidity: CGFloat { get set }

Winds

  • Observed wind speed in knots.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat windSpeedKTS;

    Swift

    var windSpeedKTS: CGFloat { get set }
  • Observed wind speed in miles per hour.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat windSpeedMPH;

    Swift

    var windSpeedMPH: CGFloat { get set }
  • Observed wind speed in kilometers per hour.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat windSpeedKMH;

    Swift

    var windSpeedKMH: CGFloat { get set }
  • Observed cardinal wind direction.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *windDirection;

    Swift

    var windDirection: String? { get set }
  • Observed wind direction in degrees (0=North).

    Declaration

    Objective-C

    @property (nonatomic) CGFloat windDirectionDEG;

    Swift

    var windDirectionDEG: CGFloat { get set }
  • Observed wind gust speed in knots.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat windGustKTS;

    Swift

    var windGustKTS: CGFloat { get set }
  • Observed wind gust speed in miles per hour.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat windGustMPH;

    Swift

    var windGustMPH: CGFloat { get set }
  • Observed wind gust speed in kilometers per hour.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat windGustKMH;

    Swift

    var windGustKMH: CGFloat { get set }

Barometric Pressure

  • Mean sea level pressure (MSLP) in inches of mercury. This value is adjusted from the observed station pressure to estimate the pressure that would exist at sea level at the same location by removing the effects of the station’s elevation.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat pressureIN;

    Swift

    var pressureIN: CGFloat { get set }
  • Mean sea level pressure (MSLP) in millibars. This value is adjusted from the observed station pressure to estimate the pressure that would exist at sea level at the same location by removing the effects of the station’s elevation.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat pressureMB;

    Swift

    var pressureMB: CGFloat { get set }
  • Actual barometric pressure observed at the station in inches of mercury. This value does not include an adjustment for the station’s elevation.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat stationPressureIN;

    Swift

    var stationPressureIN: CGFloat { get set }
  • Actual barometric pressure observed at the station in millibars. This value does not include an adjustment for the station’s elevation.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat stationPressureMB;

    Swift

    var stationPressureMB: CGFloat { get set }
  • Observed pressure reduced to mean sea level using the temperature profile of average conditions, in inches of mercury.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat altimeterIN;

    Swift

    var altimeterIN: CGFloat { get set }
  • Observed pressure reduced to mean sea level using the temperature profile of average conditions, in millibars.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat altimeterMB;

    Swift

    var altimeterMB: CGFloat { get set }

Visibility

  • Observed visibility in kilometers.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat visibilityKM;

    Swift

    var visibilityKM: CGFloat { get set }
  • Observed visibility in miles.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat visibilityMI;

    Swift

    var visibilityMI: CGFloat { get set }

Precipitation

  • Total precipitation observed in inches. This value can vary depending on the station.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat precipIN;

    Swift

    var precipIN: CGFloat { get set }
  • Total precipitation observed in millimeters. This value can vary depending on the station. @since 2.0

    Declaration

    Objective-C

    @property (nonatomic) CGFloat precipMM;

    Swift

    var precipMM: CGFloat { get set }
  • Estimated snow depth at the station in inches.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat snowDepthIN;

    Swift

    var snowDepthIN: CGFloat { get set }
  • Estimated snow depth at the station in centimeters.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat snowDepthCM;

    Swift

    var snowDepthCM: CGFloat { get set }

Other

  • Flight rule indicator based on weather conditions only.

    Potential values are: LIFR, IFR, MVFR, VFR

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *flightRule;

    Swift

    var flightRule: String? { get set }
  • raw

    Raw observation data if available.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *raw;

    Swift

    var raw: String? { get set }
  • GMT date of the sunrise at the reporting location.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSDate *sunrise;

    Swift

    var sunrise: Date? { get set }
  • GMT date of the sunset at the reporting location.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSDate *sunset;

    Swift

    var sunset: Date? { get set }
  • Whether or not the observation occurred during daylight hours based on sunrise and sunset times.

    Declaration

    Objective-C

    @property (nonatomic) BOOL isDay;

    Swift

    var isDay: Bool { get set }
  • The trust factor of the observation from 0 to 100, where 0 is the lowest level of trust and 100 being the highest.

    This value combines both the individual observation QC value and the overall confidence in the station and is equivalent to the QC code * station confidence.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger trustFactor;

    Swift

    var trustFactor: Int { get set }
  • Quality Control Code is the numerical version of QC (quality control):

    • 0: Failed QC
    • 1: Caution (some observation attributes may be invalid)
    • 3: Probation. A station will be on probation if it’s new, has changed location, or is having significant data issues.
    • 7: Questioned. While the observation passes QC, some elements may be out of characteristic for the station.
    • 10: OK, passed QC

    Declaration

    Objective-C

    @property (nonatomic) NSInteger QCCode;

    Swift

    var qcCode: Int { get set }