85 double *assocRange = NULL, std::string file =
"",
86 bool useForLocation =
true,
double minPublishable = 0,
87 double maxPublishable = 180);
142 double T(
double delta, std::string phase =
"P");
158 double Td(
double delta, std::string phase =
"P",
double depth = 0.0);
void setTTOrigin(double lat, double lon, double z)
Set hypocenter for calculations.
Definition: TTT.cpp:103
~CTTT()
CTTT destructor.
Definition: TTT.cpp:40
CTravelTime * m_pTravelTimes[k_iMaximumNumberOfTravelTimes]
An array of pointers to CTravelTime objects for each phase.
Definition: TTT.h:225
travel time interface class
Definition: TTT.h:25
double m_adMinimumAssociationValues[k_iMaximumNumberOfTravelTimes]
An array of doubles containing the minimum distance values for association.
Definition: TTT.h:230
bool m_bPublishable
A temporary boolean flag indicating whether this CTravelTime should be published in output messages...
Definition: TTT.h:208
double m_adMaximumAssociationValues[k_iMaximumNumberOfTravelTimes]
An array of doubles containing the maximum distance values for association.
Definition: TTT.h:235
CTTT()
CTTT constructor.
Definition: TTT.cpp:16
bool m_bUseForLocations
A temporary boolean flag indicating whether this CTravelTime should be used in generating locations...
Definition: TTT.h:202
traveltime namespace phase travel time classes and functions
double T(glass3::util::Geo *geo, std::string phase="P")
Calculate travel time in seconds.
Definition: TTT.cpp:115
std::string m_sPhase
A temporary std::std::string variable containing the phase determinedduring the last call to T() ...
Definition: TTT.h:196
geographic coordinate conversion class
Definition: geo.h:25
double Td(double delta, std::string phase="P", double depth=0.0)
Calculate travel time in seconds, setting depth.
Definition: TTT.cpp:150
static const int k_iMaximumNumberOfTravelTimes
The maximum number of supported travel times.
Definition: TTT.h:190
travel time phase class
Definition: TravelTime.h:35
static constexpr double k_dTTTooLargeToBeValid
Print Travel Times to File.
Definition: TTT.h:185
bool addPhase(std::string phase, double *assocRange=NULL, std::string file="", bool useForLocation=true, double minPublishable=0, double maxPublishable=180)
Add phase to list to be calculated.
Definition: TTT.cpp:71
void clear()
CTTT clear function.
Definition: TTT.cpp:46
glass3::util::Geo m_geoTTOrigin
glass3::util::Geo object containing current geographic location of source(as in source/receiver). Set by setOrigin()
Definition: TTT.h:214
int m_iNumTravelTimes
An integer variable containing number of CTravelTime objects in pTrv.
Definition: TTT.h:220
void writeToFiles(std::string outDir, double depth)
Write out travel times to files.
Definition: TTT.cpp:58