Geophysique.be has been updated to WordPress 3.5 and while the previous theme is still compatible with this new version, I’ve decided to switch to the very clean TwentyTwelve theme. This theme is completely responsive, so the site is now viewable…
Year: 2012
Easily create .kml file to plot focal mechanisms in Google Earth
Plotting focal mechanisms in Google Earth is an annoying task to do manually. I wrote a script to convert a text file to beach balls using the obspy package and then to create the corresponding KML file. Each ball is…
Breaking News: new Author !
I’m reallllly happy to say that from now on, Dimitri Kusters will also post snippets of code related to his PhD research on this Blog! Welcome!
Last Earthquakes tool – ETS powered
While in Indonesia last July, I created a small tool for the Kawah Ijen observers to allow them to search and plot teleseismic events and to calculate theoretical arrival times of the waves at the Ijen stations. It took roughly…
Matplotlib & Datetimes – Tutorial 04: Grouping & Analysing Sparse Data
To extend the previous tutorial (see here), we define a data array that has some information about the event that occurred for each datetime. The plot of data vs time now looks like: The data array is constructed with numpy.random:…
Matplotlib & Datetimes – Tutorial 03: Grouping Sparse Data
New tutorial, more advanced this time ! Let’s say we have a number of observations, like occurrences of earthquakes, or visitors connecting to a webserver, etc. These observations don’t occur every second, they are sparse on the time axis. To…
Matplotlib & Datetimes – Tutorial 02: Bar Plot
To add some interesting information to the previous tutorial, I’ve downloaded the number of licence plates given for new cars in Belgium for the same time span: 2005 587764 2006 633570 2007 644313 2008 652590 2009 571001 2010 642086 2011…
Matplotlib & Datetimes – Tutorial 01: Fuel Prices
Anyone who has played a little with dates know how painful it can be… Even more when you want to plot this data !! Matplotlib provides (link) a dates API, but to be honnest, even if the documentation is well…
R2 input/output script [aka …Use R2! (continued)]
Following a very old post (link), and questions from Matthias and Kevin, I’ve finally managed to test the R2-related scripts I wrote long-long time ago… I’m really sorry, but don’t quite have the time now to really document all functions/actions,…