-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
43 lines (36 loc) · 1.05 KB
/
Copy pathapp.py
File metadata and controls
43 lines (36 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import streamlit as st
# Set page config
st.set_page_config(
page_title="Delta Shoreline Model",
page_icon="🏔️",
layout="wide",
initial_sidebar_state="expanded"
)
# Sidebar navigation
st.sidebar.title("🏔️ Delta Shoreline Model")
st.sidebar.markdown("Choose a model to explore:")
model_choice = st.sidebar.radio(
"Select Model:",
["Simple Box Model", "Advanced Model with Slopes"],
index=0
)
if model_choice == "Simple Box Model":
# Import and run simple model
exec(open('simplebox.py').read())
else:
# Import and run advanced model
exec(open('advancedbox.py').read())
# Footer
st.sidebar.markdown("---")
st.sidebar.markdown("""
### About
Delta shoreline evolution models for analyzing coastal dynamics under varying sea-level scenarios.
**Models:**
- **Simple**: Basic box model with fundamental parameters
- **Advanced**: Complex model with topset, foreset, and basement slopes
**Features:**
- Interactive parameter adjustment
- Scenario comparison
- Real-time visualization
- Multiple analysis perspectives
""")