-
-
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 #41 from Dirack/feature/issue/37
Feature/issue/37
- Loading branch information
Showing
7 changed files
with
202 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ Fig/ | |
*.x | ||
convgraph | ||
mtconvgraph |
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,16 @@ | ||
# gdb_script (GDB Script) | ||
# | ||
# Purpose: Run test in GDB shell. | ||
# | ||
# Site: https://dirack.github.io | ||
# | ||
# Programmer: Rodolfo A C Neves (Dirack) 04/01/2021 | ||
# | ||
# Email: rodolfo_profissional@hotmail.com | ||
# | ||
# License: GPL-3.0 <https://www.gnu.org/licenses/gpl-3.0.txt>. | ||
|
||
cd test_data_cube/ | ||
#set args <dataCube.rsf om0=5 dm0=0.1 nm0=1 ot0=1.1 dt0=0.1 nt0=1 v0=1.5 verb=y repeat=1 > teste.rsf | ||
set args <dataCube.rsf itmax=1000 getmtgraph=y mtconvgraph=graph.rsf half=y temp0=10 c0=0.5 om0=3 dm0=1 nm0=1 ot0=1.1 dt0=0.1 nt0=1 v0=1.5 verb=y repeat=2 useprecseed=y > teste.rsf | ||
show args |
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,106 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# | ||
# SConstruct (Madagascar Script) | ||
# | ||
# Purpose: Obtain zero offset CRS parameters using VFSA | ||
# for a set of (t0,m0) pairs. | ||
# | ||
# Site: https://www.geofisicando.com | ||
# | ||
# Programmer: Rodolfo A. C. Neves (Dirack) 13/08/2021 | ||
# | ||
# Email: rodolfo_profissional@hotmail.com | ||
# | ||
# License: GPL-3.0 <https://www.gnu.org/licenses/gpl-3.0.txt>. | ||
|
||
# Madagascar library | ||
from rsf.proj import * | ||
|
||
# Python math library | ||
import math | ||
import subprocess | ||
|
||
__author__="Rodolfo Dirack <rodolfo_profissional@hotmail.com>" | ||
__version__="1.0" | ||
__site__="https://www.geofisicando.com" | ||
|
||
Help(''' | ||
Obtain zero offset CRS parameters using VFSA for a set of (t0,m0) pairs | ||
======================================================================= | ||
Obtain RN, RNIP and BETA parameters using Very Fast Simulated Annealing (VFSA) | ||
global optimization | ||
Author: %s | ||
Version: %s | ||
Site: %s | ||
''' % (__author__,__version__,__site__)) | ||
|
||
Help(''' | ||
### Kirchhoff modeling ### | ||
Use Kirchhoff modeling in a Gaussian reflector linear velocity model | ||
velocity increases with depth with a 0.5 velocity gradient | ||
''') | ||
|
||
Flow('gaussianReflector',None, | ||
''' | ||
math d1=0.01 n1=2001 o1=-5 unit1=km label1=Offset | ||
output="4-3*exp(-(x1-5)^2/9)" | ||
''') | ||
|
||
# Define gaussian velocity Model | ||
Flow('velocityModel','gaussianReflector', | ||
''' | ||
window min1=0 max1=10 | | ||
spray axis=1 n=451 d=0.01 o=0 label=Depth unit=km | | ||
math output="1.5+0.5*x1+0.0*x2" | ||
''') | ||
|
||
Flow('reflectorDip','gaussianReflector','math output="2/3*(x1-5)*input" ') | ||
|
||
# Kirchhoff Modeling | ||
Flow('dataCube','gaussianReflector reflectorDip', | ||
''' | ||
kirmod cmp=y dip=${SOURCES[1]} | ||
nh=161 dh=0.025 h0=0 | ||
ns=401 ds=0.025 s0=0 | ||
freq=10 dt=0.004 nt=1001 | ||
vel=1.5 gradz=0.5 gradx=0.0 verb=y | | ||
put d2=0.0125 label3="CMP" unit3="Km" label2="Offset" unit2="Km" label1=Time unit1=s | ||
''') | ||
|
||
om0=3 | ||
dm0=1 | ||
nm0=1 | ||
ot0=1.1 | ||
dt0=0.1 | ||
nt0=1 | ||
ot0=1.1 | ||
v0=1.5 | ||
repeat=1 | ||
|
||
Help(''' | ||
### Very Fast Simulated Annealing (VFSA) ### | ||
Obtain RN, RNIP and BETA parameters for nm0=%g om0=%g dm0=%g nt0=%g ot0=%g dt0=%g v0=%g | ||
using non-hyperbolic CRS aproximation and VFSA repeated %d times | ||
''' % (nm0,om0,dm0,nt0,ot0,dt0,v0,repeat)) | ||
|
||
ngraphs = int(ARGUMENTS.get("ngraphs",5)) | ||
|
||
parameter = 'crsParameters' | ||
graph = 'graph' | ||
|
||
# Very Fast Simulated Annealling Global Optimization (VFSA) | ||
Flow([parameter,graph],'dataCube', | ||
''' | ||
vfsacrsnh itmax=1000 | ||
getmtgraph=y mtconvgraph=${TARGETS[1]} half=y temp0=10 c0=0.5 om0=%g dm0=%g nm0=%d ot0=%g dt0=%g nt0=%d v0=%g verb=y repeat=%d | ||
useprecseed=y | ||
''' % (om0,dm0,nm0,ot0,dt0,nt0,v0,ngraphs)) | ||
|
||
Result(graph,'scale axis=1 rscale=-1 | graph title="Semblance - Using %d threads" symbol=*' % ngraphs) | ||
|
||
End() |
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