cboettig commited on
Commit
fa039be
·
1 Parent(s): 74a077a

:see_no_evil:

Browse files
Files changed (1) hide show
  1. app.py +24 -2
app.py CHANGED
@@ -32,7 +32,7 @@ config = {
32
  "City": {
33
  "names": con.read_parquet("s3://public-gbif/app/city_names.parquet").select("name").execute(),
34
  "index": 183,
35
- "zoom": 11,
36
  "vertical": 0.1,
37
  "rank_index": 2,
38
  "taxa": "Aves",
@@ -164,7 +164,6 @@ if nunique:
164
  count = "unique " + distinct_taxa
165
 
166
 
167
- st.write(distinct_taxa)
168
 
169
  mapcol, chartcol = st.columns([4,1])
170
 
@@ -187,3 +186,26 @@ if submitted:
187
  st.markdown("Mean number of " + count + " by redline grade")
188
  bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = distinct_taxa)
189
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  "City": {
33
  "names": con.read_parquet("s3://public-gbif/app/city_names.parquet").select("name").execute(),
34
  "index": 183,
35
+ "zoom": 10,
36
  "vertical": 0.1,
37
  "rank_index": 2,
38
  "taxa": "Aves",
 
164
  count = "unique " + distinct_taxa
165
 
166
 
 
167
 
168
  mapcol, chartcol = st.columns([4,1])
169
 
 
186
  st.markdown("Mean number of " + count + " by redline grade")
187
  bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = distinct_taxa)
188
 
189
+
190
+ st.divider()
191
+
192
+ '''
193
+
194
+ ## Credits
195
+
196
+ App developed by Carl Boettiger & Diego Soto, UC Berkeley (2024).
197
+
198
+ ### Data Sources
199
+
200
+ - Global Biodiversity Information Facility (GBIF) Species Occurrences snapshot on 2024-10-01. Copyright: Public Domain. Visualization based on pre-computed H3 cell values for all of GBIF, hosted on Source.Coop, <https://source.coop/repositories/cboettig/gbif> as GeoParquet and PMTiles.
201
+
202
+ - Historical Redlining Data from the Mapping Inequality Project, <https://dsl.richmond.edu/panorama/redlining/>.
203
+
204
+ ### Software
205
+
206
+ - All open-source software implementation, hosted on HuggingFace Spaces.
207
+ - Built with `duckdb`, `maplibre`, `leafmap`, and `streamlit`.
208
+ - Source code at <https://github.com/boettiger-lab/redlining-app>
209
+
210
+ '''
211
+