malcolmw / pykonal

Travel-time calculator based on the fast-marching method solution to the Eikonal equation.

Home Page:https://malcolmw.github.io/pykonal-docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggested improvement to raypath calculator

SquirrelKnight opened this issue · comments

Hi, I am currently using Pykonal to generate traveltime grids for hundreds of stations in an effort to relocate events in New Zealand. These grids are in turn being used to pinpoint likely event hypocenters from associated phase arrivals.

Overall, I am very happy with the features of this program, however I would like to accurately gauge the raypath from source to receiver with a bit more confidence. Currently, I establish the travel time grid with the source index set as the rounded receiver location. For this step, I actually compute the approximate travel time to the nearest surrounding nodes, since the receivers do not actually fall on nodes. The velocity model is fairly coarse, with 10 km spacing in X and Y directions. Because of this, there can sometimes be several kilometers between the nearest node and the actual receiver location. It would be wonderful if I could input both start and end points for the raypath, as opposed to just the end point, as I feel this would give a more accurate result (albeit not significantly different given the scale I am working at).

Hi, @SquirrelKnight,

You can use the PointSourceSolver class to achieve this. Take a look at the example in the documentation and let me know if you have any questions.

- Malcolm