Skip to content

Commit

Permalink
make main
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarshak committed Mar 4, 2025
1 parent e2b6100 commit 7acac63
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions examples/run_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,34 @@
)


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
def main() -> None:
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)

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)
if __name__ == '__main__':
main()

0 comments on commit 7acac63

Please sign in to comment.