Struct WeatherData

Source
pub struct WeatherData {
Show 31 fields pub timestamp: Vec<DateTime<FixedOffset>>, pub flags: Vec<String>, pub dry_bulb_temperature: Vec<f64>, pub dew_point_temperature: Vec<f64>, pub relative_humidity: Vec<f64>, pub atmospheric_pressure: Vec<f64>, pub extraterrestrial_horizontal_radiation: Vec<f64>, pub extraterrestrial_direct_normal_radiation: Vec<f64>, pub horizontal_infrared_radiation_intensity: Vec<f64>, pub global_horizontal_radiation: Vec<f64>, pub direct_normal_radiation: Vec<f64>, pub diffuse_horizontal_radiation: Vec<f64>, pub global_horizontal_illuminance: Vec<f64>, pub direct_normal_illuminance: Vec<f64>, pub diffuse_horizontal_illuminance: Vec<f64>, pub zenith_luminance: Vec<f64>, pub wind_direction: Vec<f64>, pub wind_speed: Vec<f64>, pub total_sky_cover: Vec<f64>, pub opaque_sky_cover: Vec<f64>, pub visibility: Vec<f64>, pub ceiling_height: Vec<f64>, pub present_weather_observation: Vec<bool>, pub present_weather_codes: Vec<PresentWeather>, pub precipitable_water: Vec<f64>, pub aerosol_optical_depth: Vec<f64>, pub snow_depth: Vec<f64>, pub days_since_last_snowfall: Vec<f64>, pub albedo: Vec<f64>, pub liquid_precipitation_depth: Vec<f64>, pub liquid_precipitation_quantity: Vec<f64>,
}
Expand description

§EPW weather data

The weather data from the file is provided in a column-oriented format for efficient analysis. This library uses the convention of inserting NaN when a value is not available, rather than using the in-band magic numbers (e.g. 999) to signify missing data.

Fields§

§timestamp: Vec<DateTime<FixedOffset>>

Timestamps for the weather data samples

§flags: Vec<String>

Data Source and validity flags. The format is not documented

§dry_bulb_temperature: Vec<f64>

Dry bulb temperature in °C

§dew_point_temperature: Vec<f64>

Dew point temperature in °C

§relative_humidity: Vec<f64>

Relative humidity in % [0-100]

§atmospheric_pressure: Vec<f64>

Atmospheric pressure in Pascals

§extraterrestrial_horizontal_radiation: Vec<f64>

Extraterrestrial Horizontal Radiation in Wh/m²

§extraterrestrial_direct_normal_radiation: Vec<f64>

Extraterrestrial Direct Normal Radiation in Wh/m²

§horizontal_infrared_radiation_intensity: Vec<f64>

Horizontal Infrared Radiation in Wh/m²

§global_horizontal_radiation: Vec<f64>

Glob al Horizontal Radiation in Wh/m²

§direct_normal_radiation: Vec<f64>

Direct Normal Radiation in Wh/m²

§diffuse_horizontal_radiation: Vec<f64>

Diffuse Horizontal Radiation in Wh/m²

§global_horizontal_illuminance: Vec<f64>

Global Horizontal Illuminance in lux

§direct_normal_illuminance: Vec<f64>

Direct Normal Illuminance in lux

§diffuse_horizontal_illuminance: Vec<f64>

Diffuse Horizontal Illuminance in lux

§zenith_luminance: Vec<f64>

Zenith Luminance in Cd/m²

§wind_direction: Vec<f64>

Wind direction in degrees [0-360]

§wind_speed: Vec<f64>

Wind speed in m/s

§total_sky_cover: Vec<f64>

Total sky cover

§opaque_sky_cover: Vec<f64>

Opaque sky cover

§visibility: Vec<f64>

Visibility in km

§ceiling_height: Vec<f64>

Ceiling height in m

§present_weather_observation: Vec<bool>

Whether present weather should be taken from the following field

§present_weather_codes: Vec<PresentWeather>

Present weather

§precipitable_water: Vec<f64>

Precipitable water in mm

§aerosol_optical_depth: Vec<f64>

Aerosol optical depth in thousandths

§snow_depth: Vec<f64>

Snow depth in cm

§days_since_last_snowfall: Vec<f64>

Days since last snowfall

§albedo: Vec<f64>

Albedo

§liquid_precipitation_depth: Vec<f64>

Liquid precipitation depth in mm

§liquid_precipitation_quantity: Vec<f64>

Liquid precipitation quantity in hours

Trait Implementations§

Source§

impl Debug for WeatherData

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.