Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source receiver maps do not plot without valid depth and magnitude #103

Open
bch0w opened this issue Mar 9, 2023 · 0 comments
Open

Source receiver maps do not plot without valid depth and magnitude #103

bch0w opened this issue Mar 9, 2023 · 0 comments
Labels

Comments

@bch0w
Copy link
Member

bch0w commented Mar 9, 2023

The source receiver map function uses ObsPy Catalog.plot() function to plot the event. However if the Event object does not have a valid depth and magnitude, the plot function fails. However, as mentioned in #71, these values are sometimes unknown and are anyways not critical for the PySEP data gathering routines.

To skirt around this, we can replace the Catalog plot function with a simple ax.scatter() for the event, since its just a single point. Two things that would need to be determined on the fly are 1. where is it plotted (by converting the geographic coordinate into the Cartopy domain), and 2. how large the scatter point should be.

@bch0w bch0w added the bug label Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant