Skip to content

making stackSentinel.py faster #223

@hardreddata

Description

@hardreddata

Hi,

I have been using stackSentinel from https://github.com/isce-framework/isce2/blob/main/contrib/stack/topsStack/README.md

I noticed that most of the time was in the Snaphu phase unwrapping and that it wasn't especially CPU intensive.

I had good outcomes manually editing the shell script to chunk runs into batches. Here batches of four.

# lots more chunks prior to this
SentinelWrapper.py -c /mnt/i/stack/configs/config_igram_unw_20201031_20201218 &
SentinelWrapper.py -c /mnt/i/stack/configs/config_igram_unw_20201031_20201230 &
SentinelWrapper.py -c /mnt/i/stack/configs/config_igram_unw_20201112_20201124 &
SentinelWrapper.py -c /mnt/i/stack/configs/config_igram_unw_20201112_20201206 &
wait

SentinelWrapper.py -c /mnt/i/stack/configs/config_igram_unw_20201112_20201218 &
SentinelWrapper.py -c /mnt/i/stack/configs/config_igram_unw_20201112_20201230 &
SentinelWrapper.py -c /mnt/i/stack/configs/config_igram_unw_20201112_20210111 &
SentinelWrapper.py -c /mnt/i/stack/configs/config_igram_unw_20201124_20201206 &
wait

I have modified Stack.py to accomplish this from the --num-process 4 command line argument. If this is of interest please let me know and I can do a pull request. Feedback on other steps which are time consuming and could benefit is invited. I get that not all steps can be split apart into independent chunks.

Changes are in here

main...RussellGrew:crude-num-process

Thanks for making this great resource available open source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions