Difference between revisions of "Max2curve"

From GeopsyWiki
Jump to navigation Jump to search
 
(14 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
[[gphistogram]] is now replacing max2curve.
 +
 
== Visualization of analysis statistics ==
 
== Visualization of analysis statistics ==
  
 
'''max2curve''' is a graphical user interface for visualization
 
'''max2curve''' is a graphical user interface for visualization
analysis results of various processing options in geopsy.
+
analysis results of various processing options in geopsy. '''max2curve''' reads, filters and determines histograms from  
'''max2curve''' reads, filters and determines histograms from  
+
.max files. (Note that [[gphistogram]] has a very similar functionality and may replace max2curve in future)
.max files.
+
 
 +
You may call [[max2curve]] on the command line directly with the output file (.max file) produced
 +
from your f-k processing.
 +
 
 +
$> max2curve your_output_file.max
 +
 
 +
[[Image:Max2CurveStartWindow.png|thumb|left|250px|Startup of max2curve for selecting histogram parameters - FK case]]
 +
[[Image:SPACToolbox_SPAC2DISP_Max2curveLoadingParameters.png|thumb|right|250px|Startup of max2curve for selecting histogram prameters - SPAC case]]
 +
[[Image:Max2curveStartupHVTFA.png|thumb|right|250px|Startup of max2curve for selecting histogram prameters - HVTFA case]]
 +
Certainly you may also open [[max2curve]] directly. Then you will need to locate your .max file in the
 +
directory tree and select it with the automatically opened file browser.
 +
 +
[[max2curve]] then reads the contents of the .max output file and computes a
 +
[[Wikipedia:probability density function|probability density function (pdf)]] for slowness values
 +
(in case of [[FK|f-k result files]]) or autocorrelation values (in case of [[MSPAC|MSPAC output files]])
 +
for each individual frequency band of processing.
 +
 
 +
In order to be able to produce the pdf from re-normalization of a binned histogram, [[max2curve]] needs
 +
to know about:
 +
 
 +
* the slowness limits and the number of bins to use for the '''f-k output files'''.
 +
* the ring and component index, limits for the autocorrelation values (-1,1 is a good choice) and number of bins to use for the '''spac output files'''.
 +
* the limits of the ellipticity values (0.1,10 is a good choice) and number of bins to use for the '''H/V tfa output files'''.
 +
 +
An example for the usage of [[max2curve]] in either case are given in
 +
[[FK#Graphical_display_of_f-k_results_using_max2curve|the FK tutorial]], the
 +
[[MSPAC#Graphical_display_of_all_spatial_autocorrelation_estimates|MSPAC tutorial]],
 +
and the [[HVTFA|H/V tfa tutorial]], respectively.
 +
 
 +
<br style="clear: both"/>
 +
 
 +
Further, for each of the three output file types, it is possible to make a pre-selection or some filtering according
 +
to method specific criteria.
 +
 
 +
* For the f-k type output results, it is possible to filter the .max file(s) according to two extra criteria. Using the two entries under ''Sample selection'', i.e. specify percentage values for '''Semblance''' and '''Beam power''', it is possible to filter individual time window results falling below thresholds for the semblance coefficients and beam power values. Although semblance is a normalized quantity, we choose to develop a relative threshold scheme for filtering results for both semblance and beam power values. The percentage values should be understood as follows: for all entries in the .max output file, the minimum and maximum values for the semblance coefficient and the beam power values are used as lower (0%) and upper (100%) limits. Any given percentage value will compute the threshold as absolute value in between these two limits by linear interpolation. Note that the conditions are combined in the sense of a [[Wikipedia:logical and|logical and]]. Only time window that surpass the threshold for both values (semblance and beam power) will be kept and passed to the histogram computation. Any other analysis window result will be skipped and is not taken into account for the computation of the frequency dependent histogram. 
 +
* For the MSPAC type output results, the results will be ''filtered'' according to some ring and component index. The output files contain the autocorrelation values for each ring and component for each analysed time window. For computing a histogram it makes only sense to select the results for one ring and component. Component indices from 0 to 2 (Vertical=0, Radial=1, Transverse=2) are only needed for 3C-MSPAC computation.
 +
* For the HVTFA type output files, the criterion for selection is based on a maximum number of ''events'' per minute to be kept for the final analysis. NEEDS MORE DESCRIPTION (Mirjam??)
 +
 
 +
<br style="clear: both"/>
 +
 
 +
== Grid statistics window ==
 +
 
 +
[[Image:Max2CurveGridStatistics.png|thumb|left|250px|Grid statistics window of max2curve]]
 +
The '''Grid statistics window''' allows the user of max2curve to have direct access to the
 +
individual histograms for each frequency.
 +
For scanning over different frequency bands, one can use the slider bar to scan from
 +
the lowest to the highest frequency band. For each center frequency, one obtains
 +
the re-normalized histogram ( = pdf) of all slowness/autocorr/ellipticity displayed in the upper panel.
 +
The sample mean <math>\mu(f_c)</math> and sample standard deviation <math>\sigma(f_c)</math> calculated
 +
from the histogram are used to display the corresponding normal distribution <math>N(\mu(f_c),\sigma(f_c))</math>)
 +
as overlaying red curve.
 +
 
 +
The lower panel displays a different view of the same information. Here, a cumulative histogram or
 +
[[Wikipedia:probability distribution function|probability distribution function]] instead
 +
of histogram and pdf. The display has been introduced because it is often easier to judge the
 +
''normalness'' of the distribution in the cumulative view.
 +
 +
Besides pure visualization, the grid statistics window can be further used to modify/edit/clean
 +
the histograms. Please note that '''any editing must be done based on scientific reasoning'''.
 +
E.g. if there is expert knowledge about the way aliasing phenomena are wrapped into the histogram picture in the
 +
case of the f-k output files, then one has sufficient ground to eliminate parts of the observation from
 +
the histograms.
 +
<br style="clear: both"/>
 +
 
 +
[[Image:Max2curvePickBands.png|thumb|left|250px|Enabling ''picking'' mode for editing histograms]]
 +
[[Image:Max2curvePickedBandExample.png|thumb|right|350px|Region marked in blue is kept for interpretation, outside values are removed]]
 +
The editing of histograms is performed by drawing a rectangular window on the region of the
 +
histogram that is to be kept for interpretation. You enter the edit mode by right clicking on the upper panel
 +
and ticking the ''Pick bands'' options. The editing mode is enabled until you turn it off.
 +
After selecting the band of interest you can remove the unmarked bins from the histogram by pushing the '''Reject''' button.
 +
Then you proceed to another frequency band. Optionally you can also first select the limits for each frequency band
 +
(selections are memorized) and push '''Reject all''' at the end of your edit session.
 +
 
 +
'''Note:''' histogram samples are only ''virtually'' removed and new sample mean and standard deviation are computed.
 +
The selection can be undone by the '''Undo''' option which reverts the last action. Press '''Undo all''' if you want to
 +
revert to the original situation.
 +
 
 +
After having ''pruned'' the histograms you can create a new curve from the remaining statistics
 +
by pushing one of the ''mean'', ''median'' or ''mode'' buttons in the '''Curve''' popup-menu. When creating a
 +
curve, it is automatically appended to the [[SciFigs:_Curve_Browser|curve browser]] and displayed immediately.
 +
For details how to works with curves (saving, smoothing, resmapling, etc.), please check the [[SciFigs:_Curve_Browser|curve browser]] page.
  
TODO: copy from [[FK#Graphical display of f-k results using max2curve]]
+
<br style="clear: both"/>

Latest revision as of 09:45, 4 January 2021

gphistogram is now replacing max2curve.

Visualization of analysis statistics

max2curve is a graphical user interface for visualization analysis results of various processing options in geopsy. max2curve reads, filters and determines histograms from .max files. (Note that gphistogram has a very similar functionality and may replace max2curve in future)

You may call max2curve on the command line directly with the output file (.max file) produced from your f-k processing.

$> max2curve your_output_file.max
Startup of max2curve for selecting histogram parameters - FK case
Startup of max2curve for selecting histogram prameters - SPAC case
Startup of max2curve for selecting histogram prameters - HVTFA case

Certainly you may also open max2curve directly. Then you will need to locate your .max file in the directory tree and select it with the automatically opened file browser.

max2curve then reads the contents of the .max output file and computes a probability density function (pdf) for slowness values (in case of f-k result files) or autocorrelation values (in case of MSPAC output files) for each individual frequency band of processing.

In order to be able to produce the pdf from re-normalization of a binned histogram, max2curve needs to know about:

  • the slowness limits and the number of bins to use for the f-k output files.
  • the ring and component index, limits for the autocorrelation values (-1,1 is a good choice) and number of bins to use for the spac output files.
  • the limits of the ellipticity values (0.1,10 is a good choice) and number of bins to use for the H/V tfa output files.

An example for the usage of max2curve in either case are given in the FK tutorial, the MSPAC tutorial, and the H/V tfa tutorial, respectively.


Further, for each of the three output file types, it is possible to make a pre-selection or some filtering according to method specific criteria.

  • For the f-k type output results, it is possible to filter the .max file(s) according to two extra criteria. Using the two entries under Sample selection, i.e. specify percentage values for Semblance and Beam power, it is possible to filter individual time window results falling below thresholds for the semblance coefficients and beam power values. Although semblance is a normalized quantity, we choose to develop a relative threshold scheme for filtering results for both semblance and beam power values. The percentage values should be understood as follows: for all entries in the .max output file, the minimum and maximum values for the semblance coefficient and the beam power values are used as lower (0%) and upper (100%) limits. Any given percentage value will compute the threshold as absolute value in between these two limits by linear interpolation. Note that the conditions are combined in the sense of a logical and. Only time window that surpass the threshold for both values (semblance and beam power) will be kept and passed to the histogram computation. Any other analysis window result will be skipped and is not taken into account for the computation of the frequency dependent histogram.
  • For the MSPAC type output results, the results will be filtered according to some ring and component index. The output files contain the autocorrelation values for each ring and component for each analysed time window. For computing a histogram it makes only sense to select the results for one ring and component. Component indices from 0 to 2 (Vertical=0, Radial=1, Transverse=2) are only needed for 3C-MSPAC computation.
  • For the HVTFA type output files, the criterion for selection is based on a maximum number of events per minute to be kept for the final analysis. NEEDS MORE DESCRIPTION (Mirjam??)


Grid statistics window

Grid statistics window of max2curve

The Grid statistics window allows the user of max2curve to have direct access to the individual histograms for each frequency. For scanning over different frequency bands, one can use the slider bar to scan from the lowest to the highest frequency band. For each center frequency, one obtains the re-normalized histogram ( = pdf) of all slowness/autocorr/ellipticity displayed in the upper panel. The sample mean and sample standard deviation calculated from the histogram are used to display the corresponding normal distribution ) as overlaying red curve.

The lower panel displays a different view of the same information. Here, a cumulative histogram or probability distribution function instead of histogram and pdf. The display has been introduced because it is often easier to judge the normalness of the distribution in the cumulative view.

Besides pure visualization, the grid statistics window can be further used to modify/edit/clean the histograms. Please note that any editing must be done based on scientific reasoning. E.g. if there is expert knowledge about the way aliasing phenomena are wrapped into the histogram picture in the case of the f-k output files, then one has sufficient ground to eliminate parts of the observation from the histograms.

Enabling picking mode for editing histograms
Region marked in blue is kept for interpretation, outside values are removed

The editing of histograms is performed by drawing a rectangular window on the region of the histogram that is to be kept for interpretation. You enter the edit mode by right clicking on the upper panel and ticking the Pick bands options. The editing mode is enabled until you turn it off. After selecting the band of interest you can remove the unmarked bins from the histogram by pushing the Reject button. Then you proceed to another frequency band. Optionally you can also first select the limits for each frequency band (selections are memorized) and push Reject all at the end of your edit session.

Note: histogram samples are only virtually removed and new sample mean and standard deviation are computed. The selection can be undone by the Undo option which reverts the last action. Press Undo all if you want to revert to the original situation.

After having pruned the histograms you can create a new curve from the remaining statistics by pushing one of the mean, median or mode buttons in the Curve popup-menu. When creating a curve, it is automatically appended to the curve browser and displayed immediately. For details how to works with curves (saving, smoothing, resmapling, etc.), please check the curve browser page.