Skip to content

Add paleo modification modules for OCP-Tool#47

Open
JanStreffing wants to merge 3 commits intomasterfrom
paleo_modifications
Open

Add paleo modification modules for OCP-Tool#47
JanStreffing wants to merge 3 commits intomasterfrom
paleo_modifications

Conversation

@JanStreffing
Copy link
Owner

Implements paleo land surface, topography, and subgrid-scale orography modifications, replacing bash/CDO scripts with Python:

  • paleo_input.py: masks, ice/snow, lakes, soils, soil water, vegetation, remaining field interpolation for added/drowned points
  • paleo_topo.py: topography anomaly method with CDO sp2gpl/gp2spl for spectral transforms
  • paleo_subgrid_oro.py: calnoro integration for SSO parameters
  • config.py: PaleoConfig dataclass with lookup tables
  • run_ocp_tool.py: conditional paleo pipeline steps
  • configs/TCO95_CORE2_EP.yaml: example Early Pliocene config
  • paleo_plan.md: implementation plan and checklist

Implements paleo land surface, topography, and subgrid-scale orography
modifications, replacing bash/CDO scripts with Python:

- paleo_input.py: masks, ice/snow, lakes, soils, soil water, vegetation,
  remaining field interpolation for added/drowned points
- paleo_topo.py: topography anomaly method with CDO sp2gpl/gp2spl for
  spectral transforms
- paleo_subgrid_oro.py: calnoro integration for SSO parameters
- config.py: PaleoConfig dataclass with lookup tables
- run_ocp_tool.py: conditional paleo pipeline steps
- configs/TCO95_CORE2_EP.yaml: example Early Pliocene config
- paleo_plan.md: implementation plan and checklist
@JanStreffing JanStreffing self-assigned this Feb 26, 2026
@JanStreffing JanStreffing added the enhancement New feature or request label Feb 26, 2026
@JanStreffing
Copy link
Owner Author

This is the tool based python translation for Fernandas work: https://spaces.awi.de/spaces/PD/pages/605389349/AWI-CM3.2+-+documentation

- environment.yaml: add python-cdo, scipy
- setup.py: add cdo, scipy to install_requires
- paleo_input.py: fix SameFileError when input == output in _replace_grib_fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant