HV SR Manual Aaaaaaaaaaaaaaaaaaaaa Aaaaaaaaaaaaaaaaaaaaaa
HV SR Manual Aaaaaaaaaaaaaaaaaaaaa Aaaaaaaaaaaaaaaaaaaaaa
HV SR Manual Aaaaaaaaaaaaaaaaaaaaa Aaaaaaaaaaaaaaaaaaaaaa
6)
About OpenHVSR
Credits
OpenHVSR is an algorithm developed in Matlab® (Release 2010a) by Ph.D.
Samuel Bignardi. If you use this code for research purposes, please consider to
support my research by citing:
Abu Zeid, N.; Corradini, E.; Bignardi, S.; Nizzo, V.; Santarato, G. (2017).
The passive seismic technique HVSR as a reconnaissance tool for map-
ping paleo-soils: the case of the Pilastri archaeological site, Northern Italy.
Archaeological Prospection. DOI: 10.1002/arp.1568
Bignardi, S.; Fedele, F.; Santarato, G.; Yezzi, A. J.; Rix, G. J. (2013).
Surface waves in laterally heterogeneous media. Journal of engineering me-
chanics. Vol. 139; p. 1158-1165, ISSN: 0733-9399, DOI: 10.1061/(ASCE)
EM.1943-889.0000566.
Abu Zeid, N., Corradini, E., Bignardi, S., Santarato, G., 2016, Unusual
geophysical techniques in archaeology - HVSR and induced polarization,
a case history, 22nd European Meeting of Environmental and Engineering
Geophysics, NSAG-2016, DOI 10.3997/2214-4609.201602027.
Bignardi, S., Abu Zeid, N., Corradini, E., Santarato, G., 2017, The HVSR
technique from array data, speeding up mapping of paleo-surfaces and
buried remains: The case of the Bronze-Age site of Pilastri (Italy), SEG
Technical Program Exp. Abstracts 2017, 5119-5124, DOI 10.1190/segam2017-
17746745.1.
Abu Zeid, N., Bignardi, S., Santarato, G., Peresani, M., 2017b, Exploring
the paleolithic cave of Fumane (Italy): Geophysical methods as planning
tool for archaeology, SEG Technical Program Expanded Abstracts 2017,
5125-5129, DOI 10.1190/segam2017-17729320.1.
2
Bignardi, S., Abu Zeid, N., Corradini, E., Santarato, G., 2017, The HVSR
technique from array data, speeding up mapping of paleo-surfaces and
buried remains: The case of the Bronze-Age site of Pilastri (Italy), SEG
Technical Program Exp. Abstracts 2017, 5119-5124, DOI 10.1190/segam2017-
17746745.1.
Bignardi, S. Fiussello, S., Yezzi, A., 2018, Free and improved computer
codes for HVSR processing and inversions, 31st Symposium on the Appli-
cation of Geophysics to Engineering and Environmental Problems, (SAGEEP
2018), Nashville Tennessee, USA March 25-29.
Obradovic, M., Abu Zeid, N., Bignardi, S., Bolognesi, M., Peresani, M.,
Russo, P., Santarato, G., 2015; High resolution geophysical and topo-
graphical surveys for the characterization of Fumane Cave Prehistoric Site,
Italy, Near Surface Geoscience 2015, DOI, 10.3997/2214-4609.201413676.
License
OpenHVSR is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later version.
OpenHVSR is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABIL-
ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License along
with Nome-Programma. If not, see <http://www.gnu.org/licenses/>.
Aknowledgements
OpenHVSR includes some publicly available routines:
the corresponding mex-fortran source code; here that code was ported to
Matlab so that users on 64 bit machines can avoid dealing with mex les
compilation and to ensure compatibility with any future release of Matlab.
What is OpenHVSR
OpenHVSR is a computer program developed in the Matlab environment, de-
signed for the simultaneous modeling and/or inversion of large, Horizontal-to-
Vertical Spectral Ratio (HVSR or H/V) datasets and with the purpose of con-
structing 2D/3D subsurface models (topography included). The program is
designed to provide a high level of interactive experience to the user and still to
be of intuitive use
Contents
0.0.1 To start the program . . . . . . . . . . . . . . . . . . . . . 4
0.0.2 Knowh issues . . . . . . . . . . . . . . . . . . . . . . . . . 5
0.0.3 Load an example . . . . . . . . . . . . . . . . . . . . . . . 6
0.0.4 Create your own project . . . . . . . . . . . . . . . . . . . 7
0.0.4.1 The project-le . . . . . . . . . . . . . . . . . . 7
0.0.4.2 Data-les . . . . . . . . . . . . . . . . . . . . . . 9
0.0.4.3 Subsurface-les . . . . . . . . . . . . . . . . . . . 10
0.1 Interface description and use . . . . . . . . . . . . . . . . . . . . 10
0.1.1 Tab 1. Main parameter settings and 2D prole optimization 10
0.1.2 Tab 2. Local 1D model optimization . . . . . . . . . . . . 13
0.1.3 Tab 3. Prole view . . . . . . . . . . . . . . . . . . . . . . 16
0.1.4 Tab 4. Condence . . . . . . . . . . . . . . . . . . . . . . 16
0.1.5 Tab 5. Single parameter sensitivity . . . . . . . . . . . . . 17
0.2 Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
0.2.1 Menu Files . . . . . . . . . . . . . . . . . . . . . . . . . . 18
0.2.2 Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
0.2.3 view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
0.3 Suggestions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Bibliography 20
4
CONTENTS 5
or
5. run START_OpenHVSR.m
2. Navigate to the example you want to open and select the project.m le,
then click Open
1 % Data S e c t i o n :
2 SURVEYS{ 1 , 1 } = [ 0 0 0 ] ; % Location [ x , y , z ] .
3 SURVEYS{ 1 , 2 } = 'DATA/ hvsr_1 . txt ' ; % HVSR c u r v e .
4
5 SURVEYS{ 2 , 1 } = [ 1 0 0 0 5 ] ;
6 SURVEYS{ 2 , 2 } = 'DATA/ hvsr_2 . txt ' ;
7
8 SURVEYS{ 3 , 1 } = [ 2 0 0 0 5 ] ;
9 SURVEYS{ 3 , 2 } = 'DATA/ hvsr_3 . txt ' ;
10
11 % I n i t i a l Subsurface Section
12 MODELS{ 1 , 1 } = 'MODELS/ subsurface_A . txt ' ;
13 MODELS{ 1 , 2 } = [ 1 2 ] ;
14
15 MODELS{ 2 , 1 } = 'MODELS/ subsurface_B . txt ' ;
16 MODELS{ 2 , 2 } = [ 3 ] ;
17
18 % optional section
19 % datafile_columns = [2 3 6 ] ;
20 % d a t a f i l e _ s e p a r a t o r = ' data_begins_here ' ;
These two variables use the cell feature of Matlab which creates a container
that has the same structure of a matrix but it can contain dierent sort of data,
for example,
SURVEYS{ 3 , 2 }
2 SURVEYS{ 1 , 1 } = [ 0 0 0 ] ; % Location [ x , y , z ] .
3 SURVEYS{ 1 , 2 } = 'DATA/ hvsr_1 . txt ' ; % HVSR c u r v e .
datale_columns
datale_separator
are optional and can be used to load dierent data-le structures, provided that
data-les are in ASCII format. By default, the program reads two-columns data
les, with frequency values and corresponding HVSR curve amplitudes stored
in the rst and second column respectively. If the input les include an header
CONTENTS 9
(footer is not allowed), followed by a table of data, these can be read by specing
the structure of the le, either from the interface (through the "Files/HVSR
les format" menu) or by uncommenting the lines 19,20 in the project-le. The
datale_separator variable can be any string. The user must insert this string in
every data-le, between the header and the data sections, in order to indicate to
the program where data begin. Finally, the datale_columns variable species
the column ID's corresponding to the frequecy scale, to the HVSR curve and to
the standard deviation. For example
19 datafile_columns = [2 3 6 ] ;
20 d a t a f i l e _ s e p a r a t o r = ' data_begins_here ' ;
means that OpenHVSR will look for the string data_begins_here in order
to nd the data-section of the le. Further, It will read the data section as a
matrix and it will use the data in the column 2 as frequency scale, column 3 as
the HVSR curve amplitude and nally, colum 6 as standad deviation.
0.0.4.2 Data-les
Almost any data le structure is loadable provided it is an ASCII / UTF-8 le.
Files containing a header can be loaded with minimum eort by placing any
string between the header and the data section of the le, for example in the
following data-le
S i t e ID : DPC_INGV2014_MAE,
Instrument : EXT−
No . o f c h a n n e l s : 3
Sampling r a t e : 125 Hz
Start recording : 25/07/14 0 4 : 0 0 : 0 0
End r e c o r d i n g : 25/07/14 0 4 : 3 0 : 0 0
Trace l e n g t h : 0h50 ' 0 0 ' '
Channel l a b e l s : NORTH−SOUTH EAST−WEST UP−DOWN
f r e q . H/V Std . Dev . 95% c o n f . i n t . Vel . Ampl . Spec .
data_begins_here
0.01525 0.000 0.000 0.000 0.000
0.03051 0.000 0.000 0.000 0.000
0.0.4.3 Subsurface-les
The subsurface (see for e.g. table 2) is inputted using one or more ASCII les
where subsurface visco-elastic parameters are organized in a table. Each row
corresponds to a layer and the last one corresponds to the half-space. Columns
1 to 6, correspond to:
Rho (density)
H (thickness)
Qp (P-waves daming)
Qs (P-waves daming)
Note that the values of H, Qp, Qs must be set to 999. for the Half-space.
Q = Q0 f k (1)
where Q0 is the attenuation factor at 1 Hz and k is a constant which is
assumed to be xed for every location. Finally body waves dispersion, is con-
sidered trough the logarithmic low [1]
−1 f
V (f ) = V (fref ) 1 + (πQ0 ) ln (2)
fref
Text-boxes at (a) allow to set the constant k , the reference velocity V (fref ),
and the frequency band and frequency step to simulate the HVSR curves. The
stand-alone modeling can be started by simply pressing the MODEL button
(f).
CONTENTS 12
Specify which degree of freedom are locked (i.e. kept xed) during inver-
sion. The Show Lock Table button opens the Lock Parameters dialog
window in gure 3. Here the locked parameters are shown on the right
top table as unchecked. The right bottom table on the other hand can
be used to relax the constrain on the maximum ratio Vp /Vs , so enabling
higher Vp values in the selected layers in order to account for the water
table.
where the rst term on the r.h.s. represents the mist between the data and
the simulated curve. The second term introduces into the objective function a
CONTENTS 13
forcing condition on the slope of the curves, and the third term implements a
smooth lateral variation constraint on a particular family of parameters mj = Vp
, Vs , Rho, Qp , Qs , for j = 1 to 5 respectively. For details on equation 3, please
refer to [3].
Parameters a and b can be set using the menu Settings/Objective function
(see section 0.2.2) while the parameters αj , which highlight the importance of
the regularizing term for the dierent subsets of parameters are usually chosen
by the user, even though an automatic selection strategy is available by pressing
the Automatic weighting button. When pressed, a dialog window opens which
asks the user to set the amount of lateral variation expected for each family of
parameters.
As a nal note, it is important to remember that the settings of tab 1 will
also aect all other tabs.
Tab 2 shows:
an aerial view (a) of all measurement sites (i.e. the location associated to
each HVSR curve). The selected location is highlighted with a red circle.
Further the user can navigate through the sites by using the buttons with
the left/right arrows (b). Sites are normally indicated in blue but the
user is allowed to lock any site in order to prevent further modications
or in order to introduce an abrupt discontinuity when it is known to exist.
To lock/unlock a location use the Lock and Unlock buttons (b); the
locked sites will turn red. Finally, a curve can be discarded (i.e. not
considered) by using the Disable and Enable buttons. As a nal note,
when using the program in 3D mode (see 0.0.1), the user is allowed to
dene a customized linear prole by using the dene prole option of
the context menu which is opened by right-clicking on panel (a)
a set of controls (b and c) along with the name of the visualized data-le
the central panel (d) shows the data space. Here the experimental curve
(black) is shown along with its experimental uncertainty curves (gray, if
available). On the same plot, the stand-alone modeled curve (green) which
is obtained by pressing the MODEL button of Tab 1 and the simulated
curves corresponding to the best tting model (red curve) and to the last
model generated during the Monte Carlo inversion (blue curve) are shown
the table describing the current subsurface (e)
the 1D prole of one media property (f), which can be selected by pressing
the buttons on top.
the mist-vs-number of generated Monte Carlo trials plot (panel g), where
the vaue of the mist (i.e. aM + bS , see eq. 3), expressed as percentage
CONTENTS 15
of the initial mist, is plotted against the number of trial model generated
(black line). The red and green lines, plot the behavior of terms aM and
bS respectively.
To run the inversion algorithm press the Optimize independently button (c).
When inversion is running, all tables and graphs can be set to either updated
every time a new best model is found or dynamically, using the toggle real-time
radio button (c). The inversion can be paused at any time and once stopped, the
user is allowed to: inspect the 1D graph window (f), where the N most tting
models (N is settable) are plotted along with the best match. Further when
a satisfactory t is reached for a given location the user is allowed to extend
the local subsurface model to the previous/sucessive location (using the spread
left/right buttons) or even to the entire prole (spread button). Furthermore,
the experienced user is also allowed to manually correct the subsurface model
both on the basis of their own knowledge about the local geology, or alternatively
after using the tools of tabs 4 and 5 (discussed later).
To open the Model Manager window (g. 5), right-click on the model table
(e) and select modify. Once open, the user is allowed to manually edit the
model table and test the eect of the correction prior to deciding whether to
keep or discard the introduced changes.
Finally, if for any reason the user is not satised with the evolution of the
inversion process, the Revert button will restore the initial subsurface model.
CONTENTS 16
Figure 7: View of tab 4. This shows the condence of the best model as a
function of two selected parameters using the function CONF_LIM [4, 2, 5].
When the two parameters pertain to dierent measurement locations, this tool
can be used to gain condence on lateral variations.
CONTENTS 17
Figure 8: View of Tab 5. The frequency dependent variation of the mist with
respect to a single parameter (d.o.f) variation is shown (c). We refer to this
as single parameter sensitivity and it can be used to understand the correct
variation to be introduced into a model when improbable parameter values are
present
The d.o.f. under investigation is set using the controls (a) while the amount
of variation of the parameter is set using the controls (b).
0.2 Menus
HVSR les format : allow to specify a string (that the user must insert
beforehand into the HVSR data-les) to be used as header/data separator
and allow to specify the columns where frequency scale and HVSR curve
are stored. This potentially allows the program to read any le format
Save as new project : allows to save the current subsurface and data
as a completely new project that can be used independently. This is
particularly useful when adding layers to the subsurface in order to rene
the result
Save Elaboration : saves the status of the current elaboration into a .mat
(Matlab) le format for later use
0.2.2 Settings
Setup : open the Setup Manager window (g. 9) to set the physical
constraints of the subsurface visco-elastic parameters and allows to specify
the target Earthquake
0.2.3 view
HVSR: allows to switch between dierent visualizations of the HVSR curve
0.3 Suggestions
We suggest to perform Inversions using multiple steps and using the Save
as new project from one step to another. Start with a subsurface model
with few layers and limit the curve inversion to low frequencies. Suc-
cessively, when a good model is found, save as new project and edit the
subsurface les splitting the deeper layer in two or three sublayers. Use
the new project with thicknesses kept xed but widening the frequency
band to higher frequencies. Then, continue with the next, shallower layer,
and so on. Usually this strategy reveal to be more eective for curves with
the main peak at frequencies higher than 2 Hz.
CONTENTS 20
Look at the subsurface model in table (Tab 2, e). When a certain portion
of the HVSR curve is inverted by the Monte Carlo method, the elastic
parameters of each layer are randomly perturbed. When a good match
between the data and the simulated curves is found, the subsurface model
that produced the synthetics is accepted. Unfortunately, if some parame-
ter has a poor inuence on the shape of the simulated curve and in turn,
on the mist (i.e. has a low sensitivity), a good match can be found even
if an improbable value of such parameter is present. The tools of tabs 4
and 5 allow the user to judge if an improbable parameter value should be
changed in order to obtain a more plausible model.
Bibliography
[1] K. Aki and P. G. Richards. Quantitative seismology, Theory and methods.
University Sciences Books, Susalito, California, second edition, 2002.
[7] N.C. Tsai and G.W. Housne. Calculation of surface motions of a layered
half-space. Bulletin of the Seismological Society of America, 60:16251651,
1970.
21