Skip to content

Conversation

@axel-lauer
Copy link
Contributor

Description

This PR adds a downloading and formatting script for the dataset ESACCI-PERMAFROST v3.0. The following three variables are supported:

  • active layer thickness (alt)
  • permafrost ground temperature (gtd)
  • permafrost extent (pfr)

The CMORizer requires the custom CMOR tables defined in ESMValGroup/ESMValCore#2358.

Checklist

It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.

New or updated data reformatting script

Copy link
Member

@LisaBock LisaBock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @axel-lauer !

I started the review and run in two issues:

  • there were small modifications in the downloader necessary (see comment there)
  • when starting the formatter I got the following error message:
    PermissionError: [Errno 13] Permission denied: '/work/bd0854/b380103/esacci-permafrost-weights'

Please update also the branch with the main branch.

Overwrite already downloaded files
"""
if start_date is None:
start_date = datetime(1997, 1, 1, tzinfo=datetime.timezone.utc)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gives me the following error message:
AttributeError: type object 'datetime.datetime' has no attribute 'timezone'. Did you mean: 'astimezone'?

It worked when I added from datetime import timezone and replaced datetime.timezone with timezone .

Copy link
Contributor Author

@axel-lauer axel-lauer Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just removed the time zone stuff. It seems this is not needed (any more): e74218d
I also updated with the latest main resolving the conflict in input.rst.

mip: Lyr
raw: ALT
file: 'ESACCI-PERMAFROST-L4-ALT-*-AREA4_PP-{year}-fv03.0.nc'
weights_dir: '/work/bd0854/b380103/esacci-permafrost-weights'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @axel-lauer ,
if these weights are needed, could you store them in a public/group folder or in the ESMValTool repository?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The weights file should be generated automatically and is then reused to speed up the regridding. Could you try setting
weights_dir: './esacci-permafrost-weights' in the config file? Not sure which directory to give so it works for every user on every machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants