-
Notifications
You must be signed in to change notification settings - Fork 115
Description
Hi everyone,
I'm a master student at the Technical University of Munich and am working with OGGM for a research project.
I need to run a historical spin-up from the period of 1901-1970, with the GSWP3-W5E5 climate dataset, but am encountering difficulties with it.
OGGM's climate data documentation (https://docs.oggm.org/en/latest/climate-data.html) mentions that, GSWP3-W5E5 is a combination of W5E5 v2.0 [Lange_et_al_2021] for 1979-2019 with GSWP3 v1.09 [Kim_2017] homogenized to W5E5 for 1901-1978. Note that the baseline url file paths are only named W5E5 to make it shorter, however they include both, GSWP3 and W5E5 data.
I'm currently stuck in this loop:
>>> tasks.process_w5e5_data(gdirs, y0=1901, y1=2020)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ingra/miniforge3/envs/oggm_env/lib/python3.11/site-packages/oggm/shop/w5e5.py", line 259, in process_w5e5_data
raise InvalidParamsError(text)
oggm.exceptions.InvalidParamsError: The W5E5 climate only goes from 1979-2019,if you want older climate data,use instead "process_gswp3_w5e5_data()"
>>> tasks.process_gswp3_w5e5_data(gdirs, y0=1901, y1=2020)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'oggm.tasks' has no attribute 'process_gswp3_w5e5_data'. Did you mean: 'process_w5e5_data'?
When I checked the task "process_w5e5_data" in the documentation (https://docs.oggm.org/en/stable/generated/oggm.tasks.process_w5e5_data.html), I found that it calls internally for process_gswp3_w5e5_data but only for the W5E5 part, limiting the starting year to 1979.
It seemed a bit counterintuitive for me that the climate data mentions GSWP3 as a dataset starting in 1901, but the task doesn't allow its use for a spin up before 1979.
Could anybody please help a begginer with some insights on what I might be doing wrong or if it's indeed not possible?
Thank you!