Skip to content

Conversation

@yunjunz
Copy link
Contributor

@yunjunz yunjunz commented Mar 27, 2024

This PR adds two features to facilitate the alosStack processing. Default behaviors are not changed.

  • stripmapStack/prepSlcALOS2.py: add the optional --alosStack option to leverage this script to prepare the SLC data structure expected by alosStack. Default is turned off.

  • alosStack: ignore the non-numeric folders in the data download directory, similar to stripmapStack, such as the ARCHIVED_FILES folder generated by stripmapStack/prepSlcALOS2 above, instead of (re)moving the original downloaded zip/tar files. This includes changes in the following scripts:

    • StackPublic
    • create_cmds
    • read_data

It also includes two minor print out msg and bug fixes:

  • alosStack/create_cmds: print out the number of acquisitions and pairs

  • alosStack/create_cmds: ignore empty input of insar.bbox arg, in addition to the existing None input, otherwise, it causes the following error:

Traceback (most recent call last):
  File "/home/yunjunz/tools/isce2/src/isce2/contrib/stack/alosStack/geocode.py", line 72, in <module>
    bbox = [float(x) for x in bbox.split('/')]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yunjunz/tools/isce2/src/isce2/contrib/stack/alosStack/geocode.py", line 72, in <listcomp>
    bbox = [float(x) for x in bbox.split('/')]
            ^^^^^^^^
ValueError: could not convert string to float: ''

yunjunz added 2 commits March 27, 2024 17:10
+ ignore the non-numeric foldres in the data download directory, similar to stripmapStack, in the following scripts:
   - StackPublic
   - create_cmds
   - read_data

+ create_cmds: print out the number of acquisitions and pairs

+ create_cmds: ignore empty input of `insar.bbox` arg, in addition to the existing None input, otherwise, it causes the following err

```
Traceback (most recent call last):
  File "/home/yunjunz/tools/isce2/src/isce2/contrib/stack/alosStack/geocode.py", line 72, in <module>
    bbox = [float(x) for x in bbox.split('/')]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/yunjunz/tools/isce2/src/isce2/contrib/stack/alosStack/geocode.py", line 72, in <listcomp>
    bbox = [float(x) for x in bbox.split('/')]
            ^^^^^^^^
ValueError: could not convert string to float: ''
```
Copy link
Collaborator

@hfattahi hfattahi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The original functionality seems untouched and the new functionality is turned off by default.

@rtburns-jpl rtburns-jpl merged commit 3012f28 into isce-framework:main Apr 8, 2024
@yunjunz yunjunz deleted the alos_stack branch April 9, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants