highRES-model / highRES-Europe-WF

https://highres-europe-wf.readthedocs.io/en/latest/
MIT License
0 stars 2 forks source link

Workflow is unable to handle leap years. #45

Open OskarVagero opened 4 months ago

OskarVagero commented 4 months ago

Attempting to run the workflow with a number of different weather years leads to an error.

--- .. BASE_demand_2000.dd(8787) 5 Mb 1 Error
*** Error 170 in /cluster/work/projects/ec85/highres_weather/models/2000/region/BASE_demand_2000.dd
    Domain violation for element

This is a result of year 2000 being a leap year, so the number of hours in the demand does not match the length of h.

This can either be fixed by changing the length of set h to be dynamic or by ignoring the 29th of Feb every leap year.