Fix Year Range
Browse files
app.py
CHANGED
@@ -231,8 +231,8 @@ dec_31 = pd.to_datetime(f"{max_year}/12/31", format="%Y/%m/%d")
|
|
231 |
nov_15 = pd.to_datetime(f"{max_year}/11/15", format="%Y/%m/%d")
|
232 |
dec_15 = pd.to_datetime(f"{max_year}/12/15", format="%Y/%m/%d")
|
233 |
input_daterange = st.date_input("Date Range (Ignore year. App will compute indices for all possible years)", (nov_15, dec_15), jan_1, dec_31)
|
234 |
-
min_year = int(st.number_input("Minimum Year", value=
|
235 |
-
max_year = int(st.number_input("Maximum Year", value=max_year, min_value=
|
236 |
|
237 |
# Input: GeoJSON/KML file
|
238 |
input_file = st.file_uploader("Upload KML/GeoJSON file", type=["geojson", "kml", "shp"])
|
|
|
231 |
nov_15 = pd.to_datetime(f"{max_year}/11/15", format="%Y/%m/%d")
|
232 |
dec_15 = pd.to_datetime(f"{max_year}/12/15", format="%Y/%m/%d")
|
233 |
input_daterange = st.date_input("Date Range (Ignore year. App will compute indices for all possible years)", (nov_15, dec_15), jan_1, dec_31)
|
234 |
+
min_year = int(st.number_input("Minimum Year", value=2019, min_value=2015, step=1))
|
235 |
+
max_year = int(st.number_input("Maximum Year", value=max_year, min_value=2015, step=1))
|
236 |
|
237 |
# Input: GeoJSON/KML file
|
238 |
input_file = st.file_uploader("Upload KML/GeoJSON file", type=["geojson", "kml", "shp"])
|