|
neic-glass3
1.4.6
|
glassutil zonestats class More...
#include <ZoneStats.h>

Public Member Functions | |
| CZoneStats () | |
| CZoneStats constructor. More... | |
| ~CZoneStats () | |
| CZoneStats destructor. More... | |
| virtual bool | setup (const std::string *pConfigFileName) |
| CZoneStats configuration function. More... | |
| virtual void | clear () |
| CZoneStats clear function. More... | |
| const ZoneStatsInfoStruct * | getZonestatsInfoForLatLon (double dLat, double dLon) |
| CZoneStats retrieval function. More... | |
| float | getMaxDepthForLatLon (double dLat, double dLon) |
| Max Depth retrieval function. More... | |
| float | getRelativeObservabilityOfSeismicEventsAtLocation (double dLat, double dLon) |
| relative observability retrieval function More... | |
Static Public Attributes | |
| static const char * | szLatGridBinSize = "LatGridBinSize" |
| A const char array representing the Lat grid bin string size. More... | |
| static const char * | szLonGridBinSize = "LonGridBinSize" |
| A const char array representing the Lon grid bin string size. More... | |
| static const char * | szLatLonHeader = "LAT LON " |
| A const char array representing the Lat/Lon header string size. More... | |
| static const int | nNumExpectedFields = 9 |
| An integer constant containing the number of fields for parsing. More... | |
| static const int | iParseStateGetSZRecords = 3 |
| An integer constant defining the state for getting sz records. More... | |
| static const int | iParseStateGetLatGBS = 0 |
| An integer constant defining the state for getting lat gbs. More... | |
| static const int | iParseStateGetLonGBS = 1 |
| An integer constant defining the state for getting lon gbs. More... | |
| static const int | iParseStateGetRecordHeader = 2 |
| An integer constant defining the state for getting the record header. More... | |
| static const float | depthInvalid = -999.0 |
| A float constant containing the invalid depth value. More... | |
Protected Attributes | |
| std::vector< ZoneStatsInfoStruct > | m_vZSData |
| a std::vector of ZoneStatsInfoStruct's containing the zone stats information More... | |
| int | m_nTotalNumEvents |
| An integer containing the total number of events in the zone stats information. More... | |
| double | m_dAvgObservabilityPerBin |
| A double containing the average observability per bin. More... | |
| float | fLatBinSizeDeg |
| A float containing the laititude bin size in degrees. More... | |
| float | fLonBinSizeDeg |
| A float containing the longitude bin size in degrees. More... | |
| ZoneStatsInfoStruct | m_ZSDefault |
| a ZoneStatsInfoStruct containing the default zone stats information More... | |
glassutil zonestats class
The CZonestats class encapsulates the logic and functionality needed to load and serve zone statistics for historical seismic events
| traveltime::CZoneStats::CZoneStats | ( | ) |
CZoneStats constructor.
The constructor for the CZoneStats class.
| traveltime::CZoneStats::~CZoneStats | ( | ) |
CZoneStats destructor.
The destructor for the CZoneStats class.
|
virtual |
CZoneStats clear function.
The clear function for the CZoneStats class. Clears all zonestats info.
| float traveltime::CZoneStats::getMaxDepthForLatLon | ( | double | dLat, |
| double | dLon | ||
| ) |
Max Depth retrieval function.
This function gets the maximum depth for a given latitude and longitude
| dLat | - A double containing the latitude to use |
| dLon | - A double containing the longitude to use |
| float traveltime::CZoneStats::getRelativeObservabilityOfSeismicEventsAtLocation | ( | double | dLat, |
| double | dLon | ||
| ) |
relative observability retrieval function
This function gets the relative observability for a given latitude and longitude
| dLat | - A double containing the latitude to use |
| dLon | - A double containing the longitude to use |
| const ZoneStatsInfoStruct * traveltime::CZoneStats::getZonestatsInfoForLatLon | ( | double | dLat, |
| double | dLon | ||
| ) |
CZoneStats retrieval function.
This function gets the zone stats information for a given latitude and longitude
| dLat | - A double containing the latitude to use |
| dLon | - A double containing the longitude to use |
|
virtual |
CZoneStats configuration function.
This function configures the CZoneStats class
| pConfigFileName | - A pointer to the config filename, from which to read zonestats info. |
|
static |
A float constant containing the invalid depth value.
|
protected |
A float containing the laititude bin size in degrees.
|
protected |
A float containing the longitude bin size in degrees.
|
static |
An integer constant defining the state for getting lat gbs.
|
static |
An integer constant defining the state for getting lon gbs.
|
static |
An integer constant defining the state for getting the record header.
|
static |
An integer constant defining the state for getting sz records.
|
protected |
A double containing the average observability per bin.
|
protected |
An integer containing the total number of events in the zone stats information.
|
protected |
a std::vector of ZoneStatsInfoStruct's containing the zone stats information
|
protected |
a ZoneStatsInfoStruct containing the default zone stats information
|
static |
An integer constant containing the number of fields for parsing.
|
static |
A const char array representing the Lat grid bin string size.
|
static |
A const char array representing the Lat/Lon header string size.
|
static |
A const char array representing the Lon grid bin string size.
1.8.11