-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from Dirack/develop/2.2.0
Develop/2.2.0
- Loading branch information
Showing
68 changed files
with
461 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,6 @@ Fig/ | |
*.x | ||
convgraph | ||
mtconvgraph | ||
vfsacrsnh_lib.h | ||
nhcrssurf_lib.h | ||
dummyfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# GDB scripts for debug | ||
|
||
This is a repository of several GNU Debugger (GDB) Scripts for debug sessions using GDB. | ||
You can load those scripts in GDB console or use it as a template to load parameters in GDB. | ||
Use the command inside gdb shell to load args for 'Mvfsacrsnh.c': | ||
|
||
``` | ||
source gdb_script | ||
``` | ||
|
||
Or you could load the GDB script when calling gdb to starting a new debug session: | ||
|
||
``` | ||
gdb --command=gdb_script vfsa.x | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#### Optimization test of the programs with scons | ||
# Generate data for debug vfsa package | ||
|
||
Generate a datacube and run vfsa global optimization to | ||
measure execution time using scons. | ||
Generate a datacube and parameters files for vfsa debug session using scons. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.1.1 | ||
2.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,58 @@ | ||
#### Usage examples of sfvfsacrsnh for a set of (t0,m0) pairs | ||
# Usage examples of sfvfsacrsnh for a set of (t0,m0) pairs | ||
|
||
In this usage example we use the same gaussian reflector model as input and kirchhoff modeling. We use _sfvfsacrsnh_ to obtain the CRS parameters for a set of (t0,m0) pairs. | ||
|
||
### How to run it? | ||
## How to run it? | ||
|
||
* Run 'scons' in this directory (it may take some time): | ||
|
||
```sh | ||
~$ scons | ||
``` | ||
|
||
#### Expected outcomes | ||
## Expected outcomes | ||
|
||
Scons will generate a parameters cube in 'crsParameters.rsf' file. The optimized parameters | ||
are organized in the current order: RN, RNIP, BETA, Semblance, C0, Temp0, t0, m0. | ||
are organized in the current order: RN, RNIP, BETA, Semblance. | ||
The RN, RNIP and BETA are the zero offset CRS parameters. Semblance is the semblance measure | ||
between the non-hyperbolic CRS traveltime approximation and the seismic data cube in a CMP x | ||
offset window around Central CMP m0. The parameters C0 and Temp0 are the VFSA parameters used | ||
inside the optimization algorithm. And (t0,m0) pair is a time x CMP coordinate around the | ||
zero offset CRS approximation is calculated. | ||
offset window around Central CMP m0. | ||
|
||
The parameters cube in 'crsParameters.rsf' file is organized as follows: | ||
|
||
```sh | ||
~$ sfin crsParameters.rsf | ||
|
||
crsParameters.rsf: | ||
in="/home/dirack/rsfdata/vfsa/usage_examples/fullParametersOptimization/crsParameters.rsf@" | ||
in="/home/rodolfo/rsfdata/vfsa/examples/fullParametersOptimization/crsParameters.rsf@" | ||
esize=4 type=float form=native | ||
n1=8 d1=1 o1=0 label1="parameters" unit1="" | ||
n2=6 d2=1 o2=0 label2="(t0,m0) index" unit2="" | ||
n3=1 d3=1 o3=0 label3="" unit3="" | ||
48 elements 192 bytes | ||
n1=2 d1=0.1 o1=1.1 label1="t0" unit1="s" | ||
n2=3 d2=1 o2=3 label2="m0" unit2="km" | ||
n3=4 d3=1 o3=0 label3="parameters" unit3="RN, RNIP, BETA, Semblance" | ||
``` | ||
|
||
For each (t0,m0) pair (n2 coordinate) we get 8 parameters (n1 coordinate) as described above: | ||
For each (t0,m0) pair (n1 coordinate, n2 coordinate) we get 4 parameters (n3 coordinate) as described above. | ||
|
||
```sh | ||
~$ sfdisfil < crsParameters.rsf col=8 | ||
Use the following commands to dump parameters values from parameters cube (values should change from one iteration to another). | ||
|
||
- Get RN values: | ||
|
||
``` | ||
<crsParameters.rsf sfwindow n3=1 f3=0 | sfdisfil col=1 | ||
``` | ||
|
||
0: 2.677 2.228 -0.2981 0.4372 0.5 10 1.1 3 | ||
8: 4.815 3.804 -0.2447 0.374 0.5 10 1.2 3 | ||
16: 4.768 3.813 -0.2614 0.1921 0.5 10 1.1 4 | ||
24: 3.127 1.081 -0.287 0.1964 0.5 10 1.2 4 | ||
32: 3.105 1.129 -0.002743 0.9898 0.5 10 1.1 5 | ||
40: 3.12 1.168 -0.01008 0.9028 0.5 10 1.2 5 | ||
- Get RNIP values: | ||
|
||
``` | ||
<crsParameters.rsf sfwindow n3=1 f3=1 | sfdisfil col=1 | ||
``` | ||
- Get BETA values: | ||
|
||
``` | ||
<crsParameters.rsf sfwindow n3=1 f3=2 | sfdisfil col=1 | ||
``` | ||
- Get Semblance values: | ||
|
||
``` | ||
<crsParameters.rsf sfwindow n3=1 f3=3 | sfdisfil col=1 | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.