NordicMain¶
This module contains all class information related to NordicMain header
Functions and Classes¶
-
class
NordicMain(header=None, error_h=None)¶ A class that functions as a collection of enums. Contains the information of the main header line of a nordic file.
Parameters: header (list) – The header of a nordic main in a list where each index of a value corresponds to NordicMain’s pseudo-enum. This data is easily accessed by it’s enums.
Variables: - origin_time (time) – Origin time of the event
- origin_date (date) – Origin date of the event
- location_model (str) – location model used for this main header or the quality indicator
- distance_indicator (str) – distance indicator of the event. L - Local, R - Regional, D - Distant
- event_desc_id (str) – Event Description id. See ‘Nordic Format’ page in the documentation for more details
- epicenter_latitude (float) – latitude coordinate of the event
- epicenter_longitude (float) – longitude coordinate of the event
- depth (float) – depth of the event
- depth_control (str) – Flag for whether the depth is fixed or not
- locating_indicator (str) – Flag for whether the depth is fixed or not
- epicenter_reporting_agency (str) – The reporting agency of the event
- stations_used (int) – How many stations were used for this analysis
- rms_time_residuals (float) – RMS of the time residuals
- magnitude_1 (float) – Magnitude of this analysis
- type_of_magnitude_1 (str) – Type of the magnitude of this analysis
- magnitude_reporting_agency_1 (str) – reporting agency of this analysis
- magnitude_2 (float) – Magnitude of an other analysis
- type_of_magnitude_2 (str) – Type of the magnitude of an other analysis
- magnitude_reporting_agency_2 (str) – Reporting agency of an other analysis
- magnitude_3 (float) – Magnitude of an other analysis
- type_of_magnitude_3 (str) – Type of the magnitude of this analysis
- magnitude_reporting_agency_3 (str) – Reporting agency of an other analysis
- pid (str) – Permanent id of this solution, in the database
- h_id (int) – id of this header in the database
- header_type (int) – This value tells that this is a NordicMain object. Value of 1
- ORIGIN_TIME (int) – Location of the date in a array. Value of 0
- ORIGIN_DATE (int) – Location of the hour in a array. Value of 1
- LOCATION_MODEL (int) – Location of the location_model in a array. Value of 2
- DISTANCE_INDICATOR (int) – Location of the distance_indicator in a array. Value of 3
- EVENT_DESC_ID (int) – Location of the event_desc_id in a array. Value of 4
- EPICENTER_LATITUDE (int) – Location of the epicenter_latitude in a array. Value of 5
- EPICENTER_LONGITUDE (int) – Location of the epicenter_longitude in a array. Value of 6
- DEPTH (int) – Location of the depth in a array. Value of 7
- DEPTH_CONTROL (int) – Location of the depth_control in a array. Value of 8
- LOCATING_INDICATOR (int) – Location of the locating_indicator in a array. Value of 9
- EPICENTER_REPORTING_AGENCY (int) – Location of the epicenter_reporting_agency in a array. Value of 10
- STATIONS_USED (int) – Location of the stations_used in a array. Value of 11
- RMS_TIME_RESIDUALS (int) – Location of the rms_time_residuals in a array. Value of 12
- MAGNITUDE_1 (int) – Location of the magnitude_1 in a array. Value of 13
- TYPE_OF_MAGNITUDE_1 (int) – Location of the type_of_magnitude_1 in a array. Value of 14
- MAGNITUDE_REPORTING_AGENCY_1 (int) – Location of the magnitude_reporting_agency_1 in a array. Value of 15
- MAGNITUDE_2 (int) – Location of the magnitude_2 in a array. Value of 16
- TYPE_OF_MAGNITUDE_2 (int) – Location of the type_of_magnitude_2 in a array. Value of 17
- MAGNITUDE_REPORTING_AGENCY_2 (int) – Location of the magnitude_reporting_agency_2 in a array. Value of 18
- MAGNITUDE_3 (int) – Location of the magnitude_3 in a array. Value of 19
- TYPE_OF_MAGNITUDE_3 (int) – Location of the type_of_magnitude_3 in a array. Value of 20
- MAGNITUDE_REPORTING_AGENCY_3 (int) – Location of the magnitude_reporting_agency_3 in a array. Value of 21
- LOCATION_PROGRAM_ID (int) – ID of location program. Refers to id in definitions table. Value of 22
- PID (int) – Location of the pid in a array. Value of 23
- ID (int) – Location of the id in a array. Value of 24