Struct PresentWeather

Source
pub struct PresentWeather {
    pub thunderstorm: u8,
    pub rain: u8,
    pub rain_squalls: u8,
    pub snow: u8,
    pub snow_showers: u8,
    pub sleet: u8,
    pub fog: u8,
    pub smoke: u8,
    pub ice_pellets: u8,
}
Expand description

Present Weather codes

The present weather struct based on TMY2 conventions. Note that the most important fields are those representing liquid precipitation - where the surfaces of the building would be wet. EnergyPlus uses “Snow Depth” to determine if snow is on the ground

Fields§

§thunderstorm: u8

Occurrence of Thunderstorm, Tornado, or Squall

§Definition:
  • 0 = Thunderstorm-lightning and thunder. Wind gusts less than 25.7 m/s, and hail, if any, less than 1.9 cm diameter
  • 1 = Heavy or severe thunderstorm-frequent intense lightning and thunder. Wind gusts greater than 25.7 m/s and hail, if any, 1.9 cm or greater diameter
  • 2 = Report of tornado or waterspout
  • 4 = Moderate squall-sudden increase of wind speed by at least 8.2 m/s, reaching 11.3 m/s or more and lasting for at least 1 minute
  • 6 = Water spout (beginning January 1984)
  • 7 = Funnel cloud (beginning January 1984)
  • 8 = Tornado (beginning January 1984)
  • 9 = None if Observation Indicator element equals 0, or else unknown or missing if Observation Indicator element equals 9
§rain: u8

Occurrence of Rain, Rain Showers, or Freezing Rain

§Definition:
  • 0 = Light rain
  • 1 = Moderate rain
  • 2 = Heavy rain
  • 3 = Light rain showers
  • 4 = Moderate rain showers
  • 5 = Heavy rain showers
  • 6 = Light freezing rain
  • 7 = Moderate freezing rain
  • 8 = Heavy freezing rain
  • 9 = None if Observation Indicator element equals 0, or else unknown or missing if Observation Indicator element equals 9
§Notes:
Light
up to 0.25 cm per hour
Heavy
greater than 0.76cm per hour
§rain_squalls: u8

Occurrence of Rain Squalls, Drizzle, or Freezing Drizzle

§Definition:
  • 0 = Light rain squalls
  • 1 = Moderate rain squalls
  • 3 = Light drizzle
  • 4 = Moderate drizzle
  • 5 = Heavy drizzle
  • 6 = Light freezing drizzle
  • 7 = Moderate freezing drizzle
  • 8 = Heavy freezing drizzle
  • 9 = None if Observation Indicator element equals 0, or else unknown or missing if Observation Indicator element equals 9
§Notes:
§When drizzle or freezing drizzle occurs with other weather phenomena:
Light
up to 0.025 cm per hour
Moderate
0.025 to 0.051cm per hour
Heavy
greater than 0.051 cm per hour
§When drizzle or freezing drizzle occurs alone:
Light
visibility 1 km or greater
Moderate
visibility between 0.5 and 1 km
Heavy
visibility 0.5 km or less
§snow: u8

Occurrence of Snow, Snow Pellets, or Ice Crystals

§Definition:
  • 0 = Light snow
  • 1 = Moderate snow
  • 2 = Heavy snow
  • 3 = Light snow pellets
  • 4 = Moderate snow pellets
  • 5 = Heavy snow pellets
  • 6 = Light ice crystals
  • 7 = Moderate ice crystals
  • 8 = Heavy ice crystals
  • 9 = None if Observation Indicator element equals 0, or else unknown or missing if Observation Indicator element equals 9
§Notes:

Beginning in April 1963, any occurrence of ice crystals is recorded as a 7.

§snow_showers: u8

Occurrence of Snow Showers, Snow Squalls, or Snow Grains

§Definition:
  • 0 = Light snow
  • 1 = Moderate snow showers
  • 2 = Heavy snow showers
  • 3 = Light snow squall
  • 4 = Moderate snow squall
  • 5 = Heavy snow squall
  • 6 = Light snow grains
  • 7 = Moderate snow grains
  • 9 = None if Observation Indicator element equals 0, or else unknown or missing if Observation Indicator element equals 9
§sleet: u8

Occurrence of Sleet, Sleet Showers, or Hail

§Definition:
  • 0 = Light ice pellet showers
  • 1 = Moderate ice pellet showers
  • 2 = Heavy ice pellet showers
  • 4 = Hail
  • 9 = None if Observation Indicator element equals 0, or else unknown or missing if Observation Indicator element equals 9=

Notes: Prior to April 1970, ice pellets were coded as sleet. Beginning in April 1970, sleet and small hail were redefined as ice pellets and are coded as 0, 1, or 2.

§fog: u8

Occurrence of Fog, Blowing Dust, or Blowing Sand

§Definition:
  • 0 = Fog
  • 1 = Ice fog
  • 2 = Ground fog
  • 3 = Blowing dust
  • 4 = Blowing sand
  • 5 = Heavy fog
  • 6 = Glaze (beginning 1984)
  • 7 = Heavy ice fog (beginning 1984)
  • 8 = Heavy ground fog (beginning 1984)
  • 9 = None if Observation Indicator element equals 0, or else unknown or missing if Observation Indicator element equals 9

Notes: These values recorded only when visibility is less than 11 km.

§smoke: u8

Occurrence of Smoke, Haze, Smoke and Haze, Blowing Snow, Blowing Spray, or Dust

§Definition:
  • 0 = Smoke
  • 1 = Haze
  • 2 = Smoke and haze
  • 3 = Dust
  • 4 = Blowing snow
  • 5 = Blowing spray
  • 6 = Dust storm (beginning 1984)
  • 7 = Volcanic ash
  • 9 = None if Observation Indicator element equals 0, or else unknown or missing if Observation Indicator element equals 9

Notes: These values recorded only when visibility is less than 11 km.

§ice_pellets: u8

Occurrence of Ice Pellets

§Definition:
  • 0 = Light ice pellets
  • 1 = Moderate ice pellets
  • 2 = Heavy ice pellets
  • 9 = None if Observation Indicator element equals 0, or else unknown or missing if Observation Indicator element equals 9

Trait Implementations§

Source§

impl Debug for PresentWeather

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.