Skip to content

Commit

Permalink
Updated sea surface temperature app #24
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jan 1, 2022
1 parent adb1a73 commit bd33c14
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions apps/rois.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,13 @@
[-85.341797, 24.046464],
]
),
"World": Polygon(
[
[-171.210938, -57.136239],
[-171.210938, 79.997168],
[177.539063, 79.997168],
[177.539063, -57.136239],
[-171.210938, -57.136239],
]
),
}
11 changes: 10 additions & 1 deletion apps/timelapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,11 @@ def app():
["arial.ttf", "alibaba.otf"],
index=0,
)
add_colorbar = st.checkbox("Add a colorbar", True)
colorbar_label = st.text_input(
"Enter the colorbar label:", "Surface Temperature (°C)"
)

mp4 = st.checkbox("Save timelapse as MP4", True)

empty_text = st.empty()
Expand Down Expand Up @@ -1097,6 +1102,8 @@ def app():
add_progress_bar=add_progress_bar,
progress_bar_color=progress_bar_color,
progress_bar_height=5,
add_colorbar=add_colorbar,
colorbar_label=colorbar_label,
loop=0,
mp4=mp4,
)
Expand All @@ -1106,7 +1113,7 @@ def app():
start_date=start_date.strftime("%Y-%m-%d"),
end_date=end_date.strftime("%Y-%m-%d"),
region=roi,
bands=None,
bands=st.session_state["band"],
frequency=frequency,
reducer=reducer,
date_format=None,
Expand All @@ -1131,6 +1138,8 @@ def app():
add_progress_bar=add_progress_bar,
progress_bar_color=progress_bar_color,
progress_bar_height=5,
add_colorbar=add_colorbar,
colorbar_label=colorbar_label,
loop=0,
mp4=mp4,
)
Expand Down

0 comments on commit bd33c14

Please sign in to comment.