Skip to content

Commit ec7b4af

Browse files
committed
Update AMIP entries
1 parent 882e29b commit ec7b4af

4 files changed

Lines changed: 114 additions & 65 deletions

File tree

experiment/amip-p4k.json

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,23 @@
22
"@context": "000_context.jsonld",
33
"id": "amip-p4k",
44
"type": "experiment",
5-
"experiment_id": "amip-p4K",
6-
"activity_id": [
7-
"cfmip"
8-
],
5+
"description": "Same as `amip` simulation, except sea surface temperatures are increased by 4K in ice-free regions.",
6+
"drs_name": "amip-p4k",
7+
"start_timestamp": null,
8+
"end_timestamp": null,
9+
"activity": "cfmip",
910
"additional_allowed_model_components": [
1011
"aer",
11-
"chem"
12-
],
13-
"description": "As CMIP5/CFMIP-2 amip4K experiment. AMIP experiment where SSTs are subject to a uniform warming of 4K",
14-
"end_year": 2014,
15-
"experiment": "AMIP with uniform 4K SST increase",
16-
"min_number_yrs_per_sim": "36",
17-
"parent_activity_id": [
18-
"no parent"
19-
],
20-
"parent_experiment_id": [
21-
"no parent"
12+
"chem",
13+
"bgc"
2214
],
15+
"branch_information": null,
16+
"min_ensemble_size": 1,
17+
"parent_activity": null,
18+
"parent_experiment": null,
19+
"parent_mip_era": null,
2320
"required_model_components": [
2421
"agcm"
2522
],
26-
"start_year": 1979,
27-
"sub_experiment_id": [
28-
"none"
29-
],
30-
"tier": "1",
31-
"drs_name": "amip-p4K"
32-
}
23+
"tier": 1
24+
}

experiment/amip-piforcing.json

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,23 @@
22
"@context": "000_context.jsonld",
33
"id": "amip-piforcing",
44
"type": "experiment",
5-
"experiment_id": "amip-piForcing",
6-
"activity_id": [
7-
"cfmip"
8-
],
5+
"description": "Same as `amip` simulation, except it starts in 1870 and all forcings are set to pre-industrial levels rather than time-varying forcings.",
6+
"drs_name": "amip-piForcing",
7+
"start_timestamp": null,
8+
"end_timestamp": null,
9+
"activity": "cfmip",
910
"additional_allowed_model_components": [
1011
"aer",
11-
"chem"
12-
],
13-
"description": "Identical to standard AMIP experiment but from 1870-present with constant pre-industrial forcing levels (anthropogenic and natural)",
14-
"end_year": 2014,
15-
"experiment": "AMIP SSTs with pre-industrial anthropogenic and natural forcing",
16-
"min_number_yrs_per_sim": "145",
17-
"parent_activity_id": [
18-
"no parent"
19-
],
20-
"parent_experiment_id": [
21-
"no parent"
12+
"chem",
13+
"bgc"
2214
],
15+
"branch_information": null,
16+
"min_ensemble_size": 1,
17+
"parent_activity": null,
18+
"parent_experiment": null,
19+
"parent_mip_era": null,
2320
"required_model_components": [
2421
"agcm"
2522
],
26-
"start_year": 1870,
27-
"sub_experiment_id": [
28-
"none"
29-
],
30-
"tier": "2",
31-
"drs_name": "amip-piForcing"
32-
}
23+
"tier": 1
24+
}

experiment/amip.json

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,23 @@
22
"@context": "000_context.jsonld",
33
"id": "amip",
44
"type": "experiment",
5-
"experiment_id": "amip",
6-
"activity_id": [
7-
"cmip"
8-
],
5+
"description": "Simulation of the climate of the recent past with prescribed sea surface temperatures and sea ice concentrations.",
6+
"drs_name": "amip",
7+
"start_timestamp": null,
8+
"end_timestamp": null,
9+
"activity": "cmip",
910
"additional_allowed_model_components": [
1011
"aer",
1112
"chem",
1213
"bgc"
1314
],
14-
"description": "DECK: AMIP",
15-
"end_year": 2022,
16-
"experiment": "AMIP",
17-
"min_number_yrs_per_sim": 43,
18-
"parent_activity_id": [
19-
"no parent"
20-
],
21-
"parent_experiment_id": [
22-
"no parent"
23-
],
15+
"branch_information": null,
16+
"min_ensemble_size": 1,
17+
"parent_activity": null,
18+
"parent_experiment": null,
19+
"parent_mip_era": null,
2420
"required_model_components": [
2521
"agcm"
2622
],
27-
"start_year": 1979,
28-
"sub_experiment_id": [
29-
"none"
30-
],
31-
"tier": 1,
32-
"drs_name": "amip"
33-
}
23+
"tier": 1
24+
}

scripts/generate-experiments.py

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,79 @@ def add_abruptco2_entries(self) -> "Holder":
326326

327327
return self
328328

329+
def add_amip_entries(self) -> "Holder":
330+
for (
331+
drs_name,
332+
description,
333+
activity,
334+
start_timestamp,
335+
end_timestamp,
336+
min_number_yrs_per_sim,
337+
) in (
338+
(
339+
"amip",
340+
"Simulation of the climate of the recent past with prescribed sea surface temperatures and sea ice concentrations.",
341+
"cmip",
342+
"1979-01-01",
343+
"2021-12-31",
344+
43,
345+
),
346+
(
347+
"amip-p4k",
348+
"Same as `amip` simulation, except sea surface temperatures are increased by 4K in ice-free regions.",
349+
"cfmip",
350+
"1979-01-01",
351+
"2021-12-31",
352+
43,
353+
),
354+
(
355+
"amip-piForcing",
356+
(
357+
"Same as `amip` simulation, except it starts in 1870 "
358+
"and all forcings are set to pre-industrial levels "
359+
"rather than time-varying forcings."
360+
),
361+
"cfmip",
362+
"1870-01-01",
363+
"2021-12-31",
364+
152,
365+
),
366+
):
367+
univ = ExperimentUniverse(
368+
drs_name=drs_name,
369+
description=description,
370+
activity=activity,
371+
additional_allowed_model_components=["aer", "chem", "bgc"],
372+
branch_information=None,
373+
end_timestamp=None,
374+
min_ensemble_size=1,
375+
# Defined in project
376+
min_number_yrs_per_sim="dont_write",
377+
parent_activity=None,
378+
parent_experiment=None,
379+
parent_mip_era=None,
380+
required_model_components=["agcm"],
381+
start_timestamp=None,
382+
tier=1,
383+
)
384+
385+
self.experiments_universe.append(univ)
386+
387+
proj = ExperimentProject(
388+
id=univ.drs_name.lower(),
389+
activity=univ.activity,
390+
start_timestamp=start_timestamp,
391+
end_timestamp=end_timestamp,
392+
min_number_yrs_per_sim=min_number_yrs_per_sim,
393+
parent_mip_era="cmip7",
394+
tier=1,
395+
)
396+
self.experiments_project.append(proj)
397+
398+
self.add_experiment_to_activity(proj)
399+
400+
return self
401+
329402
def write_files(self, project_root: Path, universe_root: Path) -> None:
330403
for experiment_project in self.experiments_project:
331404
experiment_project.write_file(project_root)
@@ -384,6 +457,7 @@ def main():
384457

385458
holder.add_1pctco2_entries()
386459
holder.add_abruptco2_entries()
460+
holder.add_amip_entries()
387461

388462
holder.write_files(project_root=project_root, universe_root=universe_root)
389463

0 commit comments

Comments
 (0)