Gphistogram

From GeopsyWiki
Revision as of 09:44, 4 January 2021 by Marc (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

gphistogram now fully replaces max2curve. This section and max2curve must be updated.

Interest

Sometimes one wants to explore the analysis results from f-k analysis differently from the standard option given in max2curve, i.e. displaying histograms of slowness versus frequency. The command line tool gphistogram allows you to do this by creating histogram displays (and further maintaining the editing capabilities of max2curve) from simple two column input files (or from standard input). Typical usage in the exploration of f-k analysis results would be a display of wavelength vs. phase velocity or propagation azimuth vs. slowness or other quantities of interest. Certainly you can also use gphistogram for displaying other data ;-).

Examples

Display azimuth versus slowness:

awk '!/#/{print $4, $3}' lep_ring01.max |\
gphistogram -x-min -0 -x-max 360 -x-count 72 -x-sampling linear \
           -y-min 0 -y-max 8 -y-count 100 -y-sampling linear

Display azimuth versus frequency:

gphistogram lep_ring01.max -azimuth

Display wavelength versus slowness:

awk '!/#/{print 1./($2*$3), $3}' lep_ring01.max |\
gphistogram -x-min 0.0011 -x-max 5 -x-count 100 -x-sampling log \
           -y-min 0 -y-max 8 -y-count 100 -y-sampling linear

Display wavelength versus velocity:

awk '!/#/{print 1./($2*$3), 1./$3}' lep_ring01.max |\
gphistogram -x-min 0.0011 -x-max 5 -x-count 100 -x-sampling log \
           -y-min 0 -y-max 3 -y-count 100 -y-sampling linear