Skip to content

Commit

Permalink
Update retrieval.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachHoppinen authored Sep 7, 2023
1 parent 311a4d2 commit f1604d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spicy_snow/retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ def retrieve_snow_depth(area: shapely.geometry.Polygon,
search_results = s1_img_search(area, dates)
log.info(f'Found {len(search_results)} results')

assert len(search_results) > 3, f"Need at least 4 images to run. Found {len(search_results)} \
using area: {area} and dates: {dates}."

# download s1 images into dataset ['s1'] variable name
jobs = hyp3_pipeline(search_results, job_name = job_name, existing_job_name = existing_job_name)
imgs = download_hyp3(jobs, area, outdir = join(work_dir, 'tmp'), clean = False)
Expand Down

0 comments on commit f1604d4

Please sign in to comment.