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

Commit

Permalink
A bit more documentation in the Jupyter notebook.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPincus committed Jan 17, 2019
1 parent d111a21 commit e820d34
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions RTE+RRMTGP-Paper-Figures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@
"outputs": [],
"source": [
"# Location of RTE+RRTMGP distribution directory\n",
"# Default is ~/Codes/rte-rrtmgp \n",
"rte_rrtmgp_dir = os.path.join(os.path.expanduser(\"~\"), \"Codes/rte-rrtmgp/\")"
"#\n",
"# Note - this notebook will build the RTE and RRTMGP libraries if they haven't been built before, so will require \n",
"# a Makefile.conf file in the rte_rrtmgp_dir/build that specifes FC and FCFLAGS\n",
"#\n",
"rte_rrtmgp_dir = os.path.join(os.path.expanduser(\"~\"), \"Desktop/sandbox/rte-rrtmgp/\")"
]
},
{
Expand Down Expand Up @@ -575,7 +578,7 @@
{
"data": {
"text/plain": [
"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)"
"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)"
]
},
"execution_count": 13,
Expand All @@ -586,6 +589,7 @@
"source": [
"#\n",
"# Build and run the RFMIP example programs that computes fluxes from netCDF Garand atmosphere files\n",
"# This also requires having a valid Makefile.conf in the rte_rrtmgp_dir/build directory\n",
"# \n",
"subprocess.run([\"export RRTMGP_ROOT=\" + rte_rrtmgp_dir + \"; \" + \\\n",
" \"cd \" + rfmip_dir + \"; make \"], shell=True)\n",
Expand Down

0 comments on commit e820d34

Please sign in to comment.