Class WeatherForecast
Contains a point-in-time weather forecast.
Inherited Members
Namespace: Aydsko.iRacingData.Series
Assembly: Aydsko.iRacingData.dll
Syntax
public class WeatherForecast
Remarks
These results are a condensed forecast, compared to the hourly forecast available within the session inside the simulator.
Properties
AffectsSession
Indicates if a session is expected to be running at some point during the period this forecast covers.
Declaration
[JsonPropertyName("affects_session")]
public bool AffectsSession { get; set; }
Property Value
Type | Description |
---|---|
bool |
AirTemperature
Air temperature in degrees Celsius corrected to be within allowed bounds.
Declaration
[JsonPropertyName("air_temp")]
[JsonConverter(typeof(TwoDecimalPointsValueConverter))]
public decimal AirTemperature { get; set; }
Property Value
Type | Description |
---|---|
decimal |
AllowPrecipitation
Indicates if precipitation is allowed to occur during the period.
Declaration
[JsonPropertyName("allow_precip")]
public bool AllowPrecipitation { get; set; }
Property Value
Type | Description |
---|---|
bool |
CloudCoverPercentage
The percentage of the sky with cloud cover.
Declaration
[JsonPropertyName("cloud_cover")]
[JsonConverter(typeof(OneDecimalPointValueConverter))]
public decimal CloudCoverPercentage { get; set; }
Property Value
Type | Description |
---|---|
decimal |
Index
Index of the key frame
Declaration
[JsonPropertyName("index")]
public int Index { get; set; }
Property Value
Type | Description |
---|---|
int |
IsSunUp
Is the sun up
Declaration
[JsonPropertyName("is_sun_up")]
public bool IsSunUp { get; set; }
Property Value
Type | Description |
---|---|
bool |
PrecipitationAmount
Precipitation rate in millimeters per hour.
Declaration
[JsonPropertyName("precip_amount")]
[JsonConverter(typeof(OneDecimalPointValueConverter))]
public decimal PrecipitationAmount { get; set; }
Property Value
Type | Description |
---|---|
decimal |
PrecipitationChance
Precipitation chance in percentage
Declaration
[JsonPropertyName("precip_chance")]
[JsonConverter(typeof(TwoDecimalPointsValueConverter))]
public decimal PrecipitationChance { get; set; }
Property Value
Type | Description |
---|---|
decimal |
Pressure
Atmospheric pressure in hectopascals
Declaration
[JsonPropertyName("pressure")]
[JsonConverter(typeof(OneDecimalPointValueConverter))]
public decimal Pressure { get; set; }
Property Value
Type | Description |
---|---|
decimal |
RawAirTemperature
Can be ignored. Uncorrected air temperature. Used by the sim regarding relative and absolute humidity
Declaration
[JsonPropertyName("raw_air_temp")]
[JsonConverter(typeof(TwoDecimalPointsValueConverter))]
public decimal RawAirTemperature { get; set; }
Property Value
Type | Description |
---|---|
decimal |
RelativeHumidity
Relative humidity percentage.
Declaration
[JsonPropertyName("rel_humidity")]
[JsonConverter(typeof(TwoDecimalPointsValueConverter))]
public decimal RelativeHumidity { get; set; }
Property Value
Type | Description |
---|---|
decimal |
TimeOffset
Offset from race start time
Declaration
[JsonPropertyName("time_offset")]
[JsonConverter(typeof(UtcOffsetToTimeSpanConverter))]
public TimeSpan TimeOffset { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
Timestamp
The instant this forecast block begins in track local time.
Declaration
[JsonPropertyName("timestamp")]
public DateTime Timestamp { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
ValidStatistics
Can be ignored. Indicates if there are rain statistics available for the period.
Declaration
[JsonPropertyName("valid_stats")]
public bool ValidStatistics { get; set; }
Property Value
Type | Description |
---|---|
bool |
WindDirection
Approximate wind direction.
Declaration
[JsonIgnore]
public WindDirection WindDirection { get; }
Property Value
Type | Description |
---|---|
WindDirection |
See Also
WindDirectionDegrees
Wind direction in degrees (0 - 359)
Declaration
[JsonPropertyName("wind_dir")]
public int WindDirectionDegrees { get; set; }
Property Value
Type | Description |
---|---|
int |
WindSpeed
Wind speed (in meters per second)
Declaration
[JsonPropertyName("wind_speed")]
[JsonConverter(typeof(TwoDecimalPointsValueConverter))]
public decimal WindSpeed { get; set; }
Property Value
Type | Description |
---|---|
decimal |