Revision 537c4eff2a0c50f52a38f7f357c43171697587a2 authored by Antonio Valentino on 04 August 2022, 08:18:55 UTC, committed by GitHub on 04 August 2022, 08:18:55 UTC
+ add `__main__.py` for the initial implementation of the single-entrypoint script
   - add sub-parser grabbing functions `get_*_parser()` for all executable scripts
   - add `_autocomplete()`
   - add the main parser function `get_parser()` with groupped calls for sub-parsers
   - add `main()` with proper logging info and exit code

+ `utils.arg_utils.py`:
   - rename from  `arg_group.py` to `arg_utils.py`
   - add `create_argument_parser()` to create parser with or without sub-parsers
   - call `create_argument_parser()` from all executable scripts in `mintpy` folder.

+ `setup.py`: add the following optional requirements:
   - argcomplete
   - platemotion and astropy

+ `timeseries2velocity.py`: rename `inps.step` to `inps.stepDate` to avoid weird initiation bug in sub-command mode.

Co-authored-by: Zhang Yunjun <yunjunzgeo@gmail.com>
1 parent 00dd106
History
File Mode Size
data
defaults
legacy
objects
simulation
utils
workflow
__init__.py -rw-r--r-- 104 bytes
__main__.py -rw-r--r-- 17.8 KB
add.py -rwxr-xr-x 7.3 KB
add_attribute.py -rwxr-xr-x 3.0 KB
asc_desc2horz_vert.py -rwxr-xr-x 18.2 KB
bulk_plate_motion.py -rwxr-xr-x 15.9 KB
closure_phase_bias.py -rwxr-xr-x 49.3 KB
dem_error.py -rwxr-xr-x 26.8 KB
dem_gsi.py -rwxr-xr-x 8.8 KB
diff.py -rwxr-xr-x 12.2 KB
generate_mask.py -rwxr-xr-x 14.8 KB
geocode.py -rwxr-xr-x 14.3 KB
ifgram_inversion.py -rwxr-xr-x 61.2 KB
image_math.py -rwxr-xr-x 3.8 KB
image_stitch.py -rwxr-xr-x 13.3 KB
info.py -rwxr-xr-x 10.8 KB
iono_tec.py -rwxr-xr-x 18.0 KB
load_data.py -rwxr-xr-x 38.0 KB
load_gbis.py -rwxr-xr-x 6.1 KB
local_oscilator_drift.py -rwxr-xr-x 5.0 KB
lookup_geo2radar.py -rwxr-xr-x 10.1 KB
mask.py -rwxr-xr-x 8.6 KB
modify_network.py -rwxr-xr-x 25.4 KB
multi_transect.py -rwxr-xr-x 34.9 KB
multilook.py -rwxr-xr-x 13.3 KB
plot_coherence_matrix.py -rwxr-xr-x 12.5 KB
plot_network.py -rwxr-xr-x 14.8 KB
plot_transection.py -rwxr-xr-x 15.9 KB
prep_aria.py -rwxr-xr-x 28.3 KB
prep_cosicorr.py -rwxr-xr-x 4.1 KB
prep_fringe.py -rwxr-xr-x 18.4 KB
prep_gamma.py -rwxr-xr-x 17.3 KB
prep_gmtsar.py -rwxr-xr-x 11.3 KB
prep_hyp3.py -rwxr-xr-x 8.6 KB
prep_isce.py -rwxr-xr-x 12.2 KB
prep_roipac.py -rwxr-xr-x 4.9 KB
prep_snap.py -rwxr-xr-x 3.5 KB
reference_date.py -rwxr-xr-x 8.4 KB
reference_point.py -rwxr-xr-x 21.1 KB
remove_hdf5_dataset.py -rwxr-xr-x 2.1 KB
remove_ramp.py -rwxr-xr-x 5.1 KB
s1ab_range_bias.py -rwxr-xr-x 14.5 KB
save_gbis.py -rwxr-xr-x 9.6 KB
save_gdal.py -rwxr-xr-x 5.1 KB
save_gmt.py -rwxr-xr-x 6.1 KB
save_hdfeos5.py -rwxr-xr-x 17.6 KB
save_kite.py -rwxr-xr-x 10.0 KB
save_kmz.py -rwxr-xr-x 23.1 KB
save_kmz_timeseries.py -rwxr-xr-x 26.5 KB
save_qgis.py -rwxr-xr-x 10.2 KB
save_roipac.py -rwxr-xr-x 12.5 KB
smallbaselineApp.py -rwxr-xr-x 56.2 KB
solid_earth_tides.py -rwxr-xr-x 13.3 KB
spatial_average.py -rwxr-xr-x 2.6 KB
spatial_filter.py -rwxr-xr-x 9.8 KB
subset.py -rwxr-xr-x 22.2 KB
temporal_average.py -rwxr-xr-x 4.1 KB
temporal_derivative.py -rwxr-xr-x 2.1 KB
temporal_filter.py -rwxr-xr-x 3.1 KB
timeseries2velocity.py -rwxr-xr-x 33.0 KB
timeseries_rms.py -rwxr-xr-x 9.9 KB
tropo_gacos.py -rwxr-xr-x 14.2 KB
tropo_phase_elevation.py -rwxr-xr-x 9.1 KB
tropo_pyaps3.py -rwxr-xr-x 34.3 KB
tsview.py -rwxr-xr-x 42.9 KB
unwrap_error_bridging.py -rwxr-xr-x 13.2 KB
unwrap_error_phase_closure.py -rwxr-xr-x 25.6 KB
version.py -rw-r--r-- 3.1 KB
view.py -rwxr-xr-x 71.1 KB

back to top