Commit c2c7fa1
committed
Hotfix: Get Met_AREAM2 from GCHP StateMet for mass tables
gcpy/benchmark/run_benchmark.py
- For GCHP vs GCC mass tables:
- Define a new variable "area_m2_file", which contains the path
to the StateMet collection for GCHP (Dev)
- Pass "area_m2_file" to make_benchmark_mass_tables via the
"dev_met_extra" keyword
- For GCHP vs. GCHP mass tables
- Define a new variable "area_m2_file", which contains the path
to the StateMet collection for the GCHP Dev output
- Pass "area_m2_file" to make_benchmark_mass_tables via the
"ref_met_extra" and "dev_met_extra" keywords
gcpy/units.py
- In convert_units.py
- If the area variable is on the GCHP diagnostic grid, but the
input data is on the GCHP checkpoint grid, call reshape_MAPL_CS
to reshape the area to the GCHP checkpoint grid. This will
prevent a broadcast error caused by differently shaped arrays.
Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>1 parent b29dbc3 commit c2c7fa1
3 files changed
+35
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1222 | 1222 | | |
1223 | 1223 | | |
1224 | 1224 | | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
1225 | 1234 | | |
1226 | 1235 | | |
1227 | 1236 | | |
| |||
1257 | 1266 | | |
1258 | 1267 | | |
1259 | 1268 | | |
| 1269 | + | |
1260 | 1270 | | |
1261 | 1271 | | |
1262 | 1272 | | |
| |||
1294 | 1304 | | |
1295 | 1305 | | |
1296 | 1306 | | |
| 1307 | + | |
1297 | 1308 | | |
1298 | 1309 | | |
1299 | 1310 | | |
| |||
1849 | 1860 | | |
1850 | 1861 | | |
1851 | 1862 | | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
1852 | 1872 | | |
1853 | 1873 | | |
1854 | 1874 | | |
| |||
1887 | 1907 | | |
1888 | 1908 | | |
1889 | 1909 | | |
| 1910 | + | |
| 1911 | + | |
1890 | 1912 | | |
1891 | 1913 | | |
1892 | 1914 | | |
| |||
1927 | 1949 | | |
1928 | 1950 | | |
1929 | 1951 | | |
| 1952 | + | |
| 1953 | + | |
1930 | 1954 | | |
1931 | 1955 | | |
1932 | 1956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
200 | 208 | | |
201 | 209 | | |
202 | 210 | | |
| |||
0 commit comments