Install SeisComP and scanloc ARM64 nightly packages
This commit is contained in:
@ -48,8 +48,8 @@
|
||||
weight but flags to enable/disable the time, backazimuth and/or slowness
|
||||
*/
|
||||
|
||||
namespace Seiscomp{
|
||||
namespace Seismology{
|
||||
namespace Seiscomp {
|
||||
namespace Seismology {
|
||||
|
||||
|
||||
class PickNotFoundException;
|
||||
@ -70,6 +70,60 @@ class SC_SYSTEM_CORE_API SensorLocationDelegate : public Core::BaseObject {
|
||||
|
||||
DEFINE_SMARTPOINTER(LocatorInterface);
|
||||
|
||||
|
||||
/**
|
||||
* @brief The LocatorInterface class defines an abstract interface to
|
||||
* various locators such as LOCSAT, Hypo71 or NonLinLoc.
|
||||
*
|
||||
* An instance of an implementation of this class must be reentrant, meaning
|
||||
* that two instances are not interfering with each other when either used
|
||||
* from within different threads or interleaved. The requirement is illustrated
|
||||
* in the following code:
|
||||
*
|
||||
* @code
|
||||
* // Run two instances in one thread
|
||||
* Locator l1, l2;
|
||||
* l1.init(cfg);
|
||||
* l2.init(cfg);
|
||||
* l1.setProfile("profile1");
|
||||
* l2.setProfile("profile2");
|
||||
* org1 = l1.locate(org1);
|
||||
* org2 = l2.locate(org2);
|
||||
@ @endcode
|
||||
*
|
||||
* This code must produce the exactly same output as
|
||||
*
|
||||
* @code
|
||||
* Locator l1, l2;
|
||||
* l1.init(cfg);
|
||||
* l1.setProfile("profile1");
|
||||
* org1 = l1.locate(org1);
|
||||
*
|
||||
* l2.init(cfg);
|
||||
* l2.setProfile("profile2");
|
||||
* org2 = l2.locate(org2);
|
||||
* @endcode
|
||||
*
|
||||
* Involving threads looks like this
|
||||
*
|
||||
* @code
|
||||
* void locate() {
|
||||
* Locator l;
|
||||
* l.init(cfg);
|
||||
* l.setProfile("someProfile");
|
||||
* org = l.locate(org);
|
||||
* }
|
||||
*
|
||||
* thread1 = thread(locate);
|
||||
* thread2 = thread(locate);
|
||||
* thread1.join();
|
||||
* thread2.join();
|
||||
* @endcode
|
||||
*
|
||||
* Note that this does not require the code to be thread-safe. Calling
|
||||
* locate() on the same instance from within two different threads is not
|
||||
* required to work.
|
||||
*/
|
||||
class SC_SYSTEM_CORE_API LocatorInterface : public Core::BaseObject {
|
||||
public:
|
||||
MAKEENUM(
|
||||
|
||||
@ -24,6 +24,7 @@
|
||||
|
||||
#include <seiscomp/core.h>
|
||||
#include <seiscomp/geo/feature.h>
|
||||
#include <seiscomp/geo/featureset.h>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@ -35,7 +36,7 @@ class SC_SYSTEM_CORE_API PolyRegions {
|
||||
public:
|
||||
PolyRegions() = default;
|
||||
PolyRegions(const std::string &location);
|
||||
~PolyRegions();
|
||||
~PolyRegions() = default;
|
||||
|
||||
public:
|
||||
void print();
|
||||
@ -53,10 +54,7 @@ class SC_SYSTEM_CORE_API PolyRegions {
|
||||
const std::string& dataDir() const { return _dataDir; }
|
||||
|
||||
private:
|
||||
bool readFepBoundaries(const std::string& filename);
|
||||
|
||||
private:
|
||||
std::vector<GeoFeature*> _regions;
|
||||
GeoFeatureSet _regions;
|
||||
std::string _dataDir;
|
||||
};
|
||||
|
||||
|
||||
@ -85,10 +85,10 @@ class SC_SYSTEM_CORE_API TravelTime {
|
||||
*/
|
||||
class SC_SYSTEM_CORE_API TravelTimeList : public std::list<TravelTime> {
|
||||
public:
|
||||
bool isEmpty() { return size()==0; } // XXX temporary hack
|
||||
|
||||
bool isEmpty() { return empty(); }
|
||||
void sortByTime();
|
||||
|
||||
public:
|
||||
double depth, delta;
|
||||
};
|
||||
|
||||
@ -215,24 +215,24 @@ class SC_SYSTEM_CORE_API TravelTimeTable : public TravelTimeTableInterface {
|
||||
|
||||
|
||||
public:
|
||||
bool setModel(const std::string &model);
|
||||
const std::string &model() const;
|
||||
bool setModel(const std::string &model) override;
|
||||
const std::string &model() const override;
|
||||
|
||||
TravelTimeList *
|
||||
compute(double lat1, double lon1, double dep1,
|
||||
double lat2, double lon2, double elev2 = 0.,
|
||||
int ellc = 1);
|
||||
int ellc = 1) override;
|
||||
|
||||
TravelTime
|
||||
compute(const char *phase,
|
||||
double lat1, double lon1, double dep1,
|
||||
double lat2, double lon2, double elev2 = 0.,
|
||||
int ellc = 1);
|
||||
int ellc = 1) override;
|
||||
|
||||
TravelTime
|
||||
computeFirst(double lat1, double lon1, double dep1,
|
||||
double lat2, double lon2, double elev2 = 0.,
|
||||
int ellc = 1);
|
||||
int ellc = 1) override;
|
||||
|
||||
private:
|
||||
static TravelTimeTableInterfacePtr _interface;
|
||||
@ -242,19 +242,28 @@ class SC_SYSTEM_CORE_API TravelTimeTable : public TravelTimeTableInterface {
|
||||
|
||||
// Some helpers
|
||||
|
||||
/**
|
||||
* @brief Returns the travel time ellipticity correction in seconds.
|
||||
* @param phase The phase code
|
||||
* @param lat1 Source latitude in degrees
|
||||
* @param lon1 Source longitude in degrees
|
||||
* @param depth Source depth in km
|
||||
* @param lat2 Receiver latitude in degrees
|
||||
* @param lon2 Receiver longitude in degrees
|
||||
* @return Correction in seconds
|
||||
*/
|
||||
SC_SYSTEM_CORE_API
|
||||
bool ellipcorr(const std::string &phase,
|
||||
double lat1, double lon1,
|
||||
double lat2, double lon2,
|
||||
double depth, double &corr);
|
||||
double ellipticityCorrection(const std::string &phase,
|
||||
double lat1, double lon1, double depth,
|
||||
double lat2, double lon2);
|
||||
|
||||
// Retrieve traveltime for the specified phase. Returns true if phase was
|
||||
// found, false otherwise.
|
||||
SC_SYSTEM_CORE_API
|
||||
const TravelTime* getPhase(const TravelTimeList *, const std::string &phaseCode);
|
||||
const TravelTime *getPhase(const TravelTimeList *, const std::string &phaseCode);
|
||||
|
||||
SC_SYSTEM_CORE_API
|
||||
const TravelTime* firstArrivalP(const TravelTimeList *);
|
||||
const TravelTime *firstArrivalP(const TravelTimeList *);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ class SC_SYSTEM_CORE_API LibTau : public TravelTimeTableInterface {
|
||||
* Construct a TravelTimeTable object for the specified model.
|
||||
* Currently only "iasp91" is supported.
|
||||
*/
|
||||
LibTau();
|
||||
LibTau() = default;
|
||||
~LibTau();
|
||||
|
||||
LibTau(const LibTau &other);
|
||||
@ -69,9 +69,6 @@ class SC_SYSTEM_CORE_API LibTau : public TravelTimeTableInterface {
|
||||
|
||||
/**
|
||||
* Compute the traveltime(s) for the branch selected using setBranch()
|
||||
* @param dep1 The source depth in km
|
||||
*
|
||||
* @returns A TravelTimeList of travel times sorted by time.
|
||||
*
|
||||
* It should be noted that in this implementation it is extremely
|
||||
* important to compute as many travel times for the same focal
|
||||
@ -79,29 +76,38 @@ class SC_SYSTEM_CORE_API LibTau : public TravelTimeTableInterface {
|
||||
* the time-consuming re-computation of some internal tables,
|
||||
* which can be avoided by as many consecutive compute() calls as
|
||||
* possible, for the same depth.
|
||||
*
|
||||
* XXX However:
|
||||
* XXX NEITHER ellipticity NOR altitude correction is currently
|
||||
* XXX implemented! The respective parameters are ignored.
|
||||
* @param lat1 The source latitude in degrees
|
||||
* @param lon1 The source longitude in degrees
|
||||
* @param dep1 The source depth in km
|
||||
* @param lat2 The receiver latitude in degrees
|
||||
* @param lon2 The receiver longitude in degrees
|
||||
* @param elev2 The receiver elevation in meter.
|
||||
* Elevation correction is not implemented and this
|
||||
* parameter is ignored.
|
||||
* @param ellc Toggle earth ellipticity correction.
|
||||
* @returns A TravelTimeList of travel times sorted by time.
|
||||
*/
|
||||
TravelTimeList *compute(double lat1, double lon1, double dep1,
|
||||
double lat2, double lon2, double alt2 = 0.,
|
||||
double lat2, double lon2, double elev2 = 0.,
|
||||
int ellc = 1) override;
|
||||
|
||||
|
||||
/**
|
||||
* Compute the traveltime for the branch selected using setBranch()
|
||||
* and the first (fastest) phase.
|
||||
* @param lat1 The source latitude in degrees
|
||||
* @param lon1 The source longitude in degrees
|
||||
* @param dep1 The source depth in km
|
||||
*
|
||||
* @param lat2 The receiver latitude in degrees
|
||||
* @param lon2 The receiver longitude in degrees
|
||||
* @param elev2 The receiver elevation in meter.
|
||||
* Elevation correction is not implemented and this
|
||||
* parameter is ignored.
|
||||
* @param ellc Toggle earth ellipticity correction.
|
||||
* @returns A TravelTime
|
||||
*
|
||||
* XXX However:
|
||||
* XXX NEITHER ellipticity NOR altitude correction is currently
|
||||
* XXX implemented! The respective parameters are ignored.
|
||||
*/
|
||||
TravelTime computeFirst(double lat1, double lon1, double dep1,
|
||||
double lat2, double lon2, double alt2 = 0.,
|
||||
double lat2, double lon2, double elev2 = 0.,
|
||||
int ellc = 1) override;
|
||||
|
||||
|
||||
@ -117,12 +123,11 @@ class SC_SYSTEM_CORE_API LibTau : public TravelTimeTableInterface {
|
||||
|
||||
void initPath(const std::string &model);
|
||||
|
||||
libtau _handle;
|
||||
|
||||
double _depth;
|
||||
std::string _model;
|
||||
|
||||
bool _initialized;
|
||||
libtau _handle;
|
||||
double _depth{-1};
|
||||
std::string _model;
|
||||
bool _initialized{false};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user