To fetch and display the seismic record I am using the javascript library published on github by Philip Crotwell. (I was quite delighted when I found this library, even more delighted when I got it to work). https://github.com/crotwell/seisplotjs-waveformplot. (Might be useful to add this to the tools4programmers section of the user guide)
There is obviously a lot of things that could be done with this site. I would love to be able to apply a frequency filter to the output, but haven't had a chance to investigate options for doing this. My site is hosted by an ISP that supports PHP, but I don't think they support python. Hence one of the drivers for taking the approach I have. I think the way I call the JS function is a bit clumsy and could be a lot more elegant.
My code is a bit rough, but I am happy to share any of it if anybody is interested. Thanks again to the Raspberry Shake team at OSOP and gempa GmbH. Thanks also to Philip Crotwell for publishing his JS library and making it available for use.
Glad to hear my code is useful. While using the seisplotjs-waveformplot
directly as you have is likely the easiest, you may wish to use seisplotjs,
which is a umbrella project that pulls in seisplotjs-waveformplot plus lots
of other useful things and so would be easier if you want to do more
advanced things like filtering within your own javascript code.
https://github.com/crotwell/seisplotjs
Also included in this (and available separately) is seisplotjs-filter for
basic waveform filtering, and seisplotjs-traveltime that queries the IRIS
traveltime web service (which internally uses my java travel time
calculator, TauP) as well as seisplotjs-distaz which will do the spherical
distance calculations without a web call and seisplotjs-fdsnevent that
queries a web service for event parameters. There are others as well, so
anything in my github that starts with "seisplotjs-" is (or will be) part
of this. Here are a bunch of links for your clicking pleasure...
https://github.com/crotwell/seisplotjs-filter
https://github.com/crotwell/seisplotjs-traveltime
https://github.com/crotwell/seisplotjs-distaz
https://github.com/crotwell/seisplotjs-fdsnevent
Also some of the examples that may be useful are here. This should be the
same as the corresponding github code, just with the dependencies and so
runnable:
http://www.seis.sc.edu/~crotwell/seisplotjs_demo
All free for reuse, but under active development so expect missing
documentation, wrong examples and probably lots of changes as I improve it,
:) but I hope it will be useful. The goal is to eventually be able to do
basic seismic data processing in the browser without relying on any
server-side coding.
Comments welcome.
thanks
Philip
Notice: Trying to get property of non-object in C:\Tools\wamp64\www\earthquakes\quakes.php
on line 60
Warning: Invalid argument supplied for foreach() in C:\Tools\wamp64\www\earthquakes\quakes.php
on line 60
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean
given in C:\Tools\wamp64\www\earthquakes\quakes.php on line 117
Notice: Undefined variable: id in C:\Tools\wamp64\www\earthquakes\quakes.php
on line 145
--
Some useful links:
Manual: http://manual.raspberryshake.org/
Do It YourSelf Page: http://raspberryshake.org/do-it-yourself
Shop: https://shop.raspberryshake.org/
Website: http://raspberryshake.org/
Instagram: https://www.instagram.com/raspishake/
Facebook: https://www.facebook.com/raspishake/
Twitter: https://twitter.com/raspishake/
Hashtag: #rasperryshake
---
You received this message because you are subscribed to the Google Groups "RaspberryShake" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raspberryshake+unsubscribe@googlegroups.com.
To post to this group, send email to raspberryshake@googlegroups.com.
Visit this group at https://groups.google.com/group/raspberryshake.
To view this discussion on the web visit https://groups.google.com/d/msgid/raspberryshake/07ccfeae-d595-4d9c-bc9d-52fdb434f6e9%40googlegroups.com.
I noticed the wave form no longer shows in this script.
Hi,
Being in an intra-plate area, most of the earthquakes I can detect on my Raspberry Shake are regional and teleseismic events, hence a filtered waveform is important to remove cultural noise.
With this in mind, I have modified the code for Gerard’s personal webpage, to show a filtered waveform underneath the raw waveform. The filter uses the code that Philip Crotwell describes in this post.
For example the attached screen shot shows a 6.5 event that can't be identified on the raw waveform, but can be seen on the filtered waveform.
I have uploaded the instructions to update Gerard’s and Philip’s code to the github site:
https://github.com/raspishake/plot_filtered_waveform_on_personal_website
I am not a programmer, so the modifications might not be very elegant, but it seems to work. Thanks to Gerard and Philip for providing the base code.
Regards, Alan
--
Some useful links:
Manual: http://manual.raspberryshake.org/
Do It YourSelf Page: http://raspberryshake.org/do-it-yourself
Shop: https://shop.raspberryshake.org/
Website: http://raspberryshake.org/
Instagram: https://www.instagram.com/raspishake/
Facebook: https://www.facebook.com/raspishake/
Twitter: https://twitter.com/raspishake/
Hashtag: #rasperryshake, @raspishake
DOI: https://doi.org/10.7914/SN/AM
---
You received this message because you are subscribed to the Google Groups "RaspberryShake" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raspberryshake+unsubscribe@googlegroups.com.
To post to this group, send email to raspberryshake@googlegroups.com.
Visit this group at https://groups.google.com/group/raspberryshake.
To view this discussion on the web visit https://groups.google.com/d/msgid/raspberryshake/ea085dbf-eaf9-499c-9947-d13359673323%40googlegroups.com.
Gerard
To fetch and display the seismic record I am using the javascript library published on github by Philip Crotwell. (I was quite delighted when I found this library, even more delighted when I got it to work). https://github.com/crotwell/seisplotjs-waveformplot. (Might be useful to add this to the tools4programmers section of the user guide)
--
Some useful links:
Manual: http://manual.raspberryshake.org/
Do It YourSelf Page: http://raspberryshake.org/do-it-yourself
Shop: https://shop.raspberryshake.org/
Website: http://raspberryshake.org/
Instagram: https://www.instagram.com/raspishake/
Facebook: https://www.facebook.com/raspishake/
Twitter: https://twitter.com/raspishake/
Hashtag: #rasperryshake, @raspishake
DOI: https://doi.org/10.7914/SN/AM
---
You received this message because you are subscribed to the Google Groups "RaspberryShake" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raspberryshake+unsubscribe@googlegroups.com.
To post to this group, send email to raspberryshake@googlegroups.com.
Visit this group at https://groups.google.com/group/raspberryshake.
To view this discussion on the web visit https://groups.google.com/d/msgid/raspberryshake/98c06bb4-305d-4c3e-b50d-50a825520311%40googlegroups.com.
--
Some useful links:
Manual: http://manual.raspberryshake.org/
Do It YourSelf Page: http://raspberryshake.org/do-it-yourself
Shop: https://shop.raspberryshake.org/
Website: http://raspberryshake.org/
Instagram: https://www.instagram.com/raspishake/
Facebook: https://www.facebook.com/raspishake/
Twitter: https://twitter.com/raspishake/
Hashtag: #rasperryshake, @raspishake
DOI: https://doi.org/10.7914/SN/AM
---
You received this message because you are subscribed to a topic in the Google Groups "RaspberryShake" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/raspberryshake/Iv21zaknLnw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to raspberryshake+unsubscribe@googlegroups.com.
To post to this group, send email to raspberryshake@googlegroups.com.
Visit this group at https://groups.google.com/group/raspberryshake.
To view this discussion on the web visit https://groups.google.com/d/msgid/raspberryshake/7b069ac4-41d5-4098-bb9e-fa35702809c8%40googlegroups.com.