Skip to content

Commit 91211a3

Browse files
authored
remove cloud cover variable from image_correlation.py
1 parent 6177cbf commit 91211a3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

glacier_image_correlation/image_correlation.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,15 @@ def download_s2(img1_date, img2_date, bbox):
3737
search = catalog.search(
3838
collections=["sentinel-2-l2a"],
3939
intersects=bbox,
40-
datetime=img1_date,
41-
query={"eo:cloud_cover": {"lt": 10}}, # less than 10% cloud cover
42-
)
40+
datetime=img1_date)
4341

4442
img1_items = search.item_collection()
4543
img1_full = stackstac.stack(img1_items)
4644

4745
search = catalog.search(
4846
collections=["sentinel-2-l2a"],
4947
intersects=bbox,
50-
datetime=img2_date,
51-
query={"eo:cloud_cover": {"lt": 10}}, # less than 10% cloud cover
52-
)
48+
datetime=img2_date)
5349

5450
# Check how many items were returned
5551
img2_items = search.item_collection()
@@ -202,4 +198,4 @@ def main():
202198
ds.veloc_horizontal.rio.to_raster(f'S2_{args.img1_date}_{args.img2_date}_horizontal_velocity.tif')
203199

204200
if __name__ == "__main__":
205-
main()
201+
main()

0 commit comments

Comments
 (0)