Skip to content

Commit 1289086

Browse files
committed
embedding cloud_and_rain_partitioning.json in the notebook
1 parent df77130 commit 1289086

File tree

2 files changed

+42
-266
lines changed

2 files changed

+42
-266
lines changed

examples/monarch_mod37/cloud_and_rain_partitioning.json

-258
This file was deleted.

examples/particle_simulation_with_camp.ipynb

+42-8
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
{
2929
"cell_type": "code",
30-
"execution_count": 2,
30+
"execution_count": 3,
3131
"id": "4f8359c2",
3232
"metadata": {},
3333
"outputs": [],
@@ -46,7 +46,7 @@
4646
},
4747
{
4848
"cell_type": "code",
49-
"execution_count": 3,
49+
"execution_count": 4,
5050
"id": "b494ea6e",
5151
"metadata": {},
5252
"outputs": [],
@@ -61,7 +61,7 @@
6161
},
6262
{
6363
"cell_type": "code",
64-
"execution_count": 4,
64+
"execution_count": 5,
6565
"id": "b480e7ad",
6666
"metadata": {},
6767
"outputs": [],
@@ -71,7 +71,7 @@
7171
},
7272
{
7373
"cell_type": "code",
74-
"execution_count": 5,
74+
"execution_count": 6,
7575
"id": "a2d7bad8",
7676
"metadata": {},
7777
"outputs": [],
@@ -88,6 +88,42 @@
8888
")"
8989
]
9090
},
91+
{
92+
"cell_type": "code",
93+
"execution_count": 7,
94+
"id": "2e492520-ba61-45bb-b9b3-5a04fb6f21df",
95+
"metadata": {},
96+
"outputs": [],
97+
"source": [
98+
"cloud_and_rain_partitioning = {\n",
99+
" \"description\" : [\n",
100+
" \"Partitioning of species to aqueous. Parameters are from existing wet-deposition module.\"\n",
101+
" ],\n",
102+
" \"pmc-data\" : [\n",
103+
" {\n",
104+
" \"name\" : \"MONARCH mod37\",\n",
105+
" \"type\" : \"MECHANISM\",\n",
106+
" \"reactions\" : [\n",
107+
" {\n",
108+
" \"type\" : \"HL_PHASE_TRANSFER\",\n",
109+
" \"gas-phase species\" : \"PNA\" if item == \"HNO4\" else \"SULF\" if item == \"H2SO4\" else item,\n",
110+
" \"aerosol phase\" : \"aqueous\",\n",
111+
" \"aerosol-phase species\" : item + (\"_aero\" if item.startswith(\"ISOP\") or item.startswith(\"TERP\") else \"_aq\"),\n",
112+
" \"aerosol-phase water\" : \"H2O_aq\"\n",
113+
" } for item in (\n",
114+
" \"NO2\", \"NO\", \"O3\", \"NO3\", \"N2O5\", \"HNO3\", \"HONO\", \"H2O2\", \"NTR\", \"ROOH\", \"FORM\", \"ALD2\",\n",
115+
" \"ALDX\", \"CO\", \"MEPX\", \"MEOH\", \"FACD\", \"PAN\", \"PACD\", \"AACD\", \"PANX\", \"SO2\", \"CL2\", \"HOCL\",\n",
116+
" \"FMCL\", \"HCL\", \"NH3\", \"ETOH\", \"DMS\", \"ISOP-P1\", \"ISOP-P2\", \"TERP-P1\", \"TERP-P2\", \"HNO4\", \"H2SO4\",\n",
117+
" )\n",
118+
" ]\n",
119+
" }\n",
120+
" ]\n",
121+
"}\n",
122+
"\n",
123+
"with open('cloud_and_rain_partitioning.json', 'w', encoding='utf-8') as f:\n",
124+
" json.dump(cloud_and_rain_partitioning, f, indent=4)"
125+
]
126+
},
91127
{
92128
"cell_type": "code",
93129
"execution_count": 6,
@@ -568,9 +604,7 @@
568604
"cell_type": "code",
569605
"execution_count": 20,
570606
"id": "47474cd3",
571-
"metadata": {
572-
"scrolled": false
573-
},
607+
"metadata": {},
574608
"outputs": [
575609
{
576610
"data": {
@@ -5764,7 +5798,7 @@
57645798
"name": "python",
57655799
"nbconvert_exporter": "python",
57665800
"pygments_lexer": "ipython3",
5767-
"version": "3.11.3"
5801+
"version": "3.9.2"
57685802
}
57695803
},
57705804
"nbformat": 4,

0 commit comments

Comments
 (0)