|
neic-glass3
1.4.6
|
glasscore interface class More...
#include <Glass.h>

Public Member Functions | |
| CGlass () | |
| CGlass constructor. More... | |
| ~CGlass () | |
| CGlass destructor. More... | |
Static Public Member Functions | |
| static void | clear () |
| CGlass clear function. More... | |
| static bool | receiveExternalMessage (std::shared_ptr< json::Object > com) |
| CGlass communication receiving function. More... | |
| static bool | sendExternalMessage (std::shared_ptr< json::Object > com) |
| CGlass communication sending function. More... | |
| static void | setExternalInterface (glasscore::IGlassSend *newSend) |
| Sets the IGlassSend interface pointer used to send communication (such as output data), to outside the glasscore library. More... | |
| static bool | initialize (std::shared_ptr< json::Object > com) |
| CGlass initialization function. More... | |
| static bool | healthCheck () |
| check to see if each thread is still functional More... | |
| static double | getBeamMatchingAzimuthWindow () |
| Gets the azimuth window used to determine whether a beam can be matched with an existing hypo. More... | |
| static double | getBeamMatchingDistanceWindow () |
| Gets the distance window used to determine whether a beam can be matched with an existing hypo. More... | |
| static int | getCorrelationCancelAge () |
| Gets the correlation cancel age used to determine when a hypo created by a correlation can be canceled if no other supporting data exists. More... | |
| static double | getCorrelationMatchingTimeWindow () |
| Gets the time window used to determine whether a correlation can be matched with an existing hypo. More... | |
| static double | getCorrelationMatchingDistanceWindow () |
| Gets the distance window used to determine whether a correlation can be matched with an existing hypo. More... | |
| static double | getHypoMergingTimeWindow () |
| Gets the time window used to determine whether a hypo could be merged with an existing hypo. More... | |
| static double | getHypoMergingDistanceWindow () |
| Gets the distance window used to determine whether a hypo could be merged with an existing hypo. More... | |
| static double | getDistanceCutoffFactor () |
| Gets the factor used in calculating the association distance cutoff factor for pick data. More... | |
| static double | getMinDistanceCutoff () |
| Gets the minimum allowed association distance cutoff. More... | |
| static double | getDistanceCutoffRatio () |
| Gets the percentage used in calculating the association distance cutoff factor for pick data. More... | |
| static double | getReportingStackThreshold () |
| Gets the minimum bayesian stack threshold needed to report a hypo out of glass. More... | |
| static double | getNucleationStackThreshold () |
| Gets the minimum bayesian stack threshold required to nucleate an event. More... | |
| static double | getPickAffinityExpFactor () |
| Gets the exponential pick affinity factor used in association. More... | |
| static bool | getGraphicsOut () |
| Gets a flag indicating whether to produce graphics files for location tuning. More... | |
| static const std::string & | getGraphicsOutFolder () |
| Gets a string indicating the desired graphics output folder. More... | |
| static double | getGraphicsStepKm () |
| Get the size of the step used in generating graphic output files. More... | |
| static int | getGraphicsSteps () |
| Gets the number steps used in generating graphic output files. More... | |
| static int | getProcessLimit () |
| Gets the maximum number of times a hypocenter can reprocess without new data being associated to it. More... | |
| static bool | getMinimizeTTLocator () |
| Gets a flag indicating whether to use the minimizing travel time locator. More... | |
| static void | setMinimizeTTLocator (bool use) |
| Sets a flag indicating whether to use the minimizing travel time locator. More... | |
| static int | getNumStationsPerNode () |
| Get the maximum number of sites link to a node. More... | |
| static int | getNucleationDataCountThreshold () |
| Gets the minimum number of data required to nucleate an event. More... | |
| static int | getReportingDataThreshold () |
| Gets the minimum number of data required to report an event. More... | |
| static double | getPickDuplicateTimeWindow () |
| Gets the time window used when checking whether an input pick is a duplicate of a pick already in the pick list. More... | |
| static double | getAssociationSDCutoff () |
| Gets the cutoff threshold in terms of number of standard deviations for associating data (eg. Picks) with a hypocenter. The standard deviation is fixed to 1. More... | |
| static double | getPruningSDCutoff () |
| Gets the cutoff threshold in terms of number of standard deviations for pruning data (eg. Picks) from a hypocenter. The standard deviation is fixed to 1. More... | |
| static double | getNonLocatingPhaseCutoffFactor () |
| Gets the multiplicative factor used to expand the SD cutoff to keep data associated to a hypocenter when the Pick phase does not affect the location. More... | |
| static double | getTeleseismicDistanceLimit () |
| Gets the distance limit in degrees used to designate a phase as teleseismic. More... | |
| static int | getTeleseismicPhaseCountThreshold () |
| Gets the teleseismic phase count threshold. More... | |
| static bool | getTestLocator () |
| Gets a flag indicating whether to output locator testing files. More... | |
| static bool | getTestTravelTimes () |
| Gets a flag indicating whether to test travel times. More... | |
| static int | getMaxNumPicks () |
| Get the maximum number of picks to store in glass. More... | |
| static void | setMaxNumPicks (int max) |
| Set the maximum number of picks to store in glass. More... | |
| static int | getMaxNumCorrelations () |
| Get the maximum number of correlations to store in glass. More... | |
| static void | setMaxNumCorrelations (int max) |
| Set the maximum number of correlations to store in glass. More... | |
| static void | setMaxNumPicksPerSite (int max) |
| Set the maximum number of picks to store with a site. More... | |
| static int | getMaxNumHypos () |
| Get the maximum number of hypos to store in glass. More... | |
| static void | setMaxNumHypos (int max) |
| Set the maximum number of hypos to store in glass. More... | |
| static double | getEventFragmentDepthThreshold () |
| Gets the depth threshold used for declaring a hypo an event fragment, in combination with m_dEventFragmentAzimuthThreshold. More... | |
| static double | getEventFragmentAzimuthThreshold () |
| Gets the azimuth threshold used for declaring a hypo an event fragment, in combination with m_dEventFragmentDepthThreshold. More... | |
| static bool | getAllowPickUpdates () |
| Gets a boolean flag indicating whether to allow picks in the pick list to be updated. More... | |
| static double | getPickNoiseClassificationThreshold () |
| Gets the optional threshold used for accepting the classification of a pick as noise by an external algorithm. -1 indicates this feature is disabled. More... | |
| static double | getPickPhaseClassificationThreshold () |
| Gets the optional threshold used for accepting the classification of a pick phase by an external algorithm. -1 indicates this feature is disabled. More... | |
| static double | getPickDistanceClassificationThreshold () |
| Gets the optional threshold used for accepting the classification of a pick Distance by an external algorithm. -1 indicates this feature is disabled. More... | |
| static double | getDistanceClassUpperBound (double distClass) |
| Gets the upper distance bound for a given distance class. More... | |
| static double | getDistanceClassLowerBound (double distClass) |
| Gets the lower distance bound for a given distance class. More... | |
| static double | getPickAzimuthClassificationThreshold () |
| Gets the optional threshold used for accepting the classification of a pick Azimuth by an external algorithm. -1 indicates this feature is disabled. More... | |
| static double | getPickAzimuthClassificationUncertainty () |
| Gets the optional uncertainty used for accepting the classification of a pick Azimuth by an external algorithm. More... | |
| static CCorrelationList * | getCorrelationList () |
| Gets a pointer to the Correlation list. More... | |
| static CDetection * | getDetectionProcessor () |
| Gets a pointer to the CDetection object used to process detections made external to glasscore. More... | |
| static CHypoList * | getHypoList () |
| Gets a pointer to the Hypo list. More... | |
| static CPickList * | getPickList () |
| Gets a pointer to the Pick list. More... | |
| static CSiteList * | getSiteList () |
| Gets a pointer to the Site list. More... | |
| static CWebList * | getWebList () |
| Gets a pointer to the Web list. More... | |
| static std::shared_ptr< traveltime::CTravelTime > & | getDefaultNucleationTravelTime () |
| Gets the default nucleation travel time. More... | |
| static std::shared_ptr< traveltime::CTTT > & | getAssociationTravelTimes () |
| Gets the list of association travel times. More... | |
Static Public Attributes | |
| static const int | iMaxQueueLenPerThreadFactor = 10 |
| The factor used to scale thread count to implement maximum queue lengths for processing. More... | |
| static constexpr double | k_dAssociationSecondsPerSigma = 1.0 |
| The seconds per sigma value used for association, intentionally a tighter sigma value than nucleation. More... | |
| static constexpr double | k_dNucleationSecondsPerSigma = 5.0 |
| The seconds per sigma value used for nucleation, intentionally a looser sigma value than association. More... | |
| static constexpr double | k_dMaximumDepth = 800.0 |
| The maximum allowed depth. More... | |
glasscore interface class
The CGlass class is the class that sets up and maintains the glass association engine, and acts as the interface between the glasscore library and any clients.
CGlass initializes the traveltime library, allocates the site, pick, and hypo lists, creates and maintains the detection web, and manages communication between glasscore and clients via the dispatch function (receiving) and an IGlassSend interface pointer variable (sending).
CGlass also performs traveltime library testing during initialization, time encoding/decoding as well as calculating the significance functions and normal distributions as needed.
All communication (configuration, input data, or output results ) to / from CGlass is via deserialized json messages as pointers to supereasyjson json::objects.
| glasscore::CGlass::CGlass | ( | ) |
| glasscore::CGlass::~CGlass | ( | ) |
|
static |
CGlass clear function.
|
static |
Gets a boolean flag indicating whether to allow picks in the pick list to be updated.
|
static |
Gets the cutoff threshold in terms of number of standard deviations for associating data (eg. Picks) with a hypocenter. The standard deviation is fixed to 1.
|
static |
Gets the list of association travel times.
|
static |
Gets the azimuth window used to determine whether a beam can be matched with an existing hypo.
|
static |
Gets the distance window used to determine whether a beam can be matched with an existing hypo.
|
static |
Gets the correlation cancel age used to determine when a hypo created by a correlation can be canceled if no other supporting data exists.
|
static |
Gets a pointer to the Correlation list.
|
static |
Gets the distance window used to determine whether a correlation can be matched with an existing hypo.
|
static |
Gets the time window used to determine whether a correlation can be matched with an existing hypo.
|
static |
Gets the default nucleation travel time.
|
static |
Gets a pointer to the CDetection object used to process detections made external to glasscore.
|
static |
Gets the lower distance bound for a given distance class.
|
static |
Gets the upper distance bound for a given distance class.
|
static |
Gets the factor used in calculating the association distance cutoff factor for pick data.
|
static |
Gets the percentage used in calculating the association distance cutoff factor for pick data.
|
static |
Gets the azimuth threshold used for declaring a hypo an event fragment, in combination with m_dEventFragmentDepthThreshold.
|
static |
Gets the depth threshold used for declaring a hypo an event fragment, in combination with m_dEventFragmentAzimuthThreshold.
|
static |
Gets a flag indicating whether to produce graphics files for location tuning.
|
static |
Gets a string indicating the desired graphics output folder.
|
static |
Get the size of the step used in generating graphic output files.
|
static |
Gets the number steps used in generating graphic output files.
|
static |
Gets a pointer to the Hypo list.
|
static |
Gets the distance window used to determine whether a hypo could be merged with an existing hypo.
|
static |
Gets the time window used to determine whether a hypo could be merged with an existing hypo.
|
static |
Get the maximum number of correlations to store in glass.
|
static |
Get the maximum number of hypos to store in glass.
|
static |
Get the maximum number of picks to store in glass.
|
static |
Gets the minimum allowed association distance cutoff.
|
static |
Gets a flag indicating whether to use the minimizing travel time locator.
|
static |
Gets the multiplicative factor used to expand the SD cutoff to keep data associated to a hypocenter when the Pick phase does not affect the location.
|
static |
Gets the minimum number of data required to nucleate an event.
|
static |
Gets the minimum bayesian stack threshold required to nucleate an event.
|
static |
Get the maximum number of sites link to a node.
|
static |
Gets the exponential pick affinity factor used in association.
|
static |
Gets the optional threshold used for accepting the classification of a pick Azimuth by an external algorithm. -1 indicates this feature is disabled.
|
static |
Gets the optional uncertainty used for accepting the classification of a pick Azimuth by an external algorithm.
|
static |
Gets the optional threshold used for accepting the classification of a pick Distance by an external algorithm. -1 indicates this feature is disabled.
|
static |
Gets the time window used when checking whether an input pick is a duplicate of a pick already in the pick list.
|
static |
Gets a pointer to the Pick list.
|
static |
Gets the optional threshold used for accepting the classification of a pick as noise by an external algorithm. -1 indicates this feature is disabled.
|
static |
Gets the optional threshold used for accepting the classification of a pick phase by an external algorithm. -1 indicates this feature is disabled.
|
static |
Gets the maximum number of times a hypocenter can reprocess without new data being associated to it.
|
static |
Gets the cutoff threshold in terms of number of standard deviations for pruning data (eg. Picks) from a hypocenter. The standard deviation is fixed to 1.
|
static |
Gets the minimum number of data required to report an event.
|
static |
Gets the minimum bayesian stack threshold needed to report a hypo out of glass.
|
static |
Gets a pointer to the Site list.
|
static |
Gets the distance limit in degrees used to designate a phase as teleseismic.
|
static |
Gets the teleseismic phase count threshold.
|
static |
Gets a flag indicating whether to output locator testing files.
|
static |
Gets a flag indicating whether to test travel times.
|
static |
Gets a pointer to the Web list.
|
static |
check to see if each thread is still functional
Checks each thread to see if it is still responsive.
|
static |
CGlass initialization function.
The function used by CGlass to initialize the glasscore library. This function loads the earth model, sets the association parameters, sets up the ray path calculator, creates the detection web configures and tests the phase and branch travel times used for association, creates the pick, site, and hypo lists, and sets up the output format
| com | - A pointer to a json::object containing the configuration to use in initialization. |
|
static |
CGlass communication receiving function.
The function used by CGlass to receive communication (such as configuration or input data), from outside the glasscore library.
CGlass will forward the communication on to the pick, site, or hypo lists, or the detection web if CGlass cannot use the communication.
| com | - A pointer to a json::object containing the communication. |
|
static |
CGlass communication sending function.
The function used by CGlass to send communication (such as output data), to outside the glasscore library using an IGlassSend interface pointer.
| com | - A pointer to a json::object containing the communication. |
|
static |
Sets the IGlassSend interface pointer used to send communication (such as output data), to outside the glasscore library.
| newSend | - A pointer to a glasscore::IGlassSend interrace to use to send communication (such as output data), to outside the glasscore library |
|
static |
Set the maximum number of correlations to store in glass.
| max | - an integer containing the maximum number of correlations |
|
static |
Set the maximum number of hypos to store in glass.
| max | - an integer containing the maximum number of hypos |
|
static |
Set the maximum number of picks to store in glass.
| max | - an integer containing the maximum number of picks |
|
static |
Set the maximum number of picks to store with a site.
| max | - an integer containing the maximum number of picks to store with a site |
|
static |
Sets a flag indicating whether to use the minimizing travel time locator.
| use | - A boolean flag indicating whether to use the minimizing travel time locator |
|
static |
The factor used to scale thread count to implement maximum queue lengths for processing.
|
static |
The seconds per sigma value used for association, intentionally a tighter sigma value than nucleation.
|
static |
The maximum allowed depth.
|
static |
The seconds per sigma value used for nucleation, intentionally a looser sigma value than association.
1.8.11