Skip to content
Merged
Binary file removed images/challenge/i2000.png
Binary file not shown.
Binary file removed images/challenge/ihist.png
Binary file not shown.
40 changes: 32 additions & 8 deletions notebooks/challenge/clm_ctsm/clm_ctsm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"- This exercise uses the same code base as the rest of the tutorial. \n",
"- You will be using the I2000Clm60Sp, IHistClm60BgcCrop, and I2000Clm60FatesSpCrujraRsGs compsets at the f19_f19_mt233 resolution.\n",
"- You will run a CLM SP simulation, a CLM BGC simulation, and two FATES SP simulations.\n",
"- The first two use the GSWP3 atmospheric forcing and the last two use CRUJRA-2024 forcing.\n",
"- You will modify a json input file.\n",
"- You will use the `xarray` and `matplotlib` libraries to evaluate how the simulations differ."
]
Expand Down Expand Up @@ -122,24 +123,47 @@
},
{
"cell_type": "markdown",
"id": "68ca54e2-d8ad-41bc-be8f-31a85eec6e65",
"id": "aedfeed6",
"metadata": {},
"source": [
"![icase](../../../images/challenge/i2000.png)\n",
"\n",
"*<p style=\"text-align: left;\"> Figure: I2000 compset definition. </p>*"
"As explained earlier, you can get information on compsets by using \"query_config in the cime/scripts directory under your CESM checkout.\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "06a6c211",
"metadata": {
"vscode": {
"languageId": "shellscript"
}
},
"outputs": [],
"source": [
"cime/scripts/query_config --compsets clm | grep \"I2000Clm60Sp \"\n",
"\n"
]
},
{
"cell_type": "markdown",
"id": "c93817fd-8031-4917-bf45-eb0f442578f9",
"id": "96029216",
"metadata": {},
"source": [
"<div class=\"alert alert-info\" style=\"text-align: center;\">\n",
"Which will return the following:\n",
"\n",
"[I Compset definition](https://www2.cesm.ucar.edu/models/cesm2/config/compsets.html)\n",
" I2000Clm60Sp : 2000_DATM%GSWP3v1_CLM60%SP_SICE_SOCN_MOSART_SGLC_SWAV\n",
"\n",
"</div>"
"Which breaks down into:\n",
"\n",
Comment thread
ekluzek marked this conversation as resolved.
"- 2000 -- year 2000 conditions\n",
"- DATM%GSWP3v1 -- Data Atmosphere Model using GSWP3v1 forcing\n",
"- CLM60%SP -- CTSM with clm6_0 physics defaults for big-leaf model with Satellite Phenology\n",
"- SICE -- Stub Sea-ice\n",
"- SOCN -- Stub Ocean\n",
"- MOSART -- MOSART River model\n",
"- SGLC -- Stub Glacier model\n",
"- SWAV -- Stub Ocean Wave model"
]
},
{
Expand Down
52 changes: 43 additions & 9 deletions notebooks/challenge/clm_ctsm/clm_exercise_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,58 @@
},
{
"cell_type": "markdown",
"id": "0037b73f-f174-48e7-8e4f-0744d7d23fe0",
"id": "9fb850dd",
"metadata": {},
"source": [
"We can use a different I compset: IHistClm60BgcCrop. This experiment is a 20th century transient run using CRUJRA and the biogeochemistry model including crops.\n",
"\n",
"In biogeochemistry (BGC) mode, CLM grows vegetation rather than prescribing it, computing photosynthesis, allocating carbon to leaves, stems, and roots, and cycling carbon and nitrogen through vegetation, litter, and soil. Leaf area becomes a prognostic result of that carbon balance rather than a satellite input, which makes BGC far better for studying how vegetation responds to change, but costlier, since the carbon pools must be spun up to equilibrium first.\n",
"\n",
"By default, IHIST compsets have a default `finidat` (initialization file) that they use to initialize the model. We will leave this at default."
"We can use a different I compset: IHistClm60BgcCrop. This experiment is a 20th century transient run using GSWP3 forcing and the biogeochemistry model including crops.\n"
]
},
{
"cell_type": "markdown",
"id": "bdd131c8-d1ec-4568-81dd-701f8bdbe6cb",
"id": "7bea699c",
"metadata": {},
"source": [
"![icase](../../../images/challenge/ihist.png)\n",
"Using query_config again we learn more about this compset:\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b4513705",
"metadata": {
"vscode": {
"languageId": "shellscript"
}
},
"outputs": [],
"source": [
"cime/scripts/query_config --compsets clm | grep \"I2000Clm60Sp \"\n",
"\n"
]
},
{
"cell_type": "markdown",
"id": "fdf77396",
"metadata": {},
"source": [
"Which will return the following:\n",
" IHistClm60BgcCrop : HIST_DATM%GSWP3v1_CLM60%BGC-CROP_SICE_SOCN_MOSART_SGLC_SWAV\n",
"\n",
"*<p style=\"text-align: left;\"> Figure: IHIST compset definition. </p>*"
"Which breaks down into:\n",
Comment thread
ekluzek marked this conversation as resolved.
"\n",
"- HIST -- Historical transient starting in 1850\n",
"- DATM%GSWP3v1 -- Data Atmosphere Model using GSWP3v1 forcing\n",
"- CLM60%BGC-CROP -- CTSM with clm6_0 physics defaults for big-leaf model with Biogeochemistry and Prognostic Crops\n",
"- SICE -- Stub Sea-ice\n",
"- SOCN -- Stub Ocean\n",
"- MOSART -- MOSART River model\n",
"- SGLC -- Stub Glacier model\n",
"- SWAV -- Stub Ocean Wave model\n",
"\n",
"In biogeochemistry (BGC) mode, CLM grows vegetation rather than prescribing it, computing photosynthesis, allocating carbon to leaves, stems, and roots, and cycling carbon and nitrogen through vegetation, litter, and soil. Leaf area becomes a prognostic result of that carbon balance rather than a satellite input, which makes BGC far better for studying how vegetation responds to change, but costlier, since the carbon pools must be spun up to equilibrium first.\n",
"\n",
"By default, IHIST compsets have a default `finidat` (initialization file) that they use to initialize the model. We will leave this at default."
]
},
{
Expand Down