PyPSA/pypsa-eur

Documentaiton of restrictions of snaphots configuration

fhg-isi opened this issue · 0 comments

I tried to run the default configuraiton but only for a single month intead a whole year:

snapshots:
  start: "2013-01-01"
  end: "2013-02-01"
  inclusive: 'left'

Then I got the error below.

=> Please include some hint in the documentation what time ranges are supported.

In the overnight example, a time span of one wee seems to be used:

snapshots:
  start: "2013-03-01"
  end: "2013-03-08"

and there is no error like "AssertionError: Need at least a full year of data (more is better)".

Why is that the case?

ERROR:root:Uncaught exception
Traceback (most recent call last):
  File "/home/projekt-resilient03/pypsa-eur/.snakemake/scripts/tmplgfouogd.build_hydro_profile.py", line 215, in <module>
    inflow = cutout.runoff(
             ^^^^^^^^^^^^^^
  File "/home/projekt-resilient03/conda/envs/pypsa-eur/lib/python3.11/site-packages/atlite/convert.py", line 867, in runoff
    assert len(years), "Need at least a full year of data (more is better)"
           ^^^^^^^^^^
AssertionError: Need at least a full year of data (more is better)
RuleException:
CalledProcessError in file /home/projekt-resilient03/pypsa-eur/rules/build_electricity.smk, line 333:
Command 'set -euo pipefail;  /home/projekt-resilient03/conda/envs/pypsa-eur/bin/python3.11 /home/projekt-resilient03/pypsa-eur/.snakemake/scripts/tmplgfouogd.build_hydro_profile.py' returned non-zero exit status 1.
[Thu Jul 18 13:31:21 2024]
[26484] [duration: 2430 ms]
Error in rule build_hydro_profile:
    jobid: 24
    input: resources/country_shapes.geojson, data/eia_hydro_annual_generation.csv, data/eia_hydro_annual_capacity.csv, data/era5-annual-runoff-per-country.csv, cutouts/europe-2013-era5.nc
    output: resources/profile_hydro.nc
    log: logs/build_hydro_profile.log (check log file(s) for error details)
    conda-env: /home/projekt-resilient03/pypsa-eur/.snakemake/conda/fbcf67a17049d57630792c1af3753c25_

Related:

#1164