SciFigs: Curve Browser
Contents
Loading curves
Click on Load button
- Load a dispersion curve from a text file (e.g. Test_Rayeigh_2modes.disp). It is a theoretical curve computed using tutorial Computing a theoretical dispersion curve.
Note: you can load as many curve as you want. However, you MUST keep only the curves that you want to invert. PLEASE do not forget to REMOVE the Data Sets you do not want to be used in the Inversion.
All curves loaded or created so far are displayed on the attached plot. But only the current curve is shown in the table. To change the current curve, play with the horizontal scroll bar. The title of the frame just below give the index and the total number of available curves. All items within this frame apply to current curve:
- values in the table
- menu Actions
- curve name
- visible button
To identify curves on the plot, it is handy to play with the Visible check box. It does not remove the curve but just hides it on the plot.
Clearing curves
You can also associate a special color, pen and symbol to each curve with the Legend button. Naming curves with unique names might be also useful.
Actions
Save
Saves current curve to a text file made of 4 columns: frequency, slowness, standard deviation and weight. The log is save as comments before the curve samples.
Log
Shows a log of all actions performed on the current curve.
Remove
Removes the current curve from the plot
Resample
Reorganize sampling of the current curve. Samples can be distributed on a log, linear or curvilinear scale. You can define any frequency range even outside the current available range. In this later case, samples are extrapolated and set as invalid. If the defined range is smaller than the current range, outside samples are not affected. To remove them use Cut.
Cut
Removes all samples outside a defined frequency or period range.
Smooth
Smooths the curve... currently not implemented.
Manual editing
You can edit all values like in a usual work sheet.
If you want to set the same value to several rows:
- Selected the rows (by clicking on the left header to select the full row)
- Edit one cell of the selection
- Hit enter or move to another cell to validate
- A dialog box should pop up asking if you want to extend the edition to all other selected rows.
Averaging or merging curves
Once you have at least two curves loaded, you can select the following action to average or merge several curves. A dialog box lets you select the curve to average or merge. Merging applies to non-overlapping frequency ranges, average applies to overlapping ranges. Both actions are automatically performed. If more than two curves are selected, curves are averaged or merged one by one using the same process:
- Build a vector with X values from the two curves.
- Resample both curves with this common X sampling.
- For each X value and for both curves, we have mean, variance, and weight (number of values used to compute statistics)
Where:
is the weight or equivalently the number of items in the statistical population used for the computation of and . is the ith item in population j.
The mean and variance computed over the whole population is then: