Skip to content

Commit 24eb8d1

Browse files
author
Diego Melgar
committed
Added new CLI options to fk.pl, zero padding and sigma
1 parent f53554d commit 24eb8d1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/fk/fk.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@
5353
taper applies a low-pass cosine filter at fc=(1-taper)*f_Niquest ($taper).
5454
-P: specify the min. and max. slownesses in term of 1/vs_at_the_source ($pmin/$pmax)
5555
and optionally kmax at zero frequency in term of 1/hs ($kmax).
56+
-G: specify sigma, small imaginary frequency in 1/T ($sigma).
5657
-R: receiver depth ($r_depth).
5758
-S: 0=explosion; 1=single force; 2=double couple ($src).
59+
-T: specify the number of samples before the first arrival ($tb).
5860
-U: 1=down-going wave only; -1=up-going wave only ($updn).
5961
-X: dump the input to cmd for debug ($fk).
6062
Examples
@@ -73,6 +75,8 @@
7375
my @value = split(/\//,substr($_,2));
7476
if ($opt eq "D") {
7577
$deg2km = 6371*3.14159/180.;
78+
} elsif ($opt eq "G") {
79+
$sigma = $value[0];
7680
} elsif ($opt eq "H") {
7781
$f1 = $value[0]; $f2 = $value[1];
7882
} elsif ($opt eq "M") {
@@ -96,6 +100,8 @@
96100
$rdep = "_$r_depth";
97101
} elsif ($opt eq "S") {
98102
$src = $value[0];
103+
} elsif ($opt eq "T") {
104+
$tb = $value[0];
99105
} elsif ($opt eq "U") {
100106
$updn = $value[0];
101107
} elsif ($opt eq "X") {

0 commit comments

Comments
 (0)