Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@yunjunz
Copy link
Member

@yunjunz yunjunz commented Jul 13, 2023

Description of proposed changes

  • utils.readfile.py: generalize gamma LUT file extension support

  • utils.readfile.read_binary(): set ~pi (<1e-7 difference) value to 0, as sometimes shown in gamma products

  • dosc/api/data_structure: add file name convention, as requested in the user forum (https://groups.google.com/g/mintpy/c/XyX0ksURhTc).

  • objects/resample.py: fix a bug for geocode.py --bbox option while geocoding gamma products with customized SNWE from --bbox option

Reminders

  • Pass Pre-commit check (green)
  • Pass Codacy code review (green)
  • Pass Circle CI test (green)
  • Make sure that your code follows our style. Use the other functions/files as a basis.
  • If modifying functionality, describe changes to function behavior and arguments in a comment below the function declaration.

yunjunz added 2 commits July 13, 2023 14:10
+ generalize gamma LUT file extension checking, by replacing the "full file ext checking" with "file ext ending chars checking", to handle both "utm*" and "eqa*" prefix, such as .UTM_TO_RDC, .eqa_2_rdc, as provided by the various gamma users (GAMMA is annoying), in the following scripts:
   - utils.readfile
   - utils.writefile
   - prep_gamma

+ utils.readfile.read_binary(): convert ~pi value to zero while read phase from cpx file
   - convert ~pi value to zero while read phase from cpx file, as it sometimes happens to gamma products, probably due to the limited numerical precision of the complex data file, such as .int file.
   - light refactoring while calling np.fromfile(), to improve the readability

+ utils.readfile.read_binary_file(): for roipac processor, which is the default one if not specified, honor the metadata file for the following attributes if they exist, instead of using the hardwired value, which is the same as the default ones:
   - INTERLEAVE
   - BANDS
   - BYTE_ORDER
   - DATA_TYPE

+ docs/api/attribute.md: add BYTE_ORDER for gamma

+ dosc/api/data_structure: add file name convention
+ objects/resample.py: fix a bug for `geocode.py --bbox` option while geocoding gamma products with customized SNWE from --bbox option, the output dest_box does not start from 0, thus, should use box[3/4] directly, instead of box[3]-box[1] and box[2]-box[0]

+ cli/subset: check input file exsitence

+ view.py --coord: update help msg to avoid potential confusions by updating utils.arg_utils.add_figure_argument()

+ view.py --coord: set the other choices as yx, instead of radar, and keep radar still in the loop for backward compatiability
@yunjunz yunjunz merged commit 97fcad7 into insarlab:main Jul 13, 2023
@yunjunz yunjunz deleted the bugfix branch July 13, 2023 07:04
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.

1 participant