Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get absolute local temperatures? #401

Open
mathause opened this issue Feb 22, 2024 · 0 comments
Open

how to get absolute local temperatures? #401

mathause opened this issue Feb 22, 2024 · 0 comments

Comments

@mathause
Copy link
Member

This is just a small note how we can potentially get to absolute temperatures from the temperature anomalies we use in mesmer.

# gridded annual observed temperatures
obs = ...
# gridded annual model temperatures 
tas = ...

REFERENCE_PERIOD = slice("1850", "1900")
OBS_PERIOD = slice("1991", "2020")

offset = (
    # re-base model to modern temperatures
    tas.sel(time=REFERENCE_PERIOD).mean("time")
    - tas.sel(time=OBS_PERIOD).mean("time")
    # add the observed absolute temperatures
    + obs.sel(time=OBS_PERIOD).mean("time")
)

Thanks @yquilcaille

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant