NordicData

Contains information relevant to NordicData header

class NordicData(data=None)

A class that functions as a collection of enums. Contains the information of the phase data line of a nordic file.

Parameters:

data (list) – The data of a nordic phase in a list where each index of a value corresponds to NordicData’s pseudo-enum. The data easily accessed with the enums provided by the class

Variables:
  • station_code (str) – Code of the station. Maximum of 4 characters
  • sp_instrument_type (str) – instrument type(S, B or L)
  • sp_component (str) – Component of the observation(Z, N or E)
  • quality_indicator (str) – Quality of the observation(I, E, etc.)
  • phase_type (str) – Phase type. (PG, SG, PN, etc). Maximum of 4 characters
  • weight (int) – Weighting indicator(1-4). 0=full weight as Hypocenter program, 9=timing error
  • first_motion (str) – First motion of the observation(C/D for clear compression/dilatation, +/- for unclear compression/dilatation).
  • observation_time (datetime) – Datetime of the pick
  • signal_duration (float) – duration of the signal from phase onset to noise as seconds
  • max_amplitude (float) – Maximum amplitude from zero to peak ground motion amplitude.
  • max_amplitude_period (float) – Period of the maximum amplitude
  • back_azimuth (float) – back azimuth of the observation as degrees
  • apparent_velocity (float) – Apparent velocity of the observation (km/s)
  • signal_to_noise (float) – signal to noise ration of the observation
  • azimuth_residual (float) – Azimuth residual of the observation in deg
  • travel_time_residual (float) – travel time residual of the observation in sec
  • location_weight (float) – Actual weight used for location
  • epicenter_distance (float) – Distance from epicenter to observation in km
  • epicenter_to_station_azimuth (float) – Epicenter-to-station azimuth as deg
  • pid (str) – persistent id of the solution to which this nordic Data is related to
  • d_id (int) – id of the NordicData in the database
  • header_type (int) – This value tells that this is a NordicData object. Value of 7
  • STATION_CODE (int) – Location of the station_code in a array. Value of 0
  • SP_INSTRUMENT_TYPE (int) – Location of the sp_instrument_type in a array. Value of 1
  • SP_COMPONENT (int) – Location of the sp_component in a array. Value of 2
  • QUALITY_INDICATOR (int) – Location of the quality_indicator in a array. Value of 3
  • PHASE_TYPE (int) – Location of the phase_type in a array. Value of 4
  • WEIGHT (int) – Location of the weight in a array. Value of 5
  • FIRST_MOTION (int) – Location of the first_motion in a array. Value of 6
  • OBSEVATION_TIME (int) – Location of the observation_time in a array. Value of 7
  • SIGNAL_DURATION (int) – Location of the signal_duration in a array. Value of 8
  • MAX_AMPLITUDE (int) – Location of the max_amplitude in a array. Value of 9
  • MAX_AMPLITUDE_PERIOD (int) – Location of the max_amplitude_period in a array. Value of 10
  • BACK_AZIMUTH (int) – Location of the back_azimuth in a array. Value of 11
  • APPARENT_VELOCITY (int) – Location of the apparent_velocity in a array. Value of 12
  • SIGNAL_TO_NOISE (int) – Location of the signal_to_noise in a array. Value of 13
  • AZIMUTH_RESIDUAL (int) – Location of the azimuth_residual in a array. Value of 14
  • TRAVEL_TIME_RESIDUAL (int) – Location of the travel_time_residual in a array. Value of 15
  • LOCATION_WEIGHT (int) – Location of the location_weight in a array. Value of 16
  • EPICENTER_DISTANCE (float) – Location of the epicenter_distance in a array. Value of 17
  • EPICENTER_TO_STATION_AZIMUTH (int) – Location of the epicenter_to_station_azimuth in a array. Value of 18
  • PID (int) – Location of the pid in a array. Value of 19
  • D_ID (int) – Location of the d_id in a array. Value of 20