Compute the maginal distribution in an image sub-region. This is a modified (and more general) version of clip_margdist.sh.
clip_margdist_sub.sh --help
The marginal distribution is written to a local table file with basename "margdist_sub". The data in this file can be easily plotted with the clip_margdist_sub_plotter script. Before calling this plot script you can build a local file named "Plot.Title" that contains the title you want to put at the top of the plot. For instance, in the ds9_profiles code I use clip_margdist_sub.sh to compute the marginal distribution in each box region. For each box I plot the data with clip_margdist_sub_plotter, but I build a "plot.Title" file in each case in order to label the box coordinates and other useful information.