Skip to content

DiGi.Weather.Classes

github-actions[bot] edited this page Jul 15, 2026 · 3 revisions

DiGi.Weather.Classes Namespace

Classes

Weather Class

Represents a weather container of WeatherRecord elements.

public class Weather : DiGi.Weather.Classes.Weather<DiGi.Weather.Classes.WeatherRecord>

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.Core.Classes.SerializableObjectDiGi.Weather.Classes.Weather<WeatherRecord> → Weather

Constructors

Weather() Constructor

Initializes a new instance of the Weather class.

public Weather();

Weather(Weather) Constructor

Initializes a new instance of the Weather class by copying another instance.

public Weather(DiGi.Weather.Classes.Weather weather);

Parameters

weather Weather

The weather instance to copy.

Weather(IEnumerable<WeatherRecord>) Constructor

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);

Parameters

weatherRecords System.Collections.Generic.IEnumerable<WeatherRecord>

The collection of weather records to initialize with.

Weather(JsonObject) Constructor

Initializes a new instance of the Weather class from a JSON object.

public Weather(System.Text.Json.Nodes.JsonObject jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing weather data.

Weather<TWeatherRecord> Class

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.IWeatherRecord

Type parameters

TWeatherRecord

The type of the weather record.

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.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

Constructors

Weather() Constructor

Initializes a new instance of the Weather<TWeatherRecord> class.

public Weather();

Weather(Weather<TWeatherRecord>) Constructor

Initializes a new instance of the Weather<TWeatherRecord> class by copying another instance.

public Weather(DiGi.Weather.Classes.Weather<TWeatherRecord> weather);

Parameters

weather DiGi.Weather.Classes.Weather<TWeatherRecord>

The weather instance to copy.

Weather(IEnumerable<TWeatherRecord>) Constructor

Initializes a new instance of the Weather<TWeatherRecord> class with a collection of weather records.

public Weather(System.Collections.Generic.IEnumerable<TWeatherRecord> weatherRecords);

Parameters

weatherRecords System.Collections.Generic.IEnumerable<TWeatherRecord>

The collection of weather records.

Weather(JsonObject) Constructor

Initializes a new instance of the Weather<TWeatherRecord> class from a JSON object.

public Weather(System.Text.Json.Nodes.JsonObject jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the weather data.

Properties

Weather<TWeatherRecord>.WeatherRecords Property

Gets or sets the list of weather records.

public System.Collections.Generic.IList<TWeatherRecord>? WeatherRecords { get; set; }

Property Value

System.Collections.Generic.IList<TWeatherRecord>

Methods

Weather<TWeatherRecord>.GetEnumerator() Method

Returns an enumerator that iterates through the weather records.

public System.Collections.Generic.IEnumerator<TWeatherRecord> GetEnumerator();

Implements GetEnumerator(), GetEnumerator()

Returns

System.Collections.Generic.IEnumerator<TWeatherRecord>
An enumerator that can be used to iterate through the collection.

Explicit Interface Implementations

System.Collections.IEnumerable.GetEnumerator() Method

Returns an enumerator that iterates through the weather records.

System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator();

Implements GetEnumerator()

WeatherRecord Class

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.ICloneableObject

Inheritance System.ObjectDiGi.Core.Classes.ObjectDiGi.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

Constructors

WeatherRecord(WeatherRecord) Constructor

Initializes a new instance of the WeatherRecord class by copying another instance.

public WeatherRecord(DiGi.Weather.Classes.WeatherRecord? weatherRecord);

Parameters

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);

Parameters

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.

WeatherRecord(JsonObject) Constructor

Initializes a new instance of the WeatherRecord class from a JSON object.

public WeatherRecord(System.Text.Json.Nodes.JsonObject? jsonObject);

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing the weather record data.

Properties

WeatherRecord.AtmosphericStationPressure Property

Gets the atmospheric station pressure, in Pascals.

public float AtmosphericStationPressure { get; }

Property Value

System.Single

WeatherRecord.CeilingHeight Property

Gets the ceiling height, in m.

public float CeilingHeight { get; }

Property Value

System.Single

WeatherRecord.DateTime Property

Gets DateTime for given record.

public System.DateTime DateTime { get; }

Implements DateTime

Property Value

System.DateTime

WeatherRecord.DewPointTemperature Property

Gets the dew point temperature, in degrees Celsius.

public float DewPointTemperature { get; }

Property Value

System.Single

WeatherRecord.DiffuseHorizontalIlluminance Property

Gets the diffuse horizontal illuminance, in lux.

public float DiffuseHorizontalIlluminance { get; }

Property Value

System.Single

WeatherRecord.DiffuseHorizontalRadiation Property

Gets the diffuse horizontal radiation, in Wh/m2.

public float DiffuseHorizontalRadiation { get; }

Property Value

System.Single

WeatherRecord.DirectNormalIlluminance Property

Gets the direct normal illuminance, in lux.

public float DirectNormalIlluminance { get; }

Property Value

System.Single

WeatherRecord.DirectNormalRadiation Property

Gets the direct normal radiation, in Wh/m2.

public float DirectNormalRadiation { get; }

Property Value

System.Single

WeatherRecord.DryBulbTemperature Property

Gets the dry bulb temperature, in degrees Celsius.

public float DryBulbTemperature { get; }

Property Value

System.Single

WeatherRecord.GlobalHorizontalIlluminance Property

Gets the global horizontal illuminance, in lux.

public float GlobalHorizontalIlluminance { get; }

Property Value

System.Single

WeatherRecord.GlobalHorizontalRadiation Property

Gets the global horizontal radiation, in Wh/m2.

public float GlobalHorizontalRadiation { get; }

Property Value

System.Single

WeatherRecord.HorizontalInfraredRadiationIntensity Property

Gets the horizontal infrared radiation intensity, in Wh/m2.

public float HorizontalInfraredRadiationIntensity { get; }

Property Value

System.Single

WeatherRecord.OpaqueSkyCover Property

Gets the opaque sky cover, in tenths.

public int OpaqueSkyCover { get; }

Property Value

System.Int32

WeatherRecord.RelativeHumidity Property

Gets the relative humidity, in percent.

public float RelativeHumidity { get; }

Property Value

System.Single

WeatherRecord.SnowDepth Property

Gets the snow depth, in cm.

public float SnowDepth { get; }

Property Value

System.Single

WeatherRecord.TotalSkyCover Property

Gets the total sky cover, in tenths.

public int TotalSkyCover { get; }

Property Value

System.Int32

WeatherRecord.WindDirection Property

Gets the wind direction, in degrees.

public float WindDirection { get; }

Property Value

System.Single

WeatherRecord.WindSpeed Property

Gets the wind speed, in m/s.

public float WindSpeed { get; }

Property Value

System.Single

Clone this wiki locally