Skip to content

psmeca bug, -T option  #8053

Closed
Closed

Description

@jpesicek

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

Activity

  1. added
    bug
    on Nov 21, 2023
  2. PaulWessel commented on Nov 22, 2023

    @PaulWessel
    Contributor

    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))?

  3. seisman commented on Nov 22, 2023

    @seisman
    Member

    Need to find some time to debug it.

  4. jpesicek commented on Nov 22, 2023

    @jpesicek
    Author

    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

  5. PaulWessel commented on Nov 22, 2023

    @PaulWessel
    Contributor

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

  6. PaulWessel commented on Jan 20, 2024

    @PaulWessel
    Contributor

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

  7. seisman commented on Jan 20, 2024

    @seisman
    Member

    OK, will look at it again next week.

  8. jpesicek commented on Oct 31, 2024

    @jpesicek
    Author

    Just checking in on the status of this bug, thanks

  9. jpesicek commented on Dec 23, 2024

    @jpesicek
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions