eqcorrscan / EQcorrscan

Earthquake detection and analysis in Python.
https://eqcorrscan.readthedocs.io/en/latest/
Other
163 stars 86 forks source link

Animation and plot of location #365

Closed ikahbasi closed 4 years ago

ikahbasi commented 4 years ago

Is your feature request related to a problem? Please describe. No. After detecting and locating new earthquakes It will be good to plot them to observe and explore it to find some pattern if there is any. Some functions like threeD_seismplot are good to make visual exploration. But It is not enough.

Describe the solution you'd like I think we need some more functions to plot and see the results of the locations. Something like 2D-plot of latitude and longitude with color mapping related to depth or make 2D-animations to plot epicenters related to origin times and with color mapping related to origin time or depth. I wrote some codes to provide these features. I can transform these codes to functions and add them to this module if you would like. Would you like to accept these?

Additional context Color mapping respected to depth and longitude and latitude: depth

Color mapping respected to origin time: time

Animations of above plots: https://www.dropbox.com/sh/tvqli5kqvez0fql/AAB8PppHUHYO0E8lFU8O-Mjna?dl=0

ikahbasi commented 4 years ago

of course I should work on the time-dependent plot more. Currently, this plot depicts according to the occurring sequence and intervals are considered equal. It is better to depict according to origin time.

calum-chamberlain commented 4 years ago

Have you looked at obspy catalog plotting? It sounds like most of what you want is there.

CJ Chamberlain, out of office


From: iman kahbasi notifications@github.com Sent: Saturday, December 14, 2019 10:23:07 PM To: eqcorrscan/EQcorrscan EQcorrscan@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [eqcorrscan/EQcorrscan] Animation and plot of location (#365)

of course I should work on the time-dependent plot more. Currently, this plot depicts according to the occurring sequence and intervals are considered equal. It is better to depict according to origin time.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feqcorrscan%2FEQcorrscan%2Fissues%2F365%3Femail_source%3Dnotifications%26email_token%3DACTIM47LONWOMGP3R64SRSDQYXEMXA5CNFSM4J24QXH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG4SMBQ%23issuecomment-565782022&data=02%7C01%7Ccalum.chamberlain%40vuw.ac.nz%7C46f02f319bbb43f711e708d781274190%7Ccfe63e236951427e8683bb84dcf1d20c%7C0%7C0%7C637119877995588810&sdata=n7%2BtJUmNQe5drNbXHLSBsy1iW1E2qfzO5%2FD8NExPJKI%3D&reserved=0, or unsubscribehttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACTIM44KZOE5E7S552MXDRDQYXEMXANCNFSM4J24QXHQ&data=02%7C01%7Ccalum.chamberlain%40vuw.ac.nz%7C46f02f319bbb43f711e708d781274190%7Ccfe63e236951427e8683bb84dcf1d20c%7C0%7C0%7C637119877995588810&sdata=LehQEK6ck9tEfOb3H%2FUmGVHGU%2BD%2BaKdAtqf%2BI9EkNQk%3D&reserved=0.

ikahbasi commented 4 years ago

Yes, I saw that. But it's not the same as what I want.

In obspy catalog plotting we can't change marker and marker size, I think it's good for plotting a few number of events but it's not good in case of too many events. In obspy the events overlap and we can't find density of them.

Obspy doesn't make cross section of events. It's very useful to make inspection and interpretation.

Obspy can't make animation of occurring events. I think it's very interesting and useful specially in case of presentation and maybe in interpretation.

Obspy uses catalog, but output of some software like Hypoellipse, perform the text file catalog. then it's good to have some functions that take only coordination of points with optional time.

Obspy depends on the Basemap, but mine simply uses matplotlib.

calum-chamberlain commented 4 years ago

Fair enough. I do think that if you are going to do this then it would be worth using some projection to make sense of lat/long.

I have written some animation tools, but kept them elsewhere, I can point you to them later.

RE: output of other tools, the correct thing to do would be to write a tool to read those into an obspy catalog so that you can associate all metadata correctly.

calum-chamberlain commented 4 years ago

Oh also, people don't seem to like rainbow color palettes, it would be worth using something color blind friendly.

ikahbasi commented 4 years ago

Oh also, people don't seem to like rainbow color palettes, it would be worth using something color blind friendly.

Ok, it can change. I would like to catch the results like "Shelly ,Ellsworth and Hill-2016" and "Shelly and Hardebeck 2019". It's very interesting and clear. But mine is not as clear as those plot with high contrast. I would like to use color palettes that make difference between range of different states. I explore to find better color palettes in this case.

ikahbasi commented 4 years ago

I do think that if you are going to do this then it would be worth using some projection to make sense of lat/long.

Because of my study is on the small area, I put and labeled latitude and longitude in Cartesian coordinate system as you can see, It makes too small error in small area specially in case of showing the results. But you are right, I'll work on it.

I have written some animation tools, but kept them elsewhere, I can point you to them later.

It shows your affection.

calum-chamberlain commented 4 years ago

Sounds good - looking forward to seeing a PR! Can you try to use the same plotting arguments as in the plotting module, using the _finalize_plot (or whatever it is called) function for the save, etc. arguments please as well. :+1:

calum-chamberlain commented 4 years ago

By the way, my version of catalog animation is here - I use this bitbucket for all my misc code that I want to re-use but doesn't really fit with another project...

ikahbasi commented 4 years ago

By the way, my version of catalog animation is here - I use this bitbucket for all my misc code that I want to re-use but doesn't really fit with another project...

your link doesn't work unfortunately.

calum-chamberlain commented 4 years ago

Strange, works for me.