|
27 | 27 | }, |
28 | 28 | { |
29 | 29 | "cell_type": "code", |
30 | | - "execution_count": 2, |
| 30 | + "execution_count": 3, |
31 | 31 | "id": "4f8359c2", |
32 | 32 | "metadata": {}, |
33 | 33 | "outputs": [], |
|
46 | 46 | }, |
47 | 47 | { |
48 | 48 | "cell_type": "code", |
49 | | - "execution_count": 3, |
| 49 | + "execution_count": 4, |
50 | 50 | "id": "b494ea6e", |
51 | 51 | "metadata": {}, |
52 | 52 | "outputs": [], |
|
61 | 61 | }, |
62 | 62 | { |
63 | 63 | "cell_type": "code", |
64 | | - "execution_count": 4, |
| 64 | + "execution_count": 5, |
65 | 65 | "id": "b480e7ad", |
66 | 66 | "metadata": {}, |
67 | 67 | "outputs": [], |
|
71 | 71 | }, |
72 | 72 | { |
73 | 73 | "cell_type": "code", |
74 | | - "execution_count": 5, |
| 74 | + "execution_count": 6, |
75 | 75 | "id": "a2d7bad8", |
76 | 76 | "metadata": {}, |
77 | 77 | "outputs": [], |
|
88 | 88 | ")" |
89 | 89 | ] |
90 | 90 | }, |
| 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 | + }, |
91 | 127 | { |
92 | 128 | "cell_type": "code", |
93 | 129 | "execution_count": 6, |
|
568 | 604 | "cell_type": "code", |
569 | 605 | "execution_count": 20, |
570 | 606 | "id": "47474cd3", |
571 | | - "metadata": { |
572 | | - "scrolled": false |
573 | | - }, |
| 607 | + "metadata": {}, |
574 | 608 | "outputs": [ |
575 | 609 | { |
576 | 610 | "data": { |
|
5764 | 5798 | "name": "python", |
5765 | 5799 | "nbconvert_exporter": "python", |
5766 | 5800 | "pygments_lexer": "ipython3", |
5767 | | - "version": "3.11.3" |
| 5801 | + "version": "3.9.2" |
5768 | 5802 | } |
5769 | 5803 | }, |
5770 | 5804 | "nbformat": 4, |
|
0 commit comments