Degree Days
calc_daily_dbs(hpxml)
Calculate daily average dry bulb temperatures from EPW weather data.
This function computes daily average dry bulb temperatures in both Celsius and Fahrenheit from the EPW weather data contained in the provided HPXML document.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
hpxml
|
HpxmlDoc
|
HPXML document object containing weather data. |
required |
Returns:
Type | Description |
---|---|
namedtuple
|
Named tuple with fields 'c' (Celsius) and 'f' (Fahrenheit), each as a pandas Series. |
Source code in src/openstudio_hpxml_calibration/weather_normalization/degree_days.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
calc_degree_days(daily_dbs, base_temp_f, is_heating)
Calculate degree days from daily temperature data.
This function computes the total heating or cooling degree days for a given base temperature using daily average dry bulb temperatures.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
daily_dbs
|
Series
|
Series of daily average dry bulb temperatures (°F). |
required |
base_temp_f
|
float
|
Base temperature in Fahrenheit for degree day calculation. |
required |
is_heating
|
bool
|
If True, calculates heating degree days; if False, cooling degree days. |
required |
Returns:
Type | Description |
---|---|
float
|
Total degree days for the specified base temperature and mode. |
Source code in src/openstudio_hpxml_calibration/weather_normalization/degree_days.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
calc_heat_cool_degree_days(dailydbs)
Calculate heating and cooling degree days from daily temperature data.
This function returns a dictionary containing heating and cooling degree days (HDD65F, CDD65F) for the provided daily average dry bulb temperatures.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dailydbs
|
Series
|
Series of daily average dry bulb temperatures (°F). |
required |
Returns:
Type | Description |
---|---|
dict
|
Dictionary with keys 'HDD65F' and 'CDD65F' and their respective degree day values. |
Source code in src/openstudio_hpxml_calibration/weather_normalization/degree_days.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|
calculate_annual_degree_days(hpxml)
Calculate annual heating and cooling degree days for each fuel type.
This function computes the total heating degree days (HDD) and cooling degree days (CDD) for the actual period and the TMY period, for each fuel type present in the HPXML document.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
hpxml
|
HpxmlDoc
|
HPXML document object containing weather and fuel information. |
required |
Returns:
Type | Description |
---|---|
tuple[dict, dict]
|
Tuple containing dictionaries of total period TMY degree days and actual degree days by fuel type. |
Source code in src/openstudio_hpxml_calibration/weather_normalization/degree_days.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
|