Skip to content
This repository was archived by the owner on Jan 15, 2023. It is now read-only.

Commit e820d34

Browse files
committed
A bit more documentation in the Jupyter notebook.
1 parent d111a21 commit e820d34

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

RTE+RRMTGP-Paper-Figures.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@
4242
"outputs": [],
4343
"source": [
4444
"# Location of RTE+RRTMGP distribution directory\n",
45-
"# Default is ~/Codes/rte-rrtmgp \n",
46-
"rte_rrtmgp_dir = os.path.join(os.path.expanduser(\"~\"), \"Codes/rte-rrtmgp/\")"
45+
"#\n",
46+
"# Note - this notebook will build the RTE and RRTMGP libraries if they haven't been built before, so will require \n",
47+
"# a Makefile.conf file in the rte_rrtmgp_dir/build that specifes FC and FCFLAGS\n",
48+
"#\n",
49+
"rte_rrtmgp_dir = os.path.join(os.path.expanduser(\"~\"), \"Desktop/sandbox/rte-rrtmgp/\")"
4750
]
4851
},
4952
{
@@ -575,7 +578,7 @@
575578
{
576579
"data": {
577580
"text/plain": [
578-
"CompletedProcess(args=['/Users/robert/Codes/rte-rrtmgp/examples/rfmip-clear-sky/rrtmgp_rfmip_sw', '8', 'multiple_input4MIPs_radiation_RFMIP_UColorado-RFMIP-0-4_none.nc', 'data/coefficients_sw.nc'], returncode=0)"
581+
"CompletedProcess(args=['/Users/robert/Desktop/sandbox/rte-rrtmgp/examples/rfmip-clear-sky/rrtmgp_rfmip_sw', '8', 'multiple_input4MIPs_radiation_RFMIP_UColorado-RFMIP-0-4_none.nc', 'data/coefficients_sw.nc'], returncode=0)"
579582
]
580583
},
581584
"execution_count": 13,
@@ -586,6 +589,7 @@
586589
"source": [
587590
"#\n",
588591
"# Build and run the RFMIP example programs that computes fluxes from netCDF Garand atmosphere files\n",
592+
"# This also requires having a valid Makefile.conf in the rte_rrtmgp_dir/build directory\n",
589593
"# \n",
590594
"subprocess.run([\"export RRTMGP_ROOT=\" + rte_rrtmgp_dir + \"; \" + \\\n",
591595
" \"cd \" + rfmip_dir + \"; make \"], shell=True)\n",

0 commit comments

Comments
 (0)