Dear Uwe,
It looks like you did not download the raw SARAH data?
The rule `build_cutout` uses the module `atlite`.
`atlite` can automatically download data for ERA5 but not for SARAH.
You need to manually download the raw SARAH data for the years you are
interested in. After placing them in the appropriate location (path
configured in "config.py" in your atlite installation directory with
subfolder `SID/` and `SIS/`) you should be able to create the cutout(s).
Link describing the SARAH data to download and folder structure
(the rest, especially the configuration, is *not* applicable):
https://atlite.readthedocs.io/en/latest/examples/create_cutout_SARAH.html
I.e.:
1. Download raw data.
2. Extract into SID/ and SIS/ folders.
3. Configure `sarah_dir` in `config.py` in directory of `atlite.__path__`.
4. Try again.
HTH.
Best,
Johannes
Am 06/08/2020 um 14:39 schrieb Uwe:
> Dear community,
>
> I am trying to get cutouts for several the period of several other years
> using the CDS API and the build_cutout method. This works just fine for
> the ERA5 data, but throws an error for the sarah data, which is used for
> PV. Did anyone get the same error and knows a solution for the problem?
>
> Here is the error:
>
> |
> rule build_cutout:
> output:cutouts/europe-2013-sarah
> log:logs/build_cutout/europe-2013-sarah.log
> jobid:0
> benchmark:benchmarks/build_cutout_europe-2013-sarah
> wildcards:cutout=europe-2013-sarah
> resources:mem=4000
>
> INFO:atlite.cutout:Cutouteurope-2013-sarah notfound indirectory
> cutouts,building newone
> Traceback(most recent call last):
>
> File"/home/uwe/PyPSA/pypsa-eur-0171/pypsa-eur/.snakemake/scripts/
tmpk7iz0o21.build_cutout.py",line
> 120,in<module>
> **cutout_params)
>
> File"/home/uwe/anaconda3/envs/pypsa-eur/lib/python3.7/site-packages/atlite/cutout.py",line
> 88,in__init__
> self.meta =self.get_meta(**cutoutparams)
>
> File"/home/uwe/anaconda3/envs/pypsa-eur/lib/python3.7/site-packages/atlite/preparation.py",line
> 171,incutout_get_meta
> ds
> =prepare_func(xs=xs,ys=ys,year=years.stop,month=months.stop,**meta_kwds)
>
> File"/home/uwe/anaconda3/envs/pypsa-eur/lib/python3.7/site-packages/atlite/datasets/sarah.py",line
> 73,inprepare_meta_sarah
> fort in(template_sis,template_sid)]
>
> File"/home/uwe/anaconda3/envs/pypsa-eur/lib/python3.7/site-packages/atlite/datasets/sarah.py",line
> 73,in<listcomp>
> fort in(template_sis,template_sid)]
> StopIteration
> [ThuAug 613:35:352020]
> Errorinrule build_cutout:
> --
> 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/56a88098-f9d2-4260-b747-61d6e3ff4de2o%40googlegroups.com
> <
https://groups.google.com/d/msgid/pypsa/56a88098-f9d2-4260-b747-61d6e3ff4de2o%40googlegroups.com?utm_medium=email&utm_source=footer>.