Skip to content
Snippets Groups Projects
Commit abf4c14a authored by Florian Ziemen's avatar Florian Ziemen
Browse files

Simple script to generate list of xpp tuning experimets

Needs more work to add useful info about the simulations.
parent 9bcfd44f
Branches m301118-main-patch-00782
No related tags found
2 merge requests!4Move from .md to .yaml inputs,!3Draft: icon-xpp tuning for enso
Pipeline #94955 passed
%% Cell type:code id: tags:
``` python
from pathlib import Path
import re
```
%% Cell type:code id: tags:
``` python
basedir = Path("/work/kd1418/m301118/icon_run/icon-xpp/experiments/")
amip = sorted(basedir.glob(r"dy????"))
coupled = sorted(basedir.glob(r"dy????_cmip"))
```
%% Cell type:code id: tags:
``` python
lines = []
lines.extend(
[
"| Simulation (expid) | Project | Resolutions | start date | end date | Location (on Levante|) | Contact |\n",
"| ------------------ | ------------------ | --------------------------- | ---------- | ---------- |-----|\n",
]
)
for x in amip:
lines.append(
re.sub(
"_",
r"\_",
f"|{x.stem}| coming decade - icon xpp enso tuning | r2b4l90 atmos / no ocean | 1980-01-01 | 1997-12-31 | {x} | Dakuan Yu |\n",
)
)
for x in coupled:
lines.append(
re.sub(
"_",
r"\_",
f"|{x.stem}| coming decade - icon xpp enso tuning | r2b4l90 atmos / some ocean | 1980-01-01 | 1997-12-31 | {x} | Dakuan Yu |\n",
)
)
```
%% Cell type:code id: tags:
``` python
with open("../inputs/icon-xpp-enso.md", "w") as outfile:
outfile.writelines(lines)
```
%% Cell type:code id: tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment