SIGN IN SIGN UP

add `view --shp-file` to plot line/polygon from ESRI shapefiles or GMT lonlat files (#1435)

This PR adds `view.py --shp-file/color/linewidth` options to plot line/polygon from ESRI shapefiles or GMT lonlat file format.

+ `utils.arg_utils.py`: add `add_shape_argument()` to parse shape files from ESRI and GMT, including file path, color, linewidth, etc. The previous `--faultline` related options are still supported for backward compatibility.

+ `utils.plot`: add the following new functions:
   - add `plot_shapefile()` to read and plot ERSI shapefiles using gdal and plot using matplotlib
   - rename `plot_faultline()` to `plot_gmt_lonlat_file()`
   - add `plot_shape()` to call the above two functions.

+ `plate_motion.py`: 
   - add Liu et al. (2025) to the reference
   - simplify the reference on the NNR-PMMs

---------

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Z
Zhang Yunjun committed
b656901a8be79b2f801b8a8f57cd7673bd670319
Parent: 6d7b6fd
Committed by GitHub <noreply@github.com> on 11/12/2025, 6:17:33 AM