Skip to content

DiGi.EPW.Classes

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

DiGi.EPW.Classes Namespace

Classes

DataPeriod Class

Represents a single period entry of the DATA PERIODS header record of an EPW file.

public class DataPeriod : DiGi.Core.Classes.SerializableObject, DiGi.EPW.Interfaces.IEPWSerializableObject, DiGi.EPW.Interfaces.IEPWObject, 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 → DataPeriod

Implements IEPWSerializableObject, IEPWObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject

Constructors

DataPeriod(DataPeriod) Constructor

Initializes a new instance of the DataPeriod class by copying an existing instance.

public DataPeriod(DiGi.EPW.Classes.DataPeriod? dataPeriod);

Parameters

dataPeriod DataPeriod

The source data period to copy from.

DataPeriod(string, string, string, string) Constructor

Initializes a new instance of the DataPeriod class.

public DataPeriod(string? name, string? startDayOfWeek, string? startDate, string? endDate);

Parameters

name System.String

The name of the data period.

startDayOfWeek System.String

The day of week on which the data period starts.

startDate System.String

The start date of the data period.

endDate System.String

The end date of the data period.

DataPeriod(JsonObject) Constructor

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

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

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing data period data.

Properties

DataPeriod.EndDate Property

Gets the end date of the data period.

public string? EndDate { get; }

Property Value

System.String

DataPeriod.Name Property

Gets the name of the data period.

public string? Name { get; }

Property Value

System.String

DataPeriod.StartDate Property

Gets the start date of the data period.

public string? StartDate { get; }

Property Value

System.String

DataPeriod.StartDayOfWeek Property

Gets the day of week on which the data period starts.

public string? StartDayOfWeek { get; }

Property Value

System.String

DataRecord Class

Represents a single hourly weather data record of an EPW file.

public class DataRecord : DiGi.Weather.Classes.WeatherRecord, DiGi.EPW.Interfaces.IEPWSerializableObject, DiGi.EPW.Interfaces.IEPWObject, 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.SerializableObjectDiGi.Weather.Classes.WeatherRecord → DataRecord

Implements IEPWSerializableObject, IEPWObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject

Constructors

DataRecord(DataRecord) Constructor

Initializes a new instance of the DataRecord class by copying an existing instance.

public DataRecord(DiGi.EPW.Classes.DataRecord? dataRecord);

Parameters

dataRecord DataRecord

The source data record to copy from.

DataRecord(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 DataRecord class.

public DataRecord(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.

DataRecord(JsonObject) Constructor

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

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

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing hourly weather data.

Properties

DataRecord.AerosolOpticalDepth Property

Gets the aerosol optical depth, in thousandths.

public float AerosolOpticalDepth { get; }

Property Value

System.Single

DataRecord.Albedo Property

Gets the albedo.

public float Albedo { get; }

Property Value

System.Single

DataRecord.DataSourceAndUncertaintyFlags Property

Gets the data source and uncertainty flags string.

public string? DataSourceAndUncertaintyFlags { get; }

Property Value

System.String

DataRecord.DaysSinceLastSnowfall Property

Gets the number of days since the last snowfall.

public int DaysSinceLastSnowfall { get; }

Property Value

System.Int32

DataRecord.ExtraterrestrialDirectNormalRadiation Property

Gets the extraterrestrial direct normal radiation, in Wh/m2.

public float ExtraterrestrialDirectNormalRadiation { get; }

Property Value

System.Single

DataRecord.ExtraterrestrialHorizontalRadiation Property

Gets the extraterrestrial horizontal radiation, in Wh/m2.

public float ExtraterrestrialHorizontalRadiation { get; }

Property Value

System.Single

DataRecord.LiquidPrecipitationDepth Property

Gets the liquid precipitation depth, in mm.

public float LiquidPrecipitationDepth { get; }

Property Value

System.Single

DataRecord.LiquidPrecipitationQuantity Property

Gets the liquid precipitation quantity, in hours.

public float LiquidPrecipitationQuantity { get; }

Property Value

System.Single

DataRecord.PrecipitableWater Property

Gets the precipitable water, in mm.

public float PrecipitableWater { get; }

Property Value

System.Single

DataRecord.PresentWeatherCodes Property

Gets the present weather codes.

public string? PresentWeatherCodes { get; }

Property Value

System.String

DataRecord.PresentWeatherObservation Property

Gets the present weather observation flag.

public int PresentWeatherObservation { get; }

Property Value

System.Int32

DataRecord.Visibility Property

Gets the visibility, in km.

public float Visibility { get; }

Property Value

System.Single

DataRecord.ZenithLuminance Property

Gets the zenith luminance, in Cd/m2.

public float ZenithLuminance { get; }

Property Value

System.Single

DesignConditions Class

Represents the DESIGN CONDITIONS header record of an EPW file.

public class DesignConditions : DiGi.Core.Classes.SerializableObject, DiGi.EPW.Interfaces.IEPWSerializableObject, DiGi.EPW.Interfaces.IEPWObject, 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 → DesignConditions

Implements IEPWSerializableObject, IEPWObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject

Constructors

DesignConditions(DesignConditions) Constructor

Initializes a new instance of the DesignConditions class by copying an existing instance.

public DesignConditions(DiGi.EPW.Classes.DesignConditions? designConditions);

Parameters

designConditions DesignConditions

The source design conditions to copy from.

DesignConditions(int, string, string, IList<double>, IList<double>, IList<double>) Constructor

Initializes a new instance of the DesignConditions class.

public DesignConditions(int numberOfDesignConditions, string? source, string? name, System.Collections.Generic.IList<double>? heatingValues, System.Collections.Generic.IList<double>? coolingValues, System.Collections.Generic.IList<double>? extremeValues);

Parameters

numberOfDesignConditions System.Int32

The number of design conditions contained in the record.

source System.String

The source of the design condition data.

name System.String

The design condition name, if specified.

heatingValues System.Collections.Generic.IList<System.Double>

The heating design condition values, in file order.

coolingValues System.Collections.Generic.IList<System.Double>

The cooling design condition values, in file order.

extremeValues System.Collections.Generic.IList<System.Double>

The extreme design condition values, in file order.

DesignConditions(JsonObject) Constructor

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

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

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing design conditions data.

Properties

DesignConditions.CoolingValues Property

Gets the cooling design condition values, in file order.

public System.Collections.Generic.IList<double>? CoolingValues { get; }

Property Value

System.Collections.Generic.IList<System.Double>

DesignConditions.ExtremeValues Property

Gets the extreme design condition values, in file order.

public System.Collections.Generic.IList<double>? ExtremeValues { get; }

Property Value

System.Collections.Generic.IList<System.Double>

DesignConditions.HeatingValues Property

Gets the heating design condition values, in file order.

public System.Collections.Generic.IList<double>? HeatingValues { get; }

Property Value

System.Collections.Generic.IList<System.Double>

DesignConditions.Name Property

Gets the design condition name, if specified.

public string? Name { get; }

Property Value

System.String

DesignConditions.NumberOfDesignConditions Property

Gets the number of design conditions contained in the record.

public int NumberOfDesignConditions { get; }

Property Value

System.Int32

DesignConditions.Source Property

Gets the source of the design condition data.

public string? Source { get; }

Property Value

System.String

EPWFile Class

Represents an EnergyPlus Weather (EPW) file and its associated data.

public class EPWFile : DiGi.Weather.Classes.Weather, DiGi.EPW.Interfaces.IEPWSerializableObject, DiGi.EPW.Interfaces.IEPWObject, 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.SerializableObjectDiGi.Weather.Classes.Weather<DiGi.Weather.Classes.WeatherRecord>DiGi.Weather.Classes.Weather → EPWFile

Implements IEPWSerializableObject, IEPWObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject

Constructors

EPWFile(EPWFile) Constructor

Initializes a new instance of the EPWFile class by copying an existing instance.

public EPWFile(DiGi.EPW.Classes.EPWFile? ePWFile);

Parameters

ePWFile EPWFile

The source EPW file to copy from.

EPWFile(Location, DesignConditions, IList<TypicalExtremePeriod>, IList<GroundTemperature>, HolidaysDaylightSaving, string, string, IList<DataPeriod>, IList<DataRecord>) Constructor

Initializes a new instance of the EPWFile class.

public EPWFile(DiGi.EPW.Classes.Location? location, DiGi.EPW.Classes.DesignConditions? designConditions=null, System.Collections.Generic.IList<DiGi.EPW.Classes.TypicalExtremePeriod>? typicalExtremePeriods=null, System.Collections.Generic.IList<DiGi.EPW.Classes.GroundTemperature>? groundTemperatures=null, DiGi.EPW.Classes.HolidaysDaylightSaving? holidaysDaylightSaving=null, string? comments1=null, string? comments2=null, System.Collections.Generic.IList<DiGi.EPW.Classes.DataPeriod>? dataPeriods=null, System.Collections.Generic.IList<DiGi.EPW.Classes.DataRecord>? dataRecords=null);

Parameters

location Location

The location associated with the EPW file.

designConditions DesignConditions

The design conditions header record.

typicalExtremePeriods System.Collections.Generic.IList<TypicalExtremePeriod>

The typical/extreme periods header record.

groundTemperatures System.Collections.Generic.IList<GroundTemperature>

The ground temperatures header record.

holidaysDaylightSaving HolidaysDaylightSaving

The holidays/daylight saving header record.

comments1 System.String

The first comments header record.

comments2 System.String

The second comments header record.

dataPeriods System.Collections.Generic.IList<DataPeriod>

The data periods header record.

dataRecords System.Collections.Generic.IList<DataRecord>

The hourly weather data records.

EPWFile(JsonObject) Constructor

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

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

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing EPW file data.

Properties

EPWFile.Comments1 Property

Gets the first comments header record.

public string? Comments1 { get; }

Property Value

System.String

EPWFile.Comments2 Property

Gets the second comments header record.

public string? Comments2 { get; }

Property Value

System.String

EPWFile.DataPeriods Property

Gets the data periods header record.

public System.Collections.Generic.IList<DiGi.EPW.Classes.DataPeriod>? DataPeriods { get; }

Property Value

System.Collections.Generic.IList<DataPeriod>

EPWFile.DataRecords Property

Gets the hourly weather data records.

public System.Collections.Generic.IList<DiGi.EPW.Classes.DataRecord>? DataRecords { get; }

Property Value

System.Collections.Generic.IList<DataRecord>

EPWFile.DesignConditions Property

Gets the design conditions header record.

public DiGi.EPW.Classes.DesignConditions? DesignConditions { get; }

Property Value

DesignConditions

EPWFile.GroundTemperatures Property

Gets the ground temperatures header record.

public System.Collections.Generic.IList<DiGi.EPW.Classes.GroundTemperature>? GroundTemperatures { get; }

Property Value

System.Collections.Generic.IList<GroundTemperature>

EPWFile.HolidaysDaylightSaving Property

Gets the holidays/daylight saving header record.

public DiGi.EPW.Classes.HolidaysDaylightSaving? HolidaysDaylightSaving { get; }

Property Value

HolidaysDaylightSaving

EPWFile.Location Property

Gets the location information associated with this EPW file.

public DiGi.EPW.Classes.Location? Location { get; }

Property Value

Location

EPWFile.TypicalExtremePeriods Property

Gets the typical/extreme periods header record.

public System.Collections.Generic.IList<DiGi.EPW.Classes.TypicalExtremePeriod>? TypicalExtremePeriods { get; }

Property Value

System.Collections.Generic.IList<TypicalExtremePeriod>

GroundTemperature Class

Represents a single depth entry of the GROUND TEMPERATURES header record of an EPW file.

public class GroundTemperature : DiGi.Core.Classes.SerializableObject, DiGi.EPW.Interfaces.IEPWSerializableObject, DiGi.EPW.Interfaces.IEPWObject, 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 → GroundTemperature

Implements IEPWSerializableObject, IEPWObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject

Constructors

GroundTemperature(GroundTemperature) Constructor

Initializes a new instance of the GroundTemperature class by copying an existing instance.

public GroundTemperature(DiGi.EPW.Classes.GroundTemperature? groundTemperature);

Parameters

groundTemperature GroundTemperature

The source ground temperature to copy from.

GroundTemperature(double, Nullable<double>, Nullable<double>, Nullable<double>, IList<double>) Constructor

Initializes a new instance of the GroundTemperature class.

public GroundTemperature(double depth, System.Nullable<double> conductivity, System.Nullable<double> density, System.Nullable<double> specificHeat, System.Collections.Generic.IList<double>? monthlyValues);

Parameters

depth System.Double

The ground depth, in meters.

conductivity System.Nullable<System.Double>

The soil thermal conductivity, if specified.

density System.Nullable<System.Double>

The soil density, if specified.

specificHeat System.Nullable<System.Double>

The soil specific heat, if specified.

monthlyValues System.Collections.Generic.IList<System.Double>

The twelve monthly ground temperature values.

GroundTemperature(JsonObject) Constructor

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

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

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing ground temperature data.

Properties

GroundTemperature.Conductivity Property

Gets the soil thermal conductivity, if specified.

public System.Nullable<double> Conductivity { get; }

Property Value

System.Nullable<System.Double>

GroundTemperature.Density Property

Gets the soil density, if specified.

public System.Nullable<double> Density { get; }

Property Value

System.Nullable<System.Double>

GroundTemperature.Depth Property

Gets the ground depth, in meters.

public double Depth { get; }

Property Value

System.Double

GroundTemperature.MonthlyValues Property

Gets the twelve monthly ground temperature values.

public System.Collections.Generic.IList<double>? MonthlyValues { get; }

Property Value

System.Collections.Generic.IList<System.Double>

GroundTemperature.SpecificHeat Property

Gets the soil specific heat, if specified.

public System.Nullable<double> SpecificHeat { get; }

Property Value

System.Nullable<System.Double>

Holiday Class

Represents a single holiday entry of the HOLIDAYS/DAYLIGHT SAVINGS header record of an EPW file.

public class Holiday : DiGi.Core.Classes.SerializableObject, DiGi.EPW.Interfaces.IEPWSerializableObject, DiGi.EPW.Interfaces.IEPWObject, 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 → Holiday

Implements IEPWSerializableObject, IEPWObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject

Constructors

Holiday(Holiday) Constructor

Initializes a new instance of the Holiday class by copying an existing instance.

public Holiday(DiGi.EPW.Classes.Holiday? holiday);

Parameters

holiday Holiday

The source holiday to copy from.

Holiday(string, string) Constructor

Initializes a new instance of the Holiday class.

public Holiday(string? name, string? date);

Parameters

name System.String

The name of the holiday.

date System.String

The date of the holiday.

Holiday(JsonObject) Constructor

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

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

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing holiday data.

Properties

Holiday.Date Property

Gets the date of the holiday.

public string? Date { get; }

Property Value

System.String

Holiday.Name Property

Gets the name of the holiday.

public string? Name { get; }

Property Value

System.String

HolidaysDaylightSaving Class

Represents the HOLIDAYS/DAYLIGHT SAVINGS header record of an EPW file.

public class HolidaysDaylightSaving : DiGi.Core.Classes.SerializableObject, DiGi.EPW.Interfaces.IEPWSerializableObject, DiGi.EPW.Interfaces.IEPWObject, 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 → HolidaysDaylightSaving

Implements IEPWSerializableObject, IEPWObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject

Constructors

HolidaysDaylightSaving(bool, string, string, IList<Holiday>) Constructor

Initializes a new instance of the HolidaysDaylightSaving class.

public HolidaysDaylightSaving(bool leapYearObserved, string? daylightSavingStartDate, string? daylightSavingEndDate, System.Collections.Generic.IList<DiGi.EPW.Classes.Holiday>? holidays);

Parameters

leapYearObserved System.Boolean

Indicates whether the leap year is observed.

daylightSavingStartDate System.String

The daylight saving start date.

daylightSavingEndDate System.String

The daylight saving end date.

holidays System.Collections.Generic.IList<Holiday>

The list of holidays defined in the file.

HolidaysDaylightSaving(HolidaysDaylightSaving) Constructor

Initializes a new instance of the HolidaysDaylightSaving class by copying an existing instance.

public HolidaysDaylightSaving(DiGi.EPW.Classes.HolidaysDaylightSaving? holidaysDaylightSaving);

Parameters

holidaysDaylightSaving HolidaysDaylightSaving

The source holidays/daylight saving record to copy from.

HolidaysDaylightSaving(JsonObject) Constructor

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

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

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing holidays/daylight saving data.

Properties

HolidaysDaylightSaving.DaylightSavingEndDate Property

Gets the daylight saving end date.

public string? DaylightSavingEndDate { get; }

Property Value

System.String

HolidaysDaylightSaving.DaylightSavingStartDate Property

Gets the daylight saving start date.

public string? DaylightSavingStartDate { get; }

Property Value

System.String

HolidaysDaylightSaving.Holidays Property

Gets the list of holidays defined in the file.

public System.Collections.Generic.IList<DiGi.EPW.Classes.Holiday>? Holidays { get; }

Property Value

System.Collections.Generic.IList<Holiday>

HolidaysDaylightSaving.LeapYearObserved Property

Gets a value indicating whether the leap year is observed.

public bool LeapYearObserved { get; }

Property Value

System.Boolean

Location Class

Represents a geographical location including coordinates, elevation, and administrative details.

public class Location : DiGi.Core.Classes.SerializableObject, DiGi.EPW.Interfaces.IEPWSerializableObject, DiGi.EPW.Interfaces.IEPWObject, 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 → Location

Implements IEPWSerializableObject, IEPWObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject

Constructors

Location(Location) Constructor

Initializes a new instance of the Location class by copying an existing instance.

public Location(DiGi.EPW.Classes.Location? location);

Parameters

location Location

The source location to copy from.

Location(string, string, string, string, string, double, double, double, double) Constructor

Initializes a new instance of the Location class.

public Location(string? city, string? region, string? country, string? source, string? wHO, double latitude, double longitude, double timeZone, double elevation);

Parameters

city System.String

The name of the city.

region System.String

The region or administrative area.

country System.String

The name of the country.

source System.String

The source of the location data.

wHO System.String

The World Health Organization designation.

latitude System.Double

The latitude coordinate.

longitude System.Double

The longitude coordinate.

timeZone System.Double

The time zone offset.

elevation System.Double

The elevation above sea level.

Location(JsonObject) Constructor

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

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

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing location data.

Properties

Location.City Property

Gets the name of the city.

public string? City { get; }

Property Value

System.String

Location.Country Property

Gets the name of the country.

public string? Country { get; }

Property Value

System.String

Location.Elevation Property

Gets the elevation of the location.

public double Elevation { get; }

Property Value

System.Double

Location.Latitude Property

Gets the latitude coordinate of the location.

public double Latitude { get; }

Property Value

System.Double

Location.Longitude Property

Gets the longitude coordinate of the location.

public double Longitude { get; }

Property Value

System.Double

Location.Region Property

Gets the region or administrative area of the location.

public string? Region { get; }

Property Value

System.String

Location.Source Property

Gets the source from which the location data was retrieved.

public string? Source { get; }

Property Value

System.String

Location.TimeZone Property

Gets the time zone offset for the location.

public double TimeZone { get; }

Property Value

System.Double

Location.WHO Property

Gets the World Health Organization (WHO) designation for the location.

public string? WHO { get; }

Property Value

System.String

TypicalExtremePeriod Class

Represents a single period entry of the TYPICAL/EXTREME PERIODS header record of an EPW file.

public class TypicalExtremePeriod : DiGi.Core.Classes.SerializableObject, DiGi.EPW.Interfaces.IEPWSerializableObject, DiGi.EPW.Interfaces.IEPWObject, 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 → TypicalExtremePeriod

Implements IEPWSerializableObject, IEPWObject, DiGi.Core.Interfaces.IObject, DiGi.Core.Interfaces.ISerializableObject, DiGi.Core.Interfaces.ICloneableObject<DiGi.Core.Interfaces.ISerializableObject>, DiGi.Core.Interfaces.ICloneableObject

Constructors

TypicalExtremePeriod(TypicalExtremePeriod) Constructor

Initializes a new instance of the TypicalExtremePeriod class by copying an existing instance.

public TypicalExtremePeriod(DiGi.EPW.Classes.TypicalExtremePeriod? typicalExtremePeriod);

Parameters

typicalExtremePeriod TypicalExtremePeriod

The source typical/extreme period to copy from.

TypicalExtremePeriod(string, string, string, string) Constructor

Initializes a new instance of the TypicalExtremePeriod class.

public TypicalExtremePeriod(string? name, string? periodType, string? startDate, string? endDate);

Parameters

name System.String

The name of the typical or extreme period.

periodType System.String

The type of the period, e.g. Typical or Extreme.

startDate System.String

The start date of the period.

endDate System.String

The end date of the period.

TypicalExtremePeriod(JsonObject) Constructor

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

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

Parameters

jsonObject System.Text.Json.Nodes.JsonObject

The JSON object containing typical/extreme period data.

Properties

TypicalExtremePeriod.EndDate Property

Gets the end date of the period.

public string? EndDate { get; }

Property Value

System.String

TypicalExtremePeriod.Name Property

Gets the name of the typical or extreme period.

public string? Name { get; }

Property Value

System.String

TypicalExtremePeriod.PeriodType Property

Gets the type of the period, e.g. Typical or Extreme.

public string? PeriodType { get; }

Property Value

System.String

TypicalExtremePeriod.StartDate Property

Gets the start date of the period.

public string? StartDate { get; }

Property Value

System.String

Clone this wiki locally