Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Here is code for rain shadow #1

Open
SophieRothman opened this issue May 15, 2023 · 0 comments
Open

Here is code for rain shadow #1

SophieRothman opened this issue May 15, 2023 · 0 comments

Comments

@SophieRothman
Copy link
Contributor

for i in range(10):
D = (P0 + aP0z) 0.0005
fr3.run_one_step() # Flow Accumulator
sp3.run_one_step(dt) # StreamPower FastScape Eroder
ld.run_one_step(dt) # Linear Diffuser
z[mg3.core_nodes] += U * dt
mg3.at_node["water__unit_flux_in"][mg3.y_of_node>=2+mg3.y_of_node[z==max(z)]]=P0/2
D[mg3.y_of_node>=2+mg3.y_of_node[z==max(z)]] = (P0/2) 0.001np.ones(len( D[mg3.y_of_node>=10+mg3.y_of_node[z==max(z)]]))
mg3.at_node["water__unit_flux_in"][mg3.y_of_node<10+mg3.y_of_node[z==max(z)]]=P0 + a
P0*z[mg3.y_of_node<10+mg3.y_of_node[z==max(z)]]

imshow_grid(mg3,"topographic__elevation")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant