Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GPIAG-Software
IFOS2D
Commits
edf295fb
Commit
edf295fb
authored
Mar 25, 2016
by
Florian Wittkamp
Browse files
Bugfix: Timeshift of sinus3
The sinus3 source wavelet was shifted in the wrong direction.
parent
f6c6b17b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/stf.c
View file @
edf295fb
...
...
@@ -253,7 +253,7 @@ void stf(FILE *fp, float **sectionvy, float ** sectionvy_obs, float ** sectionvy
case
4
:
/* sinus raised to the power of three */
if
((
t
<
tshift
)
||
(
t
>
(
tshift
+
ts
)))
amp
=
0
.
0
;
else
amp
=
pow
(
sin
(
PI
*
(
t
+
tshift
)
/
ts
),
3
.
0
);
else
amp
=
pow
(
sin
(
PI
*
(
t
-
tshift
)
/
ts
),
3
.
0
);
break
;
break
;
...
...
src/wavelet.c
View file @
edf295fb
...
...
@@ -82,7 +82,7 @@ float ** wavelet(float ** srcpos_loc, int nsrc, int ishot, int SH, int STF){
case
4
:
/* sinus raised to the power of three */
if
((
t
<
tshift
)
||
(
t
>
(
tshift
+
ts
)))
amp
=
0
.
0
;
else
amp
=
pow
(
sin
(
PI
*
(
t
+
tshift
)
/
ts
),
3
.
0
);
else
amp
=
pow
(
sin
(
PI
*
(
t
-
tshift
)
/
ts
),
3
.
0
);
break
;
break
;
...
...
@@ -177,7 +177,7 @@ float ** wavelet(float ** srcpos_loc, int nsrc, int ishot, int SH, int STF){
case
4
:
/* sinus raised to the power of three */
if
((
t
<
tshift
)
||
(
t
>
(
tshift
+
ts
)))
amp
=
0
.
0
;
else
amp
=
pow
(
sin
(
PI
*
(
t
+
tshift
)
/
ts
),
3
.
0
);
else
amp
=
pow
(
sin
(
PI
*
(
t
-
tshift
)
/
ts
),
3
.
0
);
break
;
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment