-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_steps.py
36 lines (31 loc) · 1.01 KB
/
run_steps.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from pathlib import Path
from dist_s1.workflows import (
run_burst_disturbance_workflow,
run_dist_s1_localization_workflow,
run_dist_s1_packaging_workflow,
run_disturbance_merge_workflow,
)
mgrs_tile_id = '11SLT'
post_date = '2025-01-21'
track_number = 71
dst_dir = Path('../notebooks/los-angeles')
memory_strategy = 'high'
moderate_confidence_threshold = 3.5
high_confidence_threshold = 5.5
run_config = run_dist_s1_localization_workflow(
mgrs_tile_id,
post_date,
track_number,
post_date_buffer_days=1,
dst_dir=dst_dir,
input_data_dir=dst_dir,
)
run_config.apply_water_mask = True
run_config.water_mask_path = dst_dir / 'water_mask.tif'
run_config.memory_strategy = memory_strategy
run_config.moderate_confidence_threshold = moderate_confidence_threshold
run_config.high_confidence_threshold = high_confidence_threshold
run_config.to_yaml('run_config.yml')
run_burst_disturbance_workflow(run_config)
run_disturbance_merge_workflow(run_config)
run_dist_s1_packaging_workflow(run_config)