Commit edf295fb authored by Florian Wittkamp's avatar Florian Wittkamp

Bugfix: Timeshift of sinus3

The sinus3 source wavelet was shifted in the wrong direction.
parent f6c6b17b
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment