Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to the land ice challenge exercise #248

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 38 additions & 23 deletions notebooks/challenge/cism/cism_exercise_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
" \n",
"Create a case called **T_GrIS_SSP585_2015_2100** using the compset ``T1850G`` at ``f19_g17_gl4`` resolution. \n",
"\n",
"**Note1:** The 2 deg grid we are using in this exercise is not scientifically validated. \n",
"**Note2:** In the new version of CESM, the compset names will be different and T1850G is replaced by T1850Gg (evolving GrIS) and the grid resolution f19_g17_gl4 will be replaced by f19_g17_gris4. \n",
"**Note3:** The grid resolution for this case and the forcing data are both f19_g17_gl4. For a T compset, the forcing data and experiment must be at the same grid resolution.\n",
"**Note 1:** The 2 deg grid we are using in this exercise is not scientifically validated. \n",
"**Note 2:** In the new version of CESM, the compset names will be different and T1850G is replaced by T1850Gg (evolving GrIS) and the grid resolution f19_g17_gl4 will be replaced by f19_g17_gris4. \n",
"**Note 3:** The grid resolution for this case and the forcing data are both f19_g17_gl4. For a T compset, the forcing data and experiment must be at the same grid resolution.\n",
"\n",
"<strong>Step 2: Make the changes to the case XML variables</strong><br><br>\n",
"\n",
"**Note1:** The run length is **86 years**. \\\n",
"**Note2:** The forcing data for this case can be found here: **/glade/u/home/gunterl/workshops/CESM-Tutorial/data/cpl_SSP585**\n",
"**Note 1:** The run length is **86 years**. \\\n",
"**Note 2:** The forcing data for this case can be found here: **/glade/u/home/gunterl/workshops/CESM-Tutorial/data/cpl_SSP585**\n",
"\n",
"<strong>Step 3: Build and run the model</strong><br><br>\n",
" \n",
Expand Down Expand Up @@ -93,20 +93,10 @@
"<div class=\"alert alert-success\"> \n",
"<details>\n",
"<summary><font face=\"Times New Roman\" color='blue'>Click here for the solution</font></summary><br>\n",
" \n",
"Set up your tutorial run queue if you have not done this yet. For csh:\n",
"```\n",
"setenv TUTORIAL_QUEUE regular\n",
"```\n",
"And for bash:\n",
"```\n",
"export TUTORIAL_QUEUE=\"regular\"\n",
"```\n",
" \n",
" \n",
"\n",
"Create a new case <font face=\"Courier\" color='purple'><strong>T_GrIS_SSP585_2015_2100 </strong></font> with the command:\n",
"```\n",
"cd /glade/u/home/$USER/code/my_cesm_code/cime/scripts\n",
"cd /glade/campaign/cesm/development/cross-wg/tutorial/release-cesm2.1.5/cime/scripts\n",
"./create_newcase --case ~/cases/T_GrIS_SSP585_2015_2100 --compset T1850G --res f19_g17_gl4 --run-unsupported\n",
"```\n",
"\n",
Expand All @@ -125,10 +115,10 @@
"and <font face=\"Courier\" color='purple'><strong>account number</strong></font>. \n",
"For instance:\n",
"``` \n",
"./xmlchange JOB_QUEUE=tutorial,PROJECT=UESM0013\n",
"./xmlchange JOB_QUEUE=main,PROJECT=UESM0013\n",
"```\n",
"\n",
"Modify the environment variables:\n",
"Modify the case XML variables:\n",
"```\n",
"./xmlchange DLND_CPLHIST_DIR=/glade/u/home/gunterl/workshops/CESM-Tutorial/data/cpl_SSP585\n",
"./xmlchange DLND_CPLHIST_CASE=b.e21.BSSP585cmip6.f19_g17.CMIP6-SSP5-8.5.001\n",
Expand All @@ -141,16 +131,32 @@
"Confirm that you have set up the paths and file names correctly by running:\n",
"```\n",
"./preview_namelists\n",
"and examine the generated file, CaseDocs/dlnd.streams.txt.sno.cplhist.\n",
"```\n",
"and examine the generated file,\n",
"```\n",
"CaseDocs/dlnd.streams.txt.sno.cplhist\n",
"```\n",
"\n",
"Set up the environment variable for qcmd. If using tcsh or csh:\n",
"```\n",
"setenv PBS_ACCOUNT UESM0013\n",
"```\n",
"and for bash:\n",
"```\n",
"export PBS_ACCOUNT=UESM0013\n",
"```\n",
"\n",
"Build and submit:\n",
"```\n",
"qcmd -- ./case.build\n",
"./case.submit\n",
"```\n",
"\n",
"If you see errors saying the dlnd forcing files are missing or unable to be downloaded since they lives outside of the input_data_root, then you may need to copy all of the forcing files into your case run directory.\n",
"```\n",
"cp /glade/u/home/gunterl/workshops/CESM-Tutorial/data/cpl_SSP5/* /glade/scratch/derecho/[username]/T_GrIS_SSP585_2015_2100/run/\n",
"```\n",
"And then submit the run again.\n",
"When the run is completed, look into the archive directory for: \n",
"<font face=\"Courier\" color='purple'><strong>T_GrIS_SSP585_2015_2100</strong></font>. \n",
" \n",
Expand All @@ -171,13 +177,21 @@
"</details>\n",
"</div>"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3d6654a2-778c-4de9-909e-eb1fb2e10a42",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "NPL 2024b",
"language": "python",
"name": "python3"
"name": "npl-2024b"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -189,7 +203,8 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
"version": "3.11.9"

}
},
"nbformat": 4,
Expand Down