Hey Willem,
I don't see an attached config.yaml so I am guessing blindly here:
What Fabian H mentioned seems to apply to your second problem.
For your first problem:
When you changed the config entry for the cutout to 2017, did you copy
the SARAH entry and change it to ERA5 with the different year, while
keeping the 'resolution' entry?
If yes: The current version of pypsa-eur and atlite (which takes care of
reanalysis dataset handling and time-series generation) does not
understand a 'resolution' in config.yaml for the ERA5 dataset (only for
SARAH) and will fail with presumably this error.
Copying the ERA5 entry from config.yaml and adjusting it like this:
europe-2017-era5:
module: era5
xs: [-12., 35.]
ys: [72., 33.
years: [2017, 2017]
then calling snakemake to create the cutout:
snakemake -jall cutouts/europe-2017-era5
Should work.
HTH,
Johannes
Best regards,
Johannes Hampp (he/him)
Justus Liebig University Giessen (JLU)
Center for international Development and Environmental Research (ZEU)
mailto:
johanne...@zeu.uni-giessen.de
Office 110
Senckenbergstr. 3
DE-35392 Giessen
https://uni-giessen.de/zeu
>> *snakemake -j 1 results/networks/elec_s_6_ec_lcopt_Co2L-24H.nc
>> --keep-target-files* (standard network from fabian's pypsa tutorial)
>> When doing so, I get the following error at *build_cutout:*
>>
>> /INFO:atlite.cutout:Cutout europe-2017-era5 not found in directory
>> cutouts, building new one/
>> /Traceback (most recent call last):/
>> / File
>> line 117, in <module>/
>> / cutout = atlite.Cutout(snakemake.wildcards.cutout,/
>> / File
>> "C:\Users\Willem\.conda\envs\pypsa-eur\lib\site-packages\atlite\cutout.py",
>> line 88, in __init__/
>> / self.meta = self.get_meta(**cutoutparams)/
>> / File
>> "C:\Users\Willem\.conda\envs\pypsa-eur\lib\site-packages\atlite\preparation.py",
>> line 171, in cutout_get_meta/
>> / ds = prepare_func(xs=xs, ys=ys, year=years.stop,
>> month=months.stop, **meta_kwds)/
>> /TypeError: prepare_meta_era5() got an unexpected keyword argument
>> 'resolution'/
>> /[Fri Mar 5 13:45:51 2021]/
>> /Error in rule build_cutout:/
>> / jobid: 14/
>> / output: cutouts/europe-2017-era5/
>> / log: logs/build_cutout/europe-2017-era5.log (check log file(s)
>> for error message)/
>>
>>
>> Now, I did reset the config file to the default and ran the same rule
>> again just to be sure the error does not occur again. However, after
>> this, I now get another error in *build_hydro_profile *that I did not
>> get before.
>>
>>
>> /Convert and aggregate `runoff`: 100% (1 of 1)
>> |###############################| Elapsed Time: 0:00:00 Time: 0:00:00/
>> /Traceback (most recent call last):/
>> / File
>> line 91, in <module>/
>> / inflow = cutout.runoff(shapes=country_shapes,/
>> / File
>> "C:\Users\Willem\.conda\envs\pypsa-eur\lib\site-packages\atlite\convert.py",
>> line 502, 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)/
>> /[Fri Mar 5 14:38:31 2021]/
>> /Error in rule build_hydro_profile:/
>> / jobid: 18/
>> / output: resources/
profile_hydro.nc/
>> / log: logs/build_hydro_profile.log (check log file(s) for error
>> message)/
>>
>>
>> Somehow, nothing seems to work anymore. Have you ever encountered
>> those two errors?
>>
>> Thanks in advance!
>>
>> Willem
>> --
>> You received this message because you are subscribed to the Google
>> Groups "pypsa" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to
pypsa+un...@googlegroups.com
>> <mailto:
pypsa+un...@googlegroups.com>.
>> <
https://groups.google.com/d/msgid/pypsa/970dcd65-1803-4788-bee6-824c2ac027c3n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "pypsa" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
pypsa+un...@googlegroups.com
> <mailto:
pypsa+un...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/pypsa/79b07b47-dfbe-873e-7764-9c7d66ed8da8%40gmail.com
> <
https://groups.google.com/d/msgid/pypsa/79b07b47-dfbe-873e-7764-9c7d66ed8da8%40gmail.com?utm_medium=email&utm_source=footer>.