ESMValGroup / ESMValCore

ESMValCore: A community tool for pre-processing data from Earth system models in CMIP and running analysis scripts.
https://www.esmvaltool.org
Apache License 2.0
42 stars 38 forks source link

piControl aligned with Historical data #342

Open ledm opened 4 years ago

ledm commented 4 years ago

I want to de-trend a historical simulation with the simultaneous patch of the piControl simulation.

The detrending part is fine - I'll do that in the diagnostic - but is there a way to automate extracting the relevant years from a piControl run?

zklaus commented 4 years ago

Not quite, I don't think. But we took care to make sure that the relevant attributes remain correct, that is you have to look for branch_time_in_parent and parent_time_units to identify the starting point of the experiment. You can combine this information with branch_time_in_child to understand which are the overlapping parts.

valeriupredoi commented 4 years ago

are you aware of the detrend preprocessor? https://github.com/ESMValGroup/ESMValCore/blob/development/esmvalcore/preprocessor/_detrend.py

ledm commented 4 years ago

Cheers @valeriupredoi, @zklaus.

I don't think detrend preprocessor will help in my case. We need to detrend the historical run using the piControl data.

zklaus commented 4 years ago

I agree that this preprocessor will not help you here.