Spaces:
Sleeping
Sleeping
layout
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
# See the License for the specific language governing permissions and
|
12 |
# limitations under the License.
|
13 |
|
14 |
-
"""An example of showing
|
15 |
|
16 |
import os
|
17 |
|
@@ -102,9 +102,6 @@ def mpoint(lat, lon):
|
|
102 |
return (np.average(lat), np.average(lon))
|
103 |
|
104 |
|
105 |
-
# STREAMLIT APP LAYOUT
|
106 |
-
data = load_data()
|
107 |
-
|
108 |
# LAYING OUT THE TOP SECTION OF THE APP
|
109 |
row1_1, row1_2 = st.columns((2, 3))
|
110 |
|
@@ -135,25 +132,22 @@ with row1_1:
|
|
135 |
|
136 |
with row1_2:
|
137 |
st.write(
|
138 |
-
|
139 |
##
|
140 |
By sliding the slider on the left you can view different slices of time and explore different trends.
|
141 |
"""
|
142 |
)
|
143 |
|
144 |
-
# LAYING OUT THE MIDDLE SECTION OF THE APP WITH THE MAPS
|
145 |
-
row2_1 = st.columns((2))
|
146 |
-
|
147 |
# +
|
148 |
-
#
|
149 |
-
|
150 |
-
midpoint = (52.0, -1.0) #mpoint(data["lat"], data["lon"])
|
151 |
# -
|
152 |
|
|
|
|
|
|
|
|
|
153 |
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
)
|
159 |
-
map(filterdata(data, year_selected), midpoint[0], midpoint[1], 4)
|
|
|
11 |
# See the License for the specific language governing permissions and
|
12 |
# limitations under the License.
|
13 |
|
14 |
+
"""An example of showing species richness from GBIF data."""
|
15 |
|
16 |
import os
|
17 |
|
|
|
102 |
return (np.average(lat), np.average(lon))
|
103 |
|
104 |
|
|
|
|
|
|
|
105 |
# LAYING OUT THE TOP SECTION OF THE APP
|
106 |
row1_1, row1_2 = st.columns((2, 3))
|
107 |
|
|
|
132 |
|
133 |
with row1_2:
|
134 |
st.write(
|
135 |
+
"""
|
136 |
##
|
137 |
By sliding the slider on the left you can view different slices of time and explore different trends.
|
138 |
"""
|
139 |
)
|
140 |
|
|
|
|
|
|
|
141 |
# +
|
142 |
+
# LAYING OUT THE MIDDLE SECTION OF THE APP WITH THE MAPS
|
|
|
|
|
143 |
# -
|
144 |
|
145 |
+
# SETTING THE ZOOM LOCATIONS
|
146 |
+
midpoint = (52.0, -1.0) #mpoint(data["lat"], data["lon"])
|
147 |
+
# STREAMLIT APP LAYOUT
|
148 |
+
data = load_data()
|
149 |
|
150 |
+
st.write(
|
151 |
+
f"""**Large Map**"""
|
152 |
+
)
|
153 |
+
map(filterdata(data, year_selected), midpoint[0], midpoint[1], 4)
|
|
|
|