Skip to content

API to read GMT lonlat file from KML to plot faults#717

Merged
yunjunz merged 1 commit intoinsarlab:mainfrom
yunjunz:read_gmt
Jan 5, 2022
Merged

API to read GMT lonlat file from KML to plot faults#717
yunjunz merged 1 commit intoinsarlab:mainfrom
yunjunz:read_gmt

Conversation

@yunjunz
Copy link
Member

@yunjunz yunjunz commented Jan 5, 2022

Description of proposed changes

This PR adds a function to read GMT lon/lat file so that one can plot the faults dataset (created by GMT from KML file) on top of the view.py plot, in Python level ONLY.

  • add utils.plot.read_gmt_lonlat_file() to read and plot faults on top of view.plot_slice() output

    • add notes and examples on how to prepare the GMT lonlat file from KML file, and use the function in python
  • objects/gps:

    • add horz angle to the filename if it's horz and print out file name before the long calc
    • print warning instead of raise error if no GPS found
    • more print out num while comparing with GPS
  • tsview: support TS file w/o REF_Y/X

  • legacy/2to3_timeseries: change P_BASELINE_TIMESERIES to optional

Reminders

  • Pass Codacy code review (green)
  • Pass Circle CI / local 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.
  • If adding new functionality, add a detailed description to the documentation and/or an example.

+ add utils.plot.read_gmt_lonlat_file() to read and plot faults on top of view.py figures
   - add notes and examples on how to prepare the GMT lonlat file from KML file, and use the function in python

+ gps:
   - add horz angle to the filename if it's horz and print out file name before the long calc
   - print warning instead of raise error if no GPS found
   - more print out num while comparing with GPS

+ tsview: support TS file w/o REF_Y/X

+ legacy/2to3_timeseries: change P_BASELINE_TIMESERIES to optional
@yunjunz yunjunz merged commit 4357b8c into insarlab:main Jan 5, 2022
@yunjunz yunjunz deleted the read_gmt branch January 5, 2022 03:20
EJFielding pushed a commit to EJFielding/MintPy that referenced this pull request Jan 9, 2022
This PR adds a function to read GMT lon/lat file so that one can plot the faults dataset (created by GMT from KML file) on top of the view.py plot, in Python level ONLY.

+ add `utils.plot.read_gmt_lonlat_file()` to read and plot faults on top of `view.plot_slice()` output
   - add notes and examples on how to prepare the GMT lonlat file from KML file, and use the function in python

+ `objects/gps`:
   - add horz angle to the filename if it's horz and print out file name before the long calc
   - print warning instead of raise error if no GPS found
   - more print out num while comparing with GPS

+ `tsview`: support TS file w/o REF_Y/X

+ `legacy/2to3_timeseries`: change `P_BASELINE_TIMESERIES` to optional
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