SeisComP / common

SeisComP framework C++ libraries, Python wrappers and messaging
Other
8 stars 20 forks source link

LocatorInterface question #141

Closed luca-s closed 1 week ago

luca-s commented 2 weeks ago

Dear developers,

I would like to ask about the different location methods:

virtual DataModel::Origin *locate(PickList& pickList) = 0;
virtual DataModel::Origin *locate(PickList& pickList,
                                 double initLat, double initLon, double initDepth,
                                const Core::Time &initTime) = 0;
virtual DataModel::Origin *relocate(const DataModel::Origin *origin) = 0;

What is the purpose of each method? Also, looking in the SeisComP code I could only see relocate used.

thanks Luca

gempa-jabe commented 1 week ago

There are other modules which are using the locate functions. The purpose was to let a particular locator find the best solution based on a list of picks, basically without having an origin. lambda makes use of it. Probably those functions haven't been found to be very useful in general over the years but they are still there ;)

luca-s commented 1 week ago

Thanks @gempa-jabe. I had my own idea on what should be called in a specific situation and I just wanted to double-check with you.