Skip to content

Commit 2d94299

Browse files
committed
Updating Hatteras scripts, developed pipelines for road and island offset
1 parent 244b4c3 commit 2d94299

File tree

458 files changed

+8069
-2596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

458 files changed

+8069
-2596
lines changed

cascade/beach_dune_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,11 @@ def filter_overwash(
209209
Percent overwash removed from barrier interior to dunes
210210
[%, overwash_filter+overwash_to_dune <=100]
211211
post_storm_xyz_interior_grid: grid,
212-
Interior barrier island topography [for Barrier3d, decameters MHW]
212+
Interior barrier island topography_dunes [for Barrier3d, decameters MHW]
213213
pre_storm_xyz_interior_grid: grid,
214-
Interior barrier island topography [for Barrier3d, decameters MHW]
214+
Interior barrier island topography_dunes [for Barrier3d, decameters MHW]
215215
post_storm_yxz_dune_grid: grid,
216-
Dune topography [for Barrier3d, decameters above the berm elevation]
216+
Dune topography_dunes [for Barrier3d, decameters above the berm elevation]
217217
artificial_maximum_dune_height: float,
218218
The maximum dune height than can be created by bulldozer after a storm
219219
[for Barrier3d, dam above berm elevation]

cascade/roadway_manager.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ def bulldoze(
6161
time_index: int,
6262
Time index for drowning error message
6363
xyz_interior_grid: array
64-
Interior barrier island topography [z units specified by dz; for Barrier3d,
64+
Interior barrier island topography_dunes [z units specified by dz; for Barrier3d,
6565
dz=10, decameters MHW]
6666
yxz_dune_grid:
67-
Dune topography [z units specified by dz; for Barrier3d, dz=10, decameters
67+
Dune topography_dunes [z units specified by dz; for Barrier3d, dz=10, decameters
6868
above the berm elevation]
6969
road_ele: float
7070
Road elevation [m; needs to be in same reference frame as xyz; for Barrier3d,
@@ -193,7 +193,7 @@ def rebuild_dunes(
193193
Parameters
194194
----------
195195
yxz_dune_grid: ndarray, shape (ny, nx)
196-
Dune topography [z units specified by dz; for Barrier3D, dz=10, decameters
196+
Dune topography_dunes [z units specified by dz; for Barrier3D, dz=10, decameters
197197
above the berm elevation]
198198
max_dune_height: float, optional
199199
Maximum dune height for dune rebuilding [m]
@@ -258,7 +258,7 @@ def set_growth_parameters(
258258
Parameters
259259
----------
260260
yxz_dune_grid:
261-
Dune topography [units must be the same as Dmax]
261+
Dune topography_dunes [units must be the same as Dmax]
262262
Dmax: float
263263
Maximum natural equilibrium dune height [default in Barrier3D is decameters]
264264
growthparam:
@@ -318,7 +318,7 @@ def get_road_relocation_elevation(
318318
time_index: int,
319319
Time index for drowning error message
320320
xyz_interior_grid: array
321-
Interior barrier island topography [z units specified by dz; for Barrier3d,
321+
Interior barrier island topography_dunes [z units specified by dz; for Barrier3d,
322322
dz=10, decameters MHW]
323323
road_width: int
324324
Width of roadway [m]

cascade/tools/plotters.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def plot_XShoreTransects(barrier3d, TMAX):
7878
plt.hlines(barrier3d._SL, -1, len(CrossElev + 1), colors="dodgerblue")
7979
plt.xlabel("Cross-Shore Distance (dam)")
8080
plt.ylabel("Elevation (m)")
81-
plt.title("Cross-shore Topo Transects")
81+
plt.title("Cross-shore PEA_2011 Transects")
8282
plt.show()
8383

8484
return fig
@@ -1177,7 +1177,7 @@ def plot_nonlinear_stats_RoadwayManager(
11771177
plt.subplot(2, 2, 2)
11781178
if dunes_rebuilt is not None:
11791179
plt.plot(dunes_rebuilt[0:tmax_sim], "k")
1180-
plt.ylabel("Dunes Rebuilt")
1180+
plt.ylabel("PEA_2011 Rebuilt")
11811181
plt.xlabel("Time (yr)")
11821182

11831183
# road relocated
@@ -1517,7 +1517,7 @@ def plot_nonlinear_stats_BeachDuneManager(
15171517
plt.subplot(2, 2, 2)
15181518
if dunes_rebuilt is not None:
15191519
plt.plot(dunes_rebuilt, "k")
1520-
plt.ylabel("Dunes Rebuilt")
1520+
plt.ylabel("PEA_2011 Rebuilt")
15211521
plt.xlabel("Time (yr)")
15221522

15231523
# nourishment volumes

data/hatteras_init/dunes/2009/domain_35_resampled_dune_2009.npy renamed to data/hatteras_init/dunes/2009/domain_100_dune_2009.npy

File renamed without changes.

data/hatteras_init/dunes/2009/domain_34_resampled_dune_2009.npy renamed to data/hatteras_init/dunes/2009/domain_101_dune_2009.npy

File renamed without changes.

data/hatteras_init/dunes/2009/domain_33_resampled_dune_2009.npy renamed to data/hatteras_init/dunes/2009/domain_102_dune_2009.npy

File renamed without changes.

data/hatteras_init/dunes/2009/domain_32_resampled_dune_2009.npy renamed to data/hatteras_init/dunes/2009/domain_103_dune_2009.npy

File renamed without changes.

data/hatteras_init/dunes/2009/domain_31_resampled_dune_2009.npy renamed to data/hatteras_init/dunes/2009/domain_104_dune_2009.npy

File renamed without changes.

data/hatteras_init/dunes/2009/domain_30_resampled_dune_2009.npy renamed to data/hatteras_init/dunes/2009/domain_105_dune_2009.npy

File renamed without changes.

data/hatteras_init/dunes/2009/domain_29_resampled_dune_2009.npy renamed to data/hatteras_init/dunes/2009/domain_106_dune_2009.npy

File renamed without changes.

0 commit comments

Comments
 (0)