I know it might sound not intuitive, but i want to run the Annual Irradiance Recipe only for a month. But i am having troubles with the EPW - File, as i always get the error
length of values does not match that expected by the header analysis period
even though i shortened the EPW - File to only a month, as well as setting the DATA PERIOD in the EPW - File to 1/1 to 1/31. When i started debugging to see how the analysis_period get’s defined, i reccon it ignores the DATE PERIOD in the EPW-File and just initializes an AnalysisPeriod class with only the leap year argument, which results always in an Analysis Period of a year.
Is there an option to also use the Annual Irradiance Recipe for only a certain timeframe less than a year? Reason is, i want a varying ground albedo but this is not possible in the Annual Irradiance Recipe, hence i wanted to simulate each month individually with a different ground albedo.
Found a solution for it, by converting the used EPW-File to a WEA-File wtih only the timeframe wanted. Then the Annual Irradiance Recipe can be used for indivudual timeframes.
Here the used Code, if somebody needs to define individual Timeframes
# Load the EPW File for whole year
epw = ladybug.epw.EPW('annual_weather.epw')
# Define an Analysis Period for 1.1. - 31.1
analysis_period = ladybug.analysisperiod.AnalysisPeriod(1, 1, 1, 1, 31, 23)
# Get the hours as array
hoys = [int(hoy) for hoy in analysis_period.hoys]
# Convert the EPW to a WEA-File with the defined hours
epw.to_wea('resources/input/weather/january.wea', hoys)