|
62 | 62 | config = 4 # 1, 2, 3, or 4 |
63 | 63 |
|
64 | 64 | # Display stats on console/show plots |
65 | | - drowning_stats = True |
66 | | - migration_stats = True |
| 65 | + drowning_stats = False |
| 66 | + migration_stats = False |
67 | 67 | plotters = False |
68 | | - geomoetry_stats = True |
| 68 | + geomoetry_stats = False |
69 | 69 | dune_stats = True |
70 | | - flux_stats = True |
| 70 | + flux_stats = False |
71 | 71 |
|
72 | 72 | # location of the npz files |
73 | 73 | datadir_b3d = "C:/Users/Lexi/PycharmProjects/CASCADE/data/outwash_data/storms/slope0pt03/rerun_output/{0}/overwash_only/".format(rname) |
|
177 | 177 | initial_gap_height = np.min(sub_domain[0]) # get the lowest value of the dunes at year 0 without the berm elev |
178 | 178 | berm_el = b3d_obj.barrier3d[0].BermEl |
179 | 179 | dune_crest_elev = dune_crest + berm_el # dam |
| 180 | + # here, a dune gap is defined as any cell less than or equal to the initial gap height + berm elevation |
| 181 | + dune_gap_limit = initial_gap_height+berm_el # the minimum elevation of a dune cell |
180 | 182 | # if a barrier drowns, all dune cells are at the berm elevation, so here, if all the dune crest cells for a |
181 | 183 | # single year are at the berm elevation, we change the elevation to -0.3 (water) for plotting purposes |
182 | 184 | for row in range(np.shape(dune_crest_elev)[0]): |
|
185 | 187 |
|
186 | 188 | n_dune_gap_cells_array = np.zeros([np.shape(dune_crest_elev)[0],1]) |
187 | 189 | # count the number of dune gap cells in each row (each row = a model year) |
188 | | - # here, a dune gap is defined as any cell less than or equal to the initial gap height + berm elevation |
189 | 190 | for year in range(np.shape(dune_crest_elev)[0]): |
190 | 191 | dune_gap_row = dune_crest_elev[year] |
191 | | - n_dune_gap_cells = len(dune_gap_row[dune_gap_row<=initial_gap_height+berm_el]) |
| 192 | + n_dune_gap_cells = len(dune_gap_row[dune_gap_row <= dune_gap_limit]) |
192 | 193 | n_dune_gap_cells_array[year] = n_dune_gap_cells # save the number of dune gap cells per model year |
193 | 194 | avg_dune_cells = np.average(n_dune_gap_cells_array) # average the number dune gaps over all model years (for a single storm series) |
194 | 195 | avg_dune_cells_array_b3d[storm_num-1] = avg_dune_cells * 10 # each cell is 1 dam, so the total number of cells |
|
249 | 250 | initial_gap_height = np.min(sub_domain[0]) # get the lowest value of the dunes at year 0 without the berm elev |
250 | 251 | berm_el = outwash100_obj.barrier3d[0].BermEl |
251 | 252 | dune_crest_elev = dune_crest + berm_el # dam |
| 253 | + # here, a dune gap is defined as any cell less than or equal to the initial gap height + berm elevation |
| 254 | + dune_gap_limit = initial_gap_height+berm_el # the minimum elevation of a dune cell |
252 | 255 | # if a barrier drowns, all dune cells are at the berm elevation, so here, if all the dune crest cells for a |
253 | 256 | # single year are at the berm elevation, we change the elevation to -0.3 (water) for plotting purposes |
254 | 257 | for row in range(np.shape(dune_crest_elev)[0]): |
|
260 | 263 | # here, a dune gap is defined as any cell less than or equal to the initial gap height + berm elevation |
261 | 264 | for year in range(np.shape(dune_crest_elev)[0]): |
262 | 265 | dune_gap_row = dune_crest_elev[year] |
263 | | - n_dune_gap_cells = len(dune_gap_row[dune_gap_row<=initial_gap_height+berm_el]) |
| 266 | + n_dune_gap_cells = len(dune_gap_row[dune_gap_row <= dune_gap_limit]) |
264 | 267 | n_dune_gap_cells_array[year] = n_dune_gap_cells # save the number of dune gap cells per model year |
265 | 268 | avg_dune_cells = np.average(n_dune_gap_cells_array) # average the number dune gaps over all model years (for a single storm series) |
266 | 269 | avg_dune_cells_array_100[storm_num-1] = avg_dune_cells * 10 # each cell is 1 dam, so the total number of cells |
|
323 | 326 | initial_gap_height = np.min(sub_domain[0]) # get the lowest value of the dunes at year 0 without the berm elev |
324 | 327 | berm_el = outwash50_obj.barrier3d[0].BermEl |
325 | 328 | dune_crest_elev = dune_crest + berm_el # dam |
| 329 | + # here, a dune gap is defined as any cell less than or equal to the initial gap height + berm elevation |
| 330 | + dune_gap_limit = initial_gap_height+berm_el # the minimum elevation of a dune cell |
326 | 331 | # if a barrier drowns, all dune cells are at the berm elevation, so here, if all the dune crest cells for a |
327 | 332 | # single year are at the berm elevation, we change the elevation to -0.3 (water) for plotting purposes |
328 | 333 | for row in range(np.shape(dune_crest_elev)[0]): |
|
334 | 339 | # here, a dune gap is defined as any cell less than or equal to the initial gap height + berm elevation |
335 | 340 | for year in range(np.shape(dune_crest_elev)[0]): |
336 | 341 | dune_gap_row = dune_crest_elev[year] |
337 | | - n_dune_gap_cells = len(dune_gap_row[dune_gap_row<=initial_gap_height+berm_el]) |
| 342 | + n_dune_gap_cells = len(dune_gap_row[dune_gap_row <= dune_gap_limit]) |
338 | 343 | n_dune_gap_cells_array[year] = n_dune_gap_cells # save the number of dune gap cells per model year |
339 | 344 | avg_dune_cells = np.average(n_dune_gap_cells_array) # average the number dune gaps over all model years (for a single storm series) |
340 | 345 | avg_dune_cells_array_50[storm_num-1] = avg_dune_cells * 10 # each cell is 1 dam, so the total number of cells |
|
399 | 404 | initial_gap_height = np.min(sub_domain[0]) # get the lowest value of the dunes at year 0 without the berm elev |
400 | 405 | berm_el = outwash0_obj.barrier3d[0].BermEl |
401 | 406 | dune_crest_elev = dune_crest + berm_el # dam |
| 407 | + # here, a dune gap is defined as any cell less than or equal to the initial gap height + berm elevation |
| 408 | + dune_gap_limit = initial_gap_height+berm_el # the minimum elevation of a dune cell |
402 | 409 | # if a barrier drowns, all dune cells are at the berm elevation, so here, if all the dune crest cells for a |
403 | 410 | # single year are at the berm elevation, we change the elevation to -0.3 (water) for plotting purposes |
404 | 411 | for row in range(np.shape(dune_crest_elev)[0]): |
|
410 | 417 | # here, a dune gap is defined as any cell less than or equal to the initial gap height + berm elevation |
411 | 418 | for year in range(np.shape(dune_crest_elev)[0]): |
412 | 419 | dune_gap_row = dune_crest_elev[year] |
413 | | - n_dune_gap_cells = len(dune_gap_row[dune_gap_row<=initial_gap_height+berm_el]) |
| 420 | + n_dune_gap_cells = len(dune_gap_row[dune_gap_row <= dune_gap_limit]) |
414 | 421 | n_dune_gap_cells_array[year] = n_dune_gap_cells # save the number of dune gap cells per model year |
415 | 422 | avg_dune_cells = np.average(n_dune_gap_cells_array) # average the number dune gaps over all model years (for a single storm series) |
416 | 423 | avg_dune_cells_array_0[storm_num-1] = avg_dune_cells * 10 # each cell is 1 dam, so the total number of cells |
|
0 commit comments