Improved debug output.
This commit is contained in:
parent
ae88e2291c
commit
12578dd1f2
1 changed files with 6 additions and 6 deletions
|
|
@ -898,28 +898,28 @@ def main(argv: list[str] | None = None) -> int:
|
|||
|
||||
pass_sites = _load_screening_pass_sites(year)
|
||||
if not pass_sites:
|
||||
print("[Sentinel-3] No PASS sites found in step-2 screening output")
|
||||
print("[Sentinel data] No PASS sites found in step-2 screening output")
|
||||
return 1
|
||||
|
||||
if args.site:
|
||||
pass_sites = [s for s in pass_sites if s["sitename"] == args.site]
|
||||
if not pass_sites:
|
||||
print(f"[Sentinel-3] Site '{args.site}' not found in step-2 PASS sites")
|
||||
print(f"[Sentinel data] Site '{args.site}' not found in step-2 PASS sites")
|
||||
return 1
|
||||
|
||||
print(f"[Sentinel-3] Processing {len(pass_sites)} site(s)")
|
||||
print(f"[Sentinel data] Processing {len(pass_sites)} site(s)")
|
||||
for i, site in enumerate(pass_sites, 1):
|
||||
sitename = site["sitename"]
|
||||
site_dir = DATA_DIR / "sentinel_data" / str(year) / sitename
|
||||
if args.skip_downloaded and site_dir.exists():
|
||||
print(
|
||||
f"[Sentinel-3] ({i}/{len(pass_sites)}) {sitename} — skipping (directory exists)"
|
||||
f"[Sentinel data] ({i}/{len(pass_sites)}) {sitename} — skipping (directory exists)"
|
||||
)
|
||||
continue
|
||||
print(f"[Sentinel-3] ({i}/{len(pass_sites)}) {sitename}")
|
||||
print(f"[Sentinel data] ({i}/{len(pass_sites)}) {sitename}")
|
||||
summary = process_site(sitename, site["lat"], site["lon"], year)
|
||||
print(
|
||||
f"[Sentinel-3] {sitename} done — "
|
||||
f"[Sentinel data] {sitename} done — "
|
||||
f"{summary['s2_refl_count']} REFL, "
|
||||
f"{summary['s3_composite_count']} composites"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue