Thread: Re: bug : merge gap interp

Started: 2015-04-15 17:59:37
Last activity: 2015-04-15 17:59:37
Topics: SAC Help
Chad Trabant
2015-04-15 17:59:37

Dear Irwandi,

Thank you for the report and the proposed fix. I have entered your report into the sac issue tracker. The project only has volunteer developers so I am not sure when it will be evaluated. It is very helpful that you have identified a potential fix.

I am CC'ing the sac-help mailing list as this information may be useful for others as well. For future reference I recommend sending such questions directly to the list:

http://www.iris.washington.edu/mailman/listinfo/sac-help

Thank you again for reporting this.

regards,
Chad Trabant
IRIS DMC

On Apr 15, 2015, at 9:48 AM, Irwandi USK <irwandi<at>unsyiah.ac.id> wrote:

Dear all;

I have fix the problem, in the program xmerge.c at line 341, I make this change
// y[i] = yb + i *(ye-yb)/(e-b); //old
y[i] = yb + (i-b) *(ye-yb)/(e-b); //new
I hope you can update the program to repair the bug.

I am looking forward you email for this update.

Best regards,
Irwandi


On Wed, Apr 15, 2015 at 4:41 PM, Irwandi USK <irwandi<at>unsyiah.ac.id <irwandi<at>unsyiah.ac.id>> wrote:

Dear all;


Firstly thank for your very help full program sac.
Now I am using sac on ubuntu 14.04.

SEISMIC ANALYSIS CODE [12/22/2014 (Version 101.6)]
Copyright 1995 Regents of the University of California


But I find problem to merge data with GAP INTERP, the result not correct.
Please kindly find the sac file and the plotting in attachment file.

The command I run


SAC> r 2007.117.08.01.48.8100.IA.TSI..BHZ.D.SAC 2007.117.08.02.02.9299.IA.TSI..BHZ.D.SAC
SAC> merge gap zero
merge: Gap zero fill
SAC> w zero.sac
SAC> r 2007.117.08.01.48.8100.IA.TSI..BHZ.D.SAC 2007.117.08.02.02.9299.IA.TSI..BHZ.D.SAC
SAC> merge gap interp
merge: Gap interp fill
SAC> w interp.sac
SAC> r 2007.117.08.01.48.8100.IA.TSI..BHZ.D.SAC 2007.117.08.02.02.9299.IA.TSI..BHZ.D.SAC zero.sac interp.sac
SAC> p1


Could you help me how to fix the problem about using merge gap inter?

Thank you for your help and collaboration.

Best regards,
Irwandi



23:35:58 v.22510d55