Open Mar-Ges opened 5 days ago
The pull request introduces several significant changes across multiple files. The WeatherPathParameter
class in cea/config.py
has been updated to handle .dat
files, converting them to .epw
format. A new script for generating weather data sources has been added in cea/datamanagement/weather_helper/generate_weather_data_sources.py
. Additionally, a new function for parsing .dat
files has been introduced in cea/datamanagement/weather_helper/weather_helper.py
. The configuration file cea/default.config
has also been modified to support new parameters and update existing ones for enhanced flexibility.
File Path | Change Summary |
---|---|
cea/config.py | Modified decode method in WeatherPathParameter to handle .dat files and convert them to .epw . Updated error message for valid formats. |
cea/datamanagement/weather_helper/generate_weather_data_sources.py | Introduced a new script to generate weather data sources from Excel files, processing them into GeoJSON format. |
cea/datamanagement/weather_helper/weather_helper.py | Added parse_dat_weather_file function to convert .dat files to .epw . Modified main function to incorporate this new functionality. |
cea/default.config | Updated weather parameter to accept .epw and .dat , added year-construction parameter, and modified occupancy-type options. Marked several parameters as nullable. |
sequenceDiagram
participant User
participant Config
participant WeatherPathParameter
participant WeatherHelper
participant GenerateWeatherDataSources
User->>Config: Specify weather file
Config->>WeatherPathParameter: Check file type
WeatherPathParameter->>WeatherHelper: If .dat, call parse_dat_weather_file
WeatherHelper->>WeatherHelper: Convert .dat to .epw
WeatherPathParameter->>Config: Validate file paths
User->>GenerateWeatherDataSources: Request weather data sources
GenerateWeatherDataSources->>GenerateWeatherDataSources: Fetch and process Excel files
GenerateWeatherDataSources->>User: Provide GeoJSON output
🐰 In the meadow where data flows,
A.dat
file now brightly glows.
With a hop and a skip, it turns to.epw
,
Weather paths broaden, oh what a view!
Configs updated, choices galore,
Let's gather the data, and explore some more! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Hi all, This update is especially for anyone using data from the German Weather Agency (DWD), which provides weather files in this format.
Summary by CodeRabbit
Release Notes
New Features
.dat
weather files, which can now be converted to.epw
format.Bug Fixes
Documentation