Scroll to navigation

MINTPY-PLOT_TRANSECTION(1) User Commands MINTPY-PLOT_TRANSECTION(1)

NAME

mintpy-plot_transection - Generate transect/profile along a line

DESCRIPTION

usage: plot_transection.py [-h] [--dset DSET] [-v VMIN VMAX]

[--offset OFFSET [OFFSET ...]] [--noverbose]
[--start-yx Y0 X0] [--end-yx Y1 X1] [--start-lalo LAT0 LON0] [--end-lalo LAT1 LON1] [--line-file LOLA_FILE] [--interpolation {nearest,bilinear,cubic}] [--ms MARKER_SIZE] [--fontsize FONT_SIZE] [--fontcolor FONT_COLOR] [--nowhitespace] [--noaxis] [--notick] [-c COLORMAP] [--cm-lut NUM] [--cm-vlist CMAP_VLIST CMAP_VLIST CMAP_VLIST] [--nocbar] [--cbar-nbins NUM] [--cbar-ext {None,max,neither,both,min}] [--cbar-label CBAR_LABEL] [--cbar-loc CBAR_LOC] [--cbar-size CBAR_SIZE] [--notitle] [--title-in] [--figtitle FIG_TITLE] [--title4sen] [--figsize WID LEN] [--dpi DPI] [--figext {.emf,.eps,.pdf,.png,.ps,.raw,.rgba,.svg,.svgz}] [--fignum NUM] [--nrows NUM] [--ncols NUM] [--wspace FIG_WID_SPACE] [--hspace FIG_HEI_SPACE] [--no-tight-layout] [--coord {radar,geo}] [--animation] [-o [OUTFILE ...]] [--save] [--nodisplay] [--update] file [file ...]

Generate transect/profile along a line

positional arguments:

input file to show transection

options:

show this help message and exit
Dataset name to read
Display limits for matrix plotting.
offset between transects [for multiple files only; default: [0.05] m]. number of input offsets should be:
1 - same (sequential) offset between adjacent transects OR
num_file - different (cumulative) offset for each file, starting from 0.
Disable the verbose message printing.

Profile location:

Start/end points of profile
start point of the profile in pixel number [y, x]
end point of the profile in pixel number [y, x]
start point of the profile in [lat, lon]
end point of the profile in [lat, lon]
file with start and end point info in lon lat, same as GMT format. GMT xy file, i.e. transect_lonlat.xy: > 131.1663 33.1157 131.2621 33.0860
interpolation method while extacting profile along the line. Default: nearest.
Point marker size. Default: 2.0

Figure:

Figure settings for display
font size
font color (default: k).
do not display white space
do not display axis
do not display tick in x/y axis
colormap used for display, i.e. jet, cmy, RdBu, hsv, jet_r, temperature, viridis, etc. More at https://mintpy.readthedocs.io/en/latest/api/colormaps/
number of increment of colormap lookup table (default: 256).
list of 3 float numbers, for truncated colormap only (default: [0.0, 0.7, 1.0]).
do not display colorbar
number of bins for colorbar.
Extend setting of colorbar; based on data stat by default.
colorbar label
colorbar location for single plot (default: right).
colorbar size and pad (default: 2%).
do not display title
draw title in/out of axes
Title shown in the figure.
display Sentinel-1 A/B and IPF info in title.
figure size in inches - width and length
DPI - dot per inch - for display/write (default: 300).
File extension for figure output file (default: .png).
number of figure windows
subplot number in row
subplot number in column
width space between subplots in inches
height space between subplots in inches
disable automatic tight layout for multiple subplots
Display in radar/geo coordination system (for geocoded file only; default: geo).
enable animation mode

Save/Output:

Save figure and write to file(s)
save the figure with assigned filename. By default, it's calculated based on the input file name.
save the figure
save and do not display the figure
enable update mode for save figure: skip running if 1) output file already exists AND 2) output file is newer than input file.

example:

plot_transection.py velocity.h5 --start-yx 5290 5579 --end-yx 12177 482 plot_transection.py velocity.h5 --start-lalo 30.125 129.988 --end-lalo 30.250 130.116 plot_transection.py velocity.h5 --line-file transect_lonlat.xy --dem gsi10m.dem
# Multiple files plot_transection.py AlosA*/velocity.h5 AlosD*/velocity.h5 --off 2 plot_transection.py Kirishima2017*.h5 Kirishima2008*.h5 --off 0 0 10 10 plot_transection.py Kirishima2017*.h5 Kirishima2008*.h5 --off 0 0 10 10 --lalo0 31.947 130.843 --lalo1 31.947 130.860
May 2022 mintpy-plot_transection v1.3.3