pspolar: Merge -C with -D and improve parsing#4870
Conversation
TO make room for a possible -Ccpt option across many modules, we let the optional alternate point be set via a modifier to -D (which sets the primary point). The new parsing allows for long/lat to be given in the usual geographic syntax accepted elsewhere in GMT (i.e., ddd:mm:ssF as well as decimal).
|
Pinging @seisman for comments on the questions above. |
Yes, changing it to "Sets the size of the focal sphere to plot polarities in" should be good. |
|
OK done. For my education, is this true?: The data plotted are all observations from a single earthquake observed at various stations at different azimuths and distances. The focal sphere is typically plotted at the location of the earthquake, given via -D (but see +z for offsetting its location). If so, should I add something like that to the docs? |
|
Any opinion on the size of that tiny circle? I think if default pen is 0.25p we should at least make the circle 0.5p. Just tested that with plot and it gives a tiny donut:
|
Yes, your understanding is correct. It's good to add these explainations.
I'm thinking about do we really need the line and the circle in polar. We have an example for polar in In meca, we have the -C option to shift the beachball location, add a line connecting the old and new locations, and also add a circle at the old location. The below figure shows how -C works. In the left panel, I need to add -C to both meca and polar so that the beachball and the polarity symbols can match. In the right panel, -C is added to polar, but again, without a beachball, the right panel seems useless. So I think the new syntax should be |
|
Thanks @seisman, I agree it seems pointless to let pspolar draw that circle and line. There is likely a lot of copy/paste in these various codes and docs rom way back. But if we did |
|
Since we are fixing bugs anyway, I guess we can pick what the default circle should be. 0.5p is very tiny. Perhaps 0.1c is better? |
Yes, that's a good point. |
|
Your 0.1c circle seems filled? How did that happen? |
I think the color is controlled by -G. |
|
Finally, with +z no longer needed then meca could instead use -A for "alternative location" of symbol, unless you think coupe may one day want to specify alternative locations. But being projected, not clear how to me. Anyway, the options now are
I think you can better make that choice than I! |
|
I don't think it's possible to specify new locations in coupe. So -A seems good to me |
|
Great, I will make it so in meca. I think I did all the things we discussed in pspolar so I will remove the WIP - maybe a final check from you and we are done? |
|
I still wonder about the 0.1c circle. In GMT4 the default was 0 (no circle, just the line). In GMT5-6.1.1 the circle size was 0.005i which is so small that unless the user selected a faint line it would be covered by the line. So effectively zero. Should we just state that the circle is optional; append +s to plot it - otherwise just draw the line? |
|
If you look at test meca_input_columns.sh you can see some examples of drawing the line and there is a barely discernible bump at the end for the 0.005i circle. I think this is not a good look. We should not plot it by default and let user select a size if they want it. |
Sounds good to me. |
|
OK, done. |




See #4869 for background.
To make room for a possible -Ccpt option across many modules, we let the optional alternate point be set via a modifier to -D (which sets the primary point) instead. The new parsing allows for long/lat to be given in the usual geographic syntax accepted elsewhere in GMT (i.e., ddd:mm:ssF as well as decimal).
A few concerns remain (apart from the letter used for the modifier in -D – currently +z):
Hoping @seisman can opine on these issues.