Commit 609507a
pssac: Use Cartesian projection by default unless -S is used (#4088)
For most GMT modules, if -J is not given, GMT uses -JX15c for Cartesian
data, and -JQ15c for Geographic data.
pssac can either plot seismograms as time series (Cartesian data)
or plot seismograms on maps (Geographic data). Currently, pssac always
uses -JQ15c when -J is not given.
Plotting seismograms as time series gives the following error:
```
gmt sac seis.SAC -R9/20/-2/2 -Baf -Fr -Gp+gblack -Gn+gred -pdf single
sac [ERROR]: -S option is needed in geographic plots.
```
because GMT sets the default -JQ15c. But for geographic plots, -S
(controling the waveform time scaling) is required.
Obviously, the -JQ15c is the wrong choice. This PR fixes the issue.
In this PR, pssac always use Cartesian projection, unless -S is used.
All tests still pass. With this PR, the command
```
gmt sac seis.SAC -R9/20/-2/2 -Baf -Fr -Gp+gblack -Gn+gred -pdf single
```
plots seismograms using -JX15c, and command (with -S option)
```
gmt sac *.z -R-120/-40/35/65 -Baf -M1i -S300c -pdf map
```
plots seismograms on maps, using -JQ15c.1 parent c4495d3 commit 609507a
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13314 | 13314 | | |
13315 | 13315 | | |
13316 | 13316 | | |
13317 | | - | |
| 13317 | + | |
| 13318 | + | |
13318 | 13319 | | |
13319 | 13320 | | |
13320 | 13321 | | |
| |||
0 commit comments