You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrating pyepwmorph into CEA as a part of the Weather Helper. Have introduced general functionality. Need to make a new pyepwmorph version and then another scenario will become available.
Functions to enable climate morphing for the EPW files based on pyepwmorph
3
+
4
+
Title: pyepwmorph
5
+
Description: This module provides functions to morph EPW files using the pyepwmorph library, a python package authored by Justin McCarty for accessing global climate models and using them to morph time series weather data in EPW files. An independent application can be found at www.morphepw.app. For a peer-reviewed article that uses pyepwmorph, please see https://doi.org/10.1088/1742-6596/2600/8/082005.
print("Weather morphing complete. The original weather file has been backed up as 'before_morph_weather.epw' in the inputs folder. The morphed weather file according to your percentile of warming choice is now set as 'weather.epw'.")
93
+
99
94
else:
100
-
copy_weather_file(weather, locator)
95
+
ifnotweather:
96
+
raiseValueError("No weather file provided. "
97
+
"Please specify a weather file or select an option to fetch data automatically. "
climate-pathways.help = Climate pathways to morph the weather file to. The "Best Case" pathway corresponds to a 1.8°C increase in global temperature, the "Moderate Case" pathway corresponds to a 2.7°C increase, and the "Worst Case" pathway corresponds to a 4.4°C increase.
141
-
climate-pathways.category = Morph Settings
137
+
climate-pathway = moderate_case
138
+
climate-pathway.type = ChoiceParameter
139
+
climate-pathway.choices = Best Case, Moderate, Worst Case
140
+
climate-pathway.help = Climate pathway to morph the weather file to. The "Best Case" pathway corresponds to a 1.8°C increase in global temperature, the "Moderate" pathway corresponds to a 2.7°C increase, and the "Worst Case" pathway corresponds to a 4.4°C increase. More information about these pathways can be read here https://www.carbonbrief.org/explainer-how-shared-socioeconomic-pathways-explore-future-climate-change/.
0 commit comments