gmt icon indicating copy to clipboard operation
gmt copied to clipboard

psmeca bug, -T option

Open jpesicek opened this issue 2 years ago • 8 comments

Description of the problem

when plotting focal mechanisms with psmeca and the -T option, nodal planes sometimes plot incompletely and/or outside the circle. One example below:

Full script that generated the error

echo 2 2 0 151.71 75.00 180.00 5 | gmt psmeca -JX10 -R0/4/0/4 -Sa10 -N -: -L -T > plot.ps

Actual outcome

line plots outside circle

Expected outcome

if you remove the -T option, the plot behaves as expected

System information

  • Operating system: macOS
  • GMT version (gmt --version): 6.4.0

jpesicek avatar Nov 21 '23 19:11 jpesicek

Confirmed. Looks like a problem with exactly 180. Both 179.xxx and 180.xxx seems to work. @seisman, any thoughts on why 180 "blows up" somewhat? The French code must do something like divide by zero (sin (180))?

PaulWessel avatar Nov 22 '23 15:11 PaulWessel

Need to find some time to debug it.

seisman avatar Nov 22 '23 16:11 seisman

one more:

echo 2 2 0 80.00 90.00 -140.00 5 | gmt psmeca -JX10 -R0/4/0/4 -Sa10 -N -: -L -T > plot2.ps

jpesicek avatar Nov 22 '23 16:11 jpesicek

This time it is the "90.00" that cause trouble, it seems.

PaulWessel avatar Nov 22 '23 18:11 PaulWessel

Ping @seisman on this again? Gotta be something dumb like sin(180) and then divide by it?

PaulWessel avatar Jan 20 '24 12:01 PaulWessel

OK, will look at it again next week.

seisman avatar Jan 20 '24 14:01 seisman

Just checking in on the status of this bug, thanks

jpesicek avatar Oct 31 '24 17:10 jpesicek

another note that when I use gmt4, the lines are plotted correctly

jpesicek avatar Dec 23 '24 19:12 jpesicek