-
Notifications
You must be signed in to change notification settings - Fork 0
DiGi.Weather.Classes
Represents a weather container of WeatherRecord elements.
public class Weather : DiGi.Weather.Classes.Weather<DiGi.Weather.Classes.WeatherRecord>Inheritance System.Object → DiGi.Core.Classes.Object → DiGi.Core.Classes.SerializableObject → DiGi.Weather.Classes.Weather<WeatherRecord> → Weather
Initializes a new instance of the Weather class.
public Weather();Initializes a new instance of the Weather class by copying another instance.
public Weather(DiGi.Weather.Classes.Weather weather);weather Weather
The weather instance to copy.
Initializes a new instance of the Weather class with a collection of weather records.
public Weather(System.Collections.Generic.IEnumerable<DiGi.Weather.Classes.WeatherRecord> weatherRecords);weatherRecords System.Collections.Generic.IEnumerable<WeatherRecord>
The collection of weather records to initialize with.
Initializes a new instance of the Weather class from a JSON object.
public Weather(System.Text.Json.Nodes.JsonObject jsonObject);jsonObject System.Text.Json.Nodes.JsonObject
The JSON object containing weather data.
Provides a base abstract class for weather data containers.
public abstract class Weather<TWeatherRecord> : DiGi.Core.Classes.SerializableObject, DiGi.Weather.Interfaces.IWeatherSerializableObject, DiGi.Weather.Interfaces.IWeatherObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, System.Collections.Generic.IEnumerable<TWeatherRecord>, System.Collections.IEnumerable
where TWeatherRecord : DiGi.Weather.Interfaces.IWeatherRecordTWeatherRecord
The type of the weather record.
Inheritance System.Object → DiGi.Core.Classes.Object → DiGi.Core.Classes.SerializableObject → Weather<TWeatherRecord>
Derived
↳ Weather
Implements IWeatherSerializableObject, IWeatherObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject, System.Collections.Generic.IEnumerable<TWeatherRecord>, System.Collections.IEnumerable
Initializes a new instance of the Weather<TWeatherRecord> class.
public Weather();Initializes a new instance of the Weather<TWeatherRecord> class by copying another instance.
public Weather(DiGi.Weather.Classes.Weather<TWeatherRecord> weather);weather DiGi.Weather.Classes.Weather<TWeatherRecord>
The weather instance to copy.
Initializes a new instance of the Weather<TWeatherRecord> class with a collection of weather records.
public Weather(System.Collections.Generic.IEnumerable<TWeatherRecord> weatherRecords);weatherRecords System.Collections.Generic.IEnumerable<TWeatherRecord>
The collection of weather records.
Initializes a new instance of the Weather<TWeatherRecord> class from a JSON object.
public Weather(System.Text.Json.Nodes.JsonObject jsonObject);jsonObject System.Text.Json.Nodes.JsonObject
The JSON object containing the weather data.
Gets or sets the list of weather records.
public System.Collections.Generic.IList<TWeatherRecord>? WeatherRecords { get; set; }System.Collections.Generic.IList<TWeatherRecord>
Returns an enumerator that iterates through the weather records.
public System.Collections.Generic.IEnumerator<TWeatherRecord> GetEnumerator();Implements GetEnumerator(), GetEnumerator()
System.Collections.Generic.IEnumerator<TWeatherRecord>
An enumerator that can be used to iterate through the collection.
Returns an enumerator that iterates through the weather records.
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator();Implements GetEnumerator()
Represents a single weather record containing various meteorological measurements.
public class WeatherRecord : DiGi.Core.Classes.SerializableObject, DiGi.Weather.Interfaces.IWeatherRecord, DiGi.Weather.Interfaces.IWeatherSerializableObject, DiGi.Weather.Interfaces.IWeatherObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObjectInheritance System.Object → DiGi.Core.Classes.Object → DiGi.Core.Classes.SerializableObject → WeatherRecord
Implements IWeatherRecord, IWeatherSerializableObject, IWeatherObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject
Initializes a new instance of the WeatherRecord class by copying another instance.
public WeatherRecord(DiGi.Weather.Classes.WeatherRecord? weatherRecord);weatherRecord WeatherRecord
The weather record to copy.
WeatherRecord(DateTime, string, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, int, int, float, float, int, string, float, float, float, int, float, float, float) Constructor
Initializes a new instance of the WeatherRecord class.
public WeatherRecord(System.DateTime dateTime, string? dataSourceAndUncertaintyFlags, float dryBulbTemperature, float dewPointTemperature, float relativeHumidity, float atmosphericStationPressure, float extraterrestrialHorizontalRadiation, float extraterrestrialDirectNormalRadiation, float horizontalInfraredRadiationIntensity, float globalHorizontalRadiation, float directNormalRadiation, float diffuseHorizontalRadiation, float globalHorizontalIlluminance, float directNormalIlluminance, float diffuseHorizontalIlluminance, float zenithLuminance, float windDirection, float windSpeed, int totalSkyCover, int opaqueSkyCover, float visibility, float ceilingHeight, int presentWeatherObservation, string? presentWeatherCodes, float precipitableWater, float aerosolOpticalDepth, float snowDepth, int daysSinceLastSnowfall, float albedo, float liquidPrecipitationDepth, float liquidPrecipitationQuantity);dateTime System.DateTime
The date and time of the record.
dataSourceAndUncertaintyFlags System.String
The data source and uncertainty flags string.
dryBulbTemperature System.Single
The dry bulb temperature, in degrees Celsius.
dewPointTemperature System.Single
The dew point temperature, in degrees Celsius.
relativeHumidity System.Single
The relative humidity, in percent.
atmosphericStationPressure System.Single
The atmospheric station pressure, in Pascals.
extraterrestrialHorizontalRadiation System.Single
The extraterrestrial horizontal radiation, in Wh/m2.
extraterrestrialDirectNormalRadiation System.Single
The extraterrestrial direct normal radiation, in Wh/m2.
horizontalInfraredRadiationIntensity System.Single
The horizontal infrared radiation intensity, in Wh/m2.
globalHorizontalRadiation System.Single
The global horizontal radiation, in Wh/m2.
directNormalRadiation System.Single
The direct normal radiation, in Wh/m2.
diffuseHorizontalRadiation System.Single
The diffuse horizontal radiation, in Wh/m2.
globalHorizontalIlluminance System.Single
The global horizontal illuminance, in lux.
directNormalIlluminance System.Single
The direct normal illuminance, in lux.
diffuseHorizontalIlluminance System.Single
The diffuse horizontal illuminance, in lux.
zenithLuminance System.Single
The zenith luminance, in Cd/m2.
windDirection System.Single
The wind direction, in degrees.
windSpeed System.Single
The wind speed, in m/s.
totalSkyCover System.Int32
The total sky cover, in tenths.
opaqueSkyCover System.Int32
The opaque sky cover, in tenths.
visibility System.Single
The visibility, in km.
ceilingHeight System.Single
The ceiling height, in m.
presentWeatherObservation System.Int32
The present weather observation flag.
presentWeatherCodes System.String
The present weather codes.
precipitableWater System.Single
The precipitable water, in mm.
aerosolOpticalDepth System.Single
The aerosol optical depth, in thousandths.
snowDepth System.Single
The snow depth, in cm.
daysSinceLastSnowfall System.Int32
The number of days since the last snowfall.
albedo System.Single
The albedo.
liquidPrecipitationDepth System.Single
The liquid precipitation depth, in mm.
liquidPrecipitationQuantity System.Single
The liquid precipitation quantity, in hours.
Initializes a new instance of the WeatherRecord class from a JSON object.
public WeatherRecord(System.Text.Json.Nodes.JsonObject? jsonObject);jsonObject System.Text.Json.Nodes.JsonObject
The JSON object containing the weather record data.
Gets the atmospheric station pressure, in Pascals.
public float AtmosphericStationPressure { get; }Gets the ceiling height, in m.
public float CeilingHeight { get; }Gets DateTime for given record.
public System.DateTime DateTime { get; }Implements DateTime
Gets the dew point temperature, in degrees Celsius.
public float DewPointTemperature { get; }Gets the diffuse horizontal illuminance, in lux.
public float DiffuseHorizontalIlluminance { get; }Gets the diffuse horizontal radiation, in Wh/m2.
public float DiffuseHorizontalRadiation { get; }Gets the direct normal illuminance, in lux.
public float DirectNormalIlluminance { get; }Gets the direct normal radiation, in Wh/m2.
public float DirectNormalRadiation { get; }Gets the dry bulb temperature, in degrees Celsius.
public float DryBulbTemperature { get; }Gets the global horizontal illuminance, in lux.
public float GlobalHorizontalIlluminance { get; }Gets the global horizontal radiation, in Wh/m2.
public float GlobalHorizontalRadiation { get; }Gets the horizontal infrared radiation intensity, in Wh/m2.
public float HorizontalInfraredRadiationIntensity { get; }Gets the opaque sky cover, in tenths.
public int OpaqueSkyCover { get; }Gets the relative humidity, in percent.
public float RelativeHumidity { get; }Gets the snow depth, in cm.
public float SnowDepth { get; }Gets the total sky cover, in tenths.
public int TotalSkyCover { get; }Gets the wind direction, in degrees.
public float WindDirection { get; }Gets the wind speed, in m/s.
public float WindSpeed { get; }