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: u8Occurrence 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 diameter1= 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 diameter2= Report of tornado or waterspout4= 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 minute6= Water spout (beginning January 1984)7= Funnel cloud (beginning January 1984)8= Tornado (beginning January 1984)9= None if Observation Indicator element equals0, or else unknown or missing if Observation Indicator element equals9
rain: u8Occurrence of Rain, Rain Showers, or Freezing Rain
§Definition:
0= Light rain1= Moderate rain2= Heavy rain3= Light rain showers4= Moderate rain showers5= Heavy rain showers6= Light freezing rain7= Moderate freezing rain8= Heavy freezing rain9= None if Observation Indicator element equals0, or else unknown or missing if Observation Indicator element equals9
§Notes:
- Light
- up to 0.25 cm per hour
- Heavy
- greater than 0.76cm per hour
rain_squalls: u8Occurrence of Rain Squalls, Drizzle, or Freezing Drizzle
§Definition:
0= Light rain squalls1= Moderate rain squalls3= Light drizzle4= Moderate drizzle5= Heavy drizzle6= Light freezing drizzle7= Moderate freezing drizzle8= Heavy freezing drizzle9= None if Observation Indicator element equals0, or else unknown or missing if Observation Indicator element equals9
§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: u8Occurrence of Snow, Snow Pellets, or Ice Crystals
§Definition:
0= Light snow1= Moderate snow2= Heavy snow3= Light snow pellets4= Moderate snow pellets5= Heavy snow pellets6= Light ice crystals7= Moderate ice crystals8= Heavy ice crystals9= None if Observation Indicator element equals0, or else unknown or missing if Observation Indicator element equals9
§Notes:
Beginning in April 1963, any occurrence of ice crystals is recorded as a 7.
snow_showers: u8Occurrence of Snow Showers, Snow Squalls, or Snow Grains
§Definition:
0= Light snow1= Moderate snow showers2= Heavy snow showers3= Light snow squall4= Moderate snow squall5= Heavy snow squall6= Light snow grains7= Moderate snow grains9= None if Observation Indicator element equals0, or else unknown or missing if Observation Indicator element equals9
sleet: u8Occurrence of Sleet, Sleet Showers, or Hail
§Definition:
0= Light ice pellet showers1= Moderate ice pellet showers2= Heavy ice pellet showers4= Hail9= None if Observation Indicator element equals0, or else unknown or missing if Observation Indicator element equals9=
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, or2.
fog: u8Occurrence of Fog, Blowing Dust, or Blowing Sand
§Definition:
0= Fog1= Ice fog2= Ground fog3= Blowing dust4= Blowing sand5= Heavy fog6= Glaze (beginning 1984)7= Heavy ice fog (beginning 1984)8= Heavy ground fog (beginning 1984)9= None if Observation Indicator element equals0, or else unknown or missing if Observation Indicator element equals9
Notes: These values recorded only when visibility is less than 11 km.
smoke: u8Occurrence of Smoke, Haze, Smoke and Haze, Blowing Snow, Blowing Spray, or Dust
§Definition:
0= Smoke1= Haze2= Smoke and haze3= Dust4= Blowing snow5= Blowing spray6= Dust storm (beginning 1984)7= Volcanic ash9= None if Observation Indicator element equals0, or else unknown or missing if Observation Indicator element equals9
Notes: These values recorded only when visibility is less than 11 km.
ice_pellets: u8Occurrence of Ice Pellets
§Definition:
0= Light ice pellets1= Moderate ice pellets2= Heavy ice pellets9= None if Observation Indicator element equals0, or else unknown or missing if Observation Indicator element equals9