WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 64c36d0

Browse files
committed
2 parents a0b96fa + 7f5e2bb commit 64c36d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1074
-584
lines changed

marchenko/demo/oneD/p5all.scr

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@ while (( ishot < nshots ))
1616
do
1717

1818
(( xsrc = -2250000 + ${ishot}*${dxshot} ))
19-
(( tr1 = 901 - ${ishot} ))
20-
(( tr2 = ${tr1} + 900 ))
19+
(( tr1 = $nshots - ${ishot} ))
20+
(( tr2 = ${tr1} + $nshots - 1 ))
2121
echo xsrc=$xsrc tr1=$tr1 tr2=$tr2
2222

2323
(( ishot = $ishot + 1))
2424

2525
suwind < shot5_rp.su key=tracl min=$tr1 max=$tr2 | \
2626
sushw key=sx,gx,fldr,trwf \
27-
a=$xsrc,-2250000,$ishot,901 b=0,5000,0,0 j=0,901,0,0 | \
27+
a=$xsrc,-2250000,$ishot,$nshots b=0,$dxshot,0,0 j=0,$nshots,0,0 | \
2828
suchw key1=offset key2=gx key3=sx c=-1 d=1000 >> shotsdx5_rp.su
2929

3030
done
31-
6.49 MB
Binary file not shown.

marchenko3D/demo/WS15/README.1

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
2+
*1* Source the setup.sh script that you can find on
3+
4+
source /home/users/jan/WS15setup.sh
5+
6+
The setup.sh script completes the following tasks:
7+
8+
-a-Set PATH to find Seismic Unix and Marchenko code
9+
export CWPROOT=/home/users/jan/SeisUnix/
10+
export PATH=.:$CWPROOT/bin:/lus/scratch/$USER/OpenSource/bin:$PATH:
11+
12+
-b- Create working directory
13+
/lus/scratch/$USER
14+
15+
-c- set up compilation environment with the Intel compiler
16+
17+
-d- Get the Marchenko software (and other utilities modeling code))
18+
git clone https://github.com/JanThorbecke/OpenSource.git
19+
20+
if the git clone takes too much time you can copy the source code:
21+
22+
cp -rp /lus/snx11029/jan/OpenSource /lus/scratch/$USER/
23+
24+
25+
*2* after the set-up the code can be compiled
26+
27+
cd OpenSource
28+
cp Make_include_swan Make_include
29+
make clean
30+
make
31+
32+
After succesfull complication the code can be used for running the exercises and demo's
33+
34+
35+
*3* Running jobs
36+
37+
To run example jobs must be submitted to the Workload Manager PBSpro.
38+
An example script can be found on:
39+
40+
/lus/scratch/$USER/OpenSource/WS15/job.pbs
41+
42+
in job.pbs leave the number of nodes set to 1; the code is not MPI parallel and cannot use more than 1 node. The number of OMP_NUM_THREADS can be changed and is currently set to 40.
43+
Add the ...scr command (that can be found in the demo directories) as the last line in the aprun command line and submit the job to the queue with 'qsub job.pbs'
44+
you can check the status of your job in the queue with 'qstat'
45+
46+
47+
*4* Display of results:
48+
49+
suximage < result.su perc=99 &
50+
51+
if X11 display is too slow:
52+
53+
supsimage < result.su perc=99 > results.eps
54+
convert results.eps ~/results.png
55+
56+
copy png file to your laptop you are working on
57+
58+
scp [email protected]:~/*png .
59+
60+
61+
*5* Usefull job monitor commands specific for Cray
62+
63+
apstat : status of applications running
64+
xtnodestat : placement of application on system
65+
xtprocadmin -A : details of installed nodes
66+

marchenko3D/demo/WS15/README.2

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
Marchenko demo/twoD: reproduce the figures from the paper, but with a 2D model.
3+
4+
cd /lus/scratch/$USER/OpenSource/marchenko/demo/twoD
5+
6+
# Copy pre-computed shots
7+
cp -rp /lus/scratch/jan/OpenSource/marchenko/demo/twoD/shots .
8+
cp /lus/scratch/$USER/OpenSource/marchenko/demo/WS15/job.pbs .
9+
10+
Interactively run a progam to create the numerical model used to compute the reference reults.
11+
12+
./model.scr
13+
14+
When that is completed continue by adapting job.pbs to
15+
16+
Compute the intial focusing operator placed at a depth of 1100 m by running
17+
18+
initialFocus.scr
19+
20+
To compare the Green's function computed by marchenko generate the reference output
21+
22+
adapt job.pbs to run referenceShot.scr
23+
24+
run the marchenko program interactively (no need to submit job to queue);
25+
26+
./marchenko.scr
27+
28+
Compare the Green's function computed by marchenko with the reference (adapt job.pbs to run referenceShot.scr)
29+
30+
The script eps.scr generates .eps and .png files that can be copied back to your local laptop for display.
31+
32+
You can experiment with
33+
-amplitude of R: scale with a constant ampltiude
34+
-investigate the wavelet that is used to model R
35+
-number of iterations,
36+
-intial focusing position,
37+
-investigate at intermediate results (see ../oneD/marchenkoIter.scr as an example).
38+
39+
40+

marchenko3D/demo/WS15/README.3

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Plane waves
2+
3+
Marchenko method works as well with plane-waves, in stead of modeling a foccus point response for the initial operaror and plane wave is modeled.
4+
5+
Submit the initialPlane.scr to the queue to compute the intial operator. The marchenkoPlane.scr script computes the Macrehnko solution for the plane-wave response.
6+
7+
The script epsPlane.scr generates .eps and .png files that can be copied back to your local laptop for display.
8+
9+
DISCUSSION:
10+
In epsPlane.scr there is a convolution between f1minPlane and p0lpus;
11+
- why is this 'needed'?
12+
- does the result have the correct amplitude?
13+
- would this also work with focal points?

marchenko3D/demo/WS15/README.4

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
To generate a shot record with Primaries reflections only submit the demo/twoD/primaries.scr to the queue.
3+
4+
The script epsPrimaries.scr generates .eps and .png files that can be copied back to your local laptop for display.
5+
6+
The directory demo/invisible contains the Reflection data to analyse:
7+
8+
shotsdx4_rp.su
9+
10+
Try to find out, by ONLY using the program marchenko_primaries, how many reflectors there are.
11+

marchenko3D/demo/WS15/README.5

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
To generate the raytimes and the estimated amplitudes for the virtual source and receivers, run in demo/twoD
2+
3+
rayvsp.scr
4+
5+
After the raytimes have been determined you can create the source function of the homogeneous Green's function by running:
6+
7+
marchenko_ray.pbs
8+
9+
A reference Green's function can be modeled by running
10+
11+
homg_reference.scr
12+
13+
To view the retrieved and reference Green's function, run:
14+
15+
homgview.scr
16+
17+
Or to convert the data to eps and png, run:
18+
19+
homgpng.scr

marchenko3D/demo/WS15/job.pbs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
#PBS -N Marchenko
3+
#PBS -j oe
4+
#PBS -l place=scatter,select=1
5+
#PBS -S /bin/bash
6+
#PBS -V
7+
#PBS -q bw44-sm
8+
# PBS -q sk40-sm
9+
#PBS -l walltime=00:10:00
10+
11+
set -x
12+
cd $PBS_O_WORKDIR
13+
ulimit -s unlimited
14+
15+
export KMP_AFFINITY=disabled
16+
export OMP_NUM_THREADS=40
17+
18+
starttime=`date +%s%N`
19+
20+
aprun -n1 -d $OMP_NUM_THREADS
21+
22+
endtime=`date +%s%N`
23+
runtime=$(echo "scale=9; 1.0*10^(-9)*(${endtime}-${starttime})" | bc -l)
24+
echo "Runtime = $runtime seconds"
25+

marchenko3D/demo/WS15/setup.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
export CWPROOT=/home/users/jan/SeisUnix/
3+
export PATH=.:$CWPROOT/bin:/lus/scratch/$USER/OpenSource/bin:$PATH:
4+
alias lt='ls -lart'
5+
6+
module swap PrgEnv-cray PrgEnv-intel
7+
module list
8+
9+
mkdir -p /lus/scratch/$USER
10+
11+
cd /lus/scratch/$USER
12+
rsync -av /lus/scratch/jan/OpenSource .
13+
#git clone https://github.com/JanThorbecke/OpenSource.git
14+

marchenko3D/demo/old/README

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)