Spaces:
Sleeping
Sleeping
Delete pages/takijaki.py
Browse files- pages/takijaki.py +0 -61
pages/takijaki.py
DELETED
|
@@ -1,61 +0,0 @@
|
|
| 1 |
-
import datetime
|
| 2 |
-
import streamlit as st
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
st.set_page_config(layout="wide")
|
| 6 |
-
|
| 7 |
-
st.sidebar.info(
|
| 8 |
-
"""
|
| 9 |
-
- Web App URL: <https://streamlit.gishub.org>
|
| 10 |
-
- GitHub repository: <https://github.com/CognitiveCodes/NeuralGPT/tree/main>
|
| 11 |
-
"""
|
| 12 |
-
)
|
| 13 |
-
|
| 14 |
-
st.sidebar.title("Contact")
|
| 15 |
-
st.sidebar.info(
|
| 16 |
-
"""
|
| 17 |
-
Qiusheng Wu at [wetlands.io](https://wetlands.io) | [GitHub](https://github.com/giswqs) | [Twitter](https://twitter.com/giswqs) | [YouTube](https://www.youtube.com/c/QiushengWu) | [LinkedIn](https://www.linkedin.com/in/qiushengwu)
|
| 18 |
-
"""
|
| 19 |
-
)
|
| 20 |
-
|
| 21 |
-
st.title("Comparing Global Land Cover Maps")
|
| 22 |
-
|
| 23 |
-
col1, col2 = st.columns([4, 1])
|
| 24 |
-
|
| 25 |
-
esa = st.text_area()
|
| 26 |
-
esa_vis = {"bands": ["Map"]}
|
| 27 |
-
|
| 28 |
-
markdown = """
|
| 29 |
-
- [Dynamic World Land Cover](https://developers.google.com/earth-engine/datasets/catalog/GOOGLE_DYNAMICWORLD_V1?hl=en)
|
| 30 |
-
- [ESA Global Land Cover](https://developers.google.com/earth-engine/datasets/catalog/ESA_WorldCover_v100)
|
| 31 |
-
- [ESRI Global Land Cover](https://samapriya.github.io/awesome-gee-community-datasets/projects/esrilc2020)
|
| 32 |
-
"""
|
| 33 |
-
|
| 34 |
-
with col2:
|
| 35 |
-
|
| 36 |
-
server_Port = st.number_input("Port", 1000)
|
| 37 |
-
clientP_ort = st.number_input("Port",1000)
|
| 38 |
-
zoom = st.number_input("Zoom", 0, 20, 11)
|
| 39 |
-
|
| 40 |
-
start = st.date_input("Start Date for Dynamic World", datetime.date(2020, 1, 1))
|
| 41 |
-
end = st.date_input("End Date for Dynamic World", datetime.date(2021, 1, 1))
|
| 42 |
-
|
| 43 |
-
start_date = start.strftime("%Y-%m-%d")
|
| 44 |
-
end_date = end.strftime("%Y-%m-%d")
|
| 45 |
-
|
| 46 |
-
if legend == "Dynamic World":
|
| 47 |
-
Map.add_legend(
|
| 48 |
-
title="Dynamic World Land Cover",
|
| 49 |
-
builtin_legend="Dynamic_World",
|
| 50 |
-
)
|
| 51 |
-
elif legend == "ESA Land Cover":
|
| 52 |
-
Map.add_legend(title="ESA Land Cover", builtin_legend="ESA_WorldCover")
|
| 53 |
-
elif legend == "ESRI Land Cover":
|
| 54 |
-
Map.add_legend(title="ESRI Land Cover", builtin_legend="ESRI_LandCover")
|
| 55 |
-
|
| 56 |
-
with st.expander("Data sources"):
|
| 57 |
-
st.markdown(markdown)
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
with col1:
|
| 61 |
-
Map.to_streamlit(height=750)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|