1- [ ![ DOI] ( https://zenodo.org/badge/310435424.svg )] ( https://zenodo.org/doi/10.5281/zenodo.10003561 )
1+ ![ [ DOI] [ doi-link ]] [ doi-badge ]
2+
3+
4+ [ barrier3d-github ] :https://github.com/UNC-CECL/Barrier3D
5+ [ brie-github ] : https://github.com/UNC-CECL/brie
6+ [ cascade-figure ] : https://user-images.githubusercontent.com/57640439/226623608-d0c58437-d44f-4dca-8f43-0b92623fcda6.png
7+ [ chom-github ] : https://github.com/UNC-CECL/CHOM
8+ [ doi-badge ] : https://zenodo.org/badge/310435424.svg
9+ [ doi-link ] : https://zenodo.org/doi/10.5281/zenodo.10003561
10+ [ nox-docs ] : https://nox.thea.codes/
11+ [ preprint-doi ] : https://doi.org/10.31223/X5P947
12+ [ zip-download ] : https://github.com/UNC-CECL/CASCADE/archive/refs/heads/main.zip
13+
214
315🌀 🌊 🏄♀️ 🏚️ 🌀 🌊 🏄♀️ 🏚️ 🌀 🌊 🏄♀️ 🏚️ 🌀 🌊 🏄♀️ 🏚️
416# cascade
@@ -15,10 +27,10 @@ are incorporated in *cascade* in two separate modules. The first module simulate
1527pavement damage during overwashing events, including rebuilding roadways at sufficiently low elevations to allow for
1628burial by overwash, constructing large dunes, and relocating the road into the barrier interior. The second module
1729incorporates management strategies for maintaining a coastal community, including beach nourishment, dune construction,
18- and overwash removal. For a full description of model dynamics, please see "The Future of Developed
19- Barrier Systems - Part I: Pathways Toward Uninhabitability, Drowning, and Rebound" by Anarde et al., (2024, [ Earth ArXiv preprint] ( https:// doi.org/10.31223/X5P947 ) ) .
30+ and overwash removal. For a full description of model dynamics, please see * "The Future of Developed
31+ Barrier Systems - Part I: Pathways Toward Uninhabitability, Drowning, and Rebound" by Anarde et al., (2024, [ Earth ArXiv preprint] [ preprint- doi] ) * .
2032
21- ![ ModelTimeLoop-01] ( https://user-images.githubusercontent.com/57640439/226623608-d0c58437-d44f-4dca-8f43-0b92623fcda6.png )
33+ ![ ModelTimeLoop-01] [ cascade-figure ]
2234
2335In development: * cascade* represents decisions about coastal land-use (e.g., housing markets) and community-level
2436mitigation measures using an empirically-grounded agent-based real estate model – the Coastal Home Ownership Model (* chom* ).
@@ -42,19 +54,23 @@ on local wave and sediment characteristics as well as the offshore wave climate
4254Lorenzo-Trueba & Ashton, 2014; Ortiz & Ashton, 2016). For ease of model coupling, * brie* and * chom* were rewritten in Python
4355and all models (* barrier3d* , * brie* , * chom* ) were appended with a basic-model interface with the help of the
4456Community Surface Dynamics Modeling System. The repositories for the models coupled within * cascade* are noted here:
45- - * barrier3d* : [ GitHub Python Repository - Version 2.0 (BMI)] ( https://github.com/UNC-CECL/Barrier3D )
46- - * brie* : [ GitHub Python Repository - Version 1.0 (BMI)] ( https://github.com/UNC-CECL/ brie)
47- - * chom* : [ GitHub Python Repository - Version 0.0.1.dev0 (BMI)] ( https://github.com/UNC-CECL/CHOM )
57+ - * barrier3d* : [ GitHub Python Repository - Version 2.0 (BMI)] [ barrier3d-github ]
58+ - * brie* : [ GitHub Python Repository - Version 1.0 (BMI)] [ brie-github ]
59+ - * chom* : [ GitHub Python Repository - Version 0.0.1.dev0 (BMI)] [ chom-github ]
4860
4961## Installation
5062
5163To install the latest release of * cascade* using * pip* , simply run the following in your terminal of choice:
5264
53- pip install coastal-cascade
65+ ``` bash
66+ pip install coastal-cascade
67+ ```
5468
5569You can also use ` conda ` :
5670
57- conda install coastal-cascade
71+ ``` bash
72+ conda install coastal-cascade
73+ ```
5874
5975### From Source
6076
@@ -64,51 +80,61 @@ need to get *cascade*'s source code, and then install *cascade* from that code.
6480
6581To get the source code you can either clone the repository with * git* :
6682
67- git clone git@github.com/UNC-CECL/cascade
83+ ``` bash
84+ git clone git@github.com:UNC-CECL/cascade
85+ ```
6886
69- or download a [ zip file] ( https://github.com/UNC-CECL/CASCADE/archive/refs/heads/main. zip) :
87+ or download a [ zip file] [ zip-download ] :
7088
71- curl -OL https://github.com/UNC-CECL/CASCADE/archive/refs/heads/main.zip
89+ ``` bash
90+ curl -OL https://github.com/UNC-CECL/CASCADE/archive/refs/heads/main.zip
91+ ```
7292
7393Once you have a copy of the source code, you can install it into your current
7494environment,
7595
76- pip install -e .
96+ ``` bash
97+ pip install -e .
98+ ```
7799
78- We use [ nox] to automate routine maintenance tasks like running the tests,
79- removing lint, etc. Install [ nox] with * pip* ::
100+ We use [ nox-docs ] to automate routine maintenance tasks like running the tests,
101+ removing lint, etc. Install [ nox-docs ] with * pip* ::
80102
81- pip install nox
103+ ``` bash
104+ pip install nox
105+ ```
82106
83- When you're done making changes, you can now run [ nox] to check that the tests
107+ When you're done making changes, you can now run [ nox-docs ] to check that the tests
84108pass and that there isn't any lint:
85109
86- nox -s test # run the unit tests
87- nox -s test-notebooks # test that the notebooks run successfully
88- nox -s lint # find and, where possible, remove lint (black, flake8, etc.)
110+ ``` bash
111+ nox -s test # run the unit tests
112+ nox -s test-notebooks # test that the notebooks run successfully
113+ nox -s lint # find and, where possible, remove lint (black, flake8, etc.)
114+ ```
89115
90116To run all of the above in a single command:
91117
92- nox
93-
94- [ nox ] : https://nox.thea.codes/
118+ ``` bash
119+ nox
120+ ```
95121
96122## Example simulations
97- This ReadMe corresponds to the version of * cascade* used for the simulations detailed in
98- * "The Future of Developed Barrier Systems - Part I: Pathways Toward Uninhabitability, Drowning, and Rebound" by
99- Anarde et al., (2024, [ Earth ArXiv preprint] ( https:// doi.org/10.31223/X5P947 ) ) * -- namely, v1.0.0. For a more complete
123+ This ReadMe corresponds to the version of * cascade* used for the simulations detailed in
124+ * "The Future of Developed Barrier Systems - Part I: Pathways Toward Uninhabitability, Drowning, and Rebound" by
125+ Anarde et al., (2024, [ Earth ArXiv preprint] [ preprint- doi] ) * -- namely, v1.0.0. For a more complete
100126set of example model runs and description of module functionality, we direct the use to the examples
101127provided in ` notebooks ` .
102128
103129Example (default) data inputs for cascade are provided in the ` data ` directory:
104- ```
130+ ``` python
105131from cascade.cascade import Cascade
106132
107133datadir = " data/"
108134```
109135To initialize an instance of * cascade* with no human dynamics, 3 barrier segments (each 500-m long), and
110136default * barrier3d* and * brie* parameters:
111- ```
137+ ``` python
112138cascade = Cascade(
113139 datadir,
114140 name = " no_human_dynamics_3_barrier_segments" ,
@@ -120,7 +146,7 @@ cascade = Cascade(
120146)
121147```
122148To initialize an instance of * cascade* with roadway barrier management on 1 barrier segment:
123- ```
149+ ``` python
124150cascade = Cascade(
125151 datadir,
126152 name = " roadway_mgmt_1_barrier_segments" ,
@@ -132,7 +158,7 @@ cascade = Cascade(
132158)
133159```
134160To initialize * cascade* with community barrier management on 1 barrier segment:
135- ```
161+ ``` python
136162cascade = Cascade(
137163 datadir,
138164 name = " community_mgmt_1_barrier_segments" ,
@@ -144,7 +170,7 @@ cascade = Cascade(
144170)
145171```
146172Once initialized, a * cascade* time loop can be completed as follows:
147- ```
173+ ``` python
148174for time_step in range (cascade.time_step_count - 1 ):
149175 cascade.update()
150176 if cascade.b3d_break:
0 commit comments