malcolmSQ commited on
Commit ·
aa44d1d
1
Parent(s): 652a455
feat: add Sequestr logo, statement, and LaTeX model equation to dashboard header
Browse files- dashboard/app.py +17 -2
dashboard/app.py
CHANGED
|
@@ -154,10 +154,25 @@ def hex_to_rgba(hex_color, alpha):
|
|
| 154 |
# Gradio UI code starts here
|
| 155 |
with gr.Blocks() as demo:
|
| 156 |
gr.Markdown("""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
# Declining Increment Model
|
| 158 |
|
| 159 |
-
**Growth Model:** Annual increment declines linearly to zero; total size is the sum of non-negative increments. No negative growth: DBH and height never decrease. Mortality is compounded annually according to the schedule in the config.
|
| 160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
This version is smoother and may yield slightly different results than the discrete sum, especially for short time periods or small Tm.
|
| 162 |
|
| 163 |
*Species are displayed as "Rhizophora spp." and "Avicennia germinans" throughout the dashboard for clarity.*
|
|
|
|
| 154 |
# Gradio UI code starts here
|
| 155 |
with gr.Blocks() as demo:
|
| 156 |
gr.Markdown("""
|
| 157 |
+
<div style='display: flex; align-items: center; gap: 16px;'>
|
| 158 |
+
<img src='file/dashboard/sequestr_logo.png' alt='Sequestr Logo' style='height:48px;'>
|
| 159 |
+
<div>
|
| 160 |
+
<b>This tool is provided by <a href='https://www.sequestr.io/' target='_blank'>Sequestr</a>.</b><br>
|
| 161 |
+
<span style='color: #d9534f;'>Please do not share this page.</span>
|
| 162 |
+
</div>
|
| 163 |
+
</div>
|
| 164 |
+
""", elem_id="sequestr-header")
|
| 165 |
+
gr.Markdown("""
|
| 166 |
# Declining Increment Model
|
| 167 |
|
| 168 |
+
**Growth Model:** Annual increment declines linearly to zero; total size is the sum of non-negative increments. No negative growth: DBH and height never decrease. Mortality is compounded annually according to the schedule in the config.
|
| 169 |
+
|
| 170 |
+
**Continuous mode uses the analytical formula:**
|
| 171 |
+
|
| 172 |
+
$$
|
| 173 |
+
\text{size}(t) = \text{initial} + r_0 \cdot \left(t - \frac{t^2}{2T_m}\right)
|
| 174 |
+
$$
|
| 175 |
+
|
| 176 |
This version is smoother and may yield slightly different results than the discrete sum, especially for short time periods or small Tm.
|
| 177 |
|
| 178 |
*Species are displayed as "Rhizophora spp." and "Avicennia germinans" throughout the dashboard for clarity.*
|