YashMK89 commited on
Commit
6c55b36
·
verified ·
1 Parent(s): febe87e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -705,27 +705,27 @@ end_date_str = end_date.strftime('%Y-%m-%d')
705
  # )
706
 
707
  # Cloud Filtering Section
708
- st.markdown("<h5>Cloud Filtering</h5>", unsafe_allow_html=True)
 
709
 
710
- # Separate thresholds for tile-based and pixel-based cloud filtering
711
- tile_cloud_threshold = st.slider(
712
- "Select Maximum Tile-Based Cloud Coverage Threshold (%)",
713
- min_value=0,
714
- max_value=50,
715
- value=20,
716
- step=5,
717
- help="Tiles with cloud coverage exceeding this threshold will be excluded."
718
- )
719
-
720
- pixel_cloud_threshold = st.slider(
721
- "Select Maximum Pixel-Based Cloud Coverage Threshold (%)",
722
- min_value=0,
723
- max_value=50,
724
- value=10,
725
- step=5,
726
- help="Individual pixels with cloud coverage exceeding this threshold will be masked."
727
- )
728
 
 
 
 
 
 
 
 
 
729
  aggregation_period = st.selectbox(
730
  "Select Aggregation Period (e.g, Custom(Start Date to End Date) , Daily , Weekly , Monthly , Yearly)",
731
  ["Custom (Start Date to End Date)", "Daily", "Weekly", "Monthly", "Yearly"],
 
705
  # )
706
 
707
  # Cloud Filtering Section
708
+ if imagery_base == "Sentinel" and "Sentinel-2" in sub_options[sub_selection]:
709
+ st.markdown("<h5>Cloud Filtering</h5>", unsafe_allow_html=True)
710
 
711
+ # Separate thresholds for tile-based and pixel-based cloud filtering
712
+ tile_cloud_threshold = st.slider(
713
+ "Select Maximum Tile-Based Cloud Coverage Threshold (%)",
714
+ min_value=0,
715
+ max_value=100,
716
+ value=20,
717
+ step=5,
718
+ help="Tiles with cloud coverage exceeding this threshold will be excluded."
719
+ )
 
 
 
 
 
 
 
 
 
720
 
721
+ pixel_cloud_threshold = st.slider(
722
+ "Select Maximum Pixel-Based Cloud Coverage Threshold (%)",
723
+ min_value=0,
724
+ max_value=100,
725
+ value=10,
726
+ step=5,
727
+ help="Individual pixels with cloud coverage exceeding this threshold will be masked."
728
+ )
729
  aggregation_period = st.selectbox(
730
  "Select Aggregation Period (e.g, Custom(Start Date to End Date) , Daily , Weekly , Monthly , Yearly)",
731
  ["Custom (Start Date to End Date)", "Daily", "Weekly", "Monthly", "Yearly"],