Skip to content

Commit

Permalink
修正绘制机制解的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang1989 committed Feb 16, 2024
1 parent 9fe097b commit 3b4a9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/gmt6depth.pl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
for(my $j = 1; $j <= $i - 1; $j++) {
my ($mecas) = split m/\n/, `radpttn 1 $strike[$j] $dip[$j] $rake[$j] $iso[$j] $clvd[$j]`;
my @meca = split m/\s+/, $mecas;
printf GMT "%6.1f %6.1f 0 %s %s %s %s %s %f 17 0 0 %s\n", $dep[$j], ($rms[$j] - $min) / ($min / $dof), @meca[6, 1, 4, 3], $meca[5], $meca[2], $mag[$j];
printf GMT "%6.1f %6.1f 0 %s %s %s %s %s %f 17 0 0 %s\n", $dep[$j], ($rms[$j] - $min) / ($min / $dof), @meca[6, 1, 4, 3], -$meca[5], -$meca[2], $mag[$j];
}
close(GMT);
system "gmt end";
Expand Down

0 comments on commit 3b4a9dd

Please sign in to comment.