Table Definitions

class msnoise.msnoise_table_def.Filter(**kwargs)

Filter base class.

Parameters:
  • ref (int) – The id of the Filter in the database

  • low (float) – The lower frequency bound of the Whiten function (in Hz)

  • high (float) – The upper frequency bound of the Whiten function (in Hz)

  • mwcs_low (float) – The lower frequency bound of the linear regression done in MWCS (in Hz)

  • mwcs_high (float) – The upper frequency bound of the linear regression done in MWCS (in Hz)

  • mwcs_wlen (float) – Window length (in seconds) to perform MWCS

  • mwcs_step (float) – Step (in seconds) of the windowing procedure in MWCS

  • used (bool) – Is the filter activated for the processing

Attributes:
high
low
mwcs_high
mwcs_low
mwcs_step
mwcs_wlen
ref
used
class msnoise.msnoise_table_def.Job(day, pair, jobtype, flag, lastmod=datetime.datetime(2024, 9, 18, 17, 16, 50, 754819))

Job Object

Parameters:
  • ref (int) – The Job ID in the database

  • day (str) – The day in YYYY-MM-DD format

  • pair (str) – the name of the pair (EXAMPLE?)

  • jobtype (str) – CrossCorrelation (CC) or dt/t (DTT) Job?

  • flag (str) – Status of the Job: “T”odo, “I”n Progress, “D”one.

Attributes:
day
flag
jobtype
lastmod
pair
ref
class msnoise.msnoise_table_def.Station(*args)

Station Object

Parameters:
  • ref (int) – The Station ID in the database

  • net (str) – The network code of the Station

  • sta (str) – The station code

  • X (float) – The X coordinate of the station

  • Y (float) – The Y coordinate of the station

  • altitude (float) – The altitude of the station

  • coordinates (str) – The coordinates system. “DEG” is WGS84 latitude/ longitude in degrees. “UTM” is expressed in meters.

  • instrument (str) – The instrument code, useful with PAZ correction

  • used (bool) – Whether this station must be used in the computations.

Attributes:
X
Y
altitude
coordinates
net
ref
sta
used
used_channel_names
used_location_codes

Methods

chans

locs

class msnoise.msnoise_table_def.Config(name, value)

Config Object

Parameters:
  • name (str) – The name of the config bit to set.

  • value (str) – The value of parameter name

Attributes:
name
value
class msnoise.msnoise_table_def.DataAvailability(net, sta, loc, chan, path, file, starttime, endtime, data_duration, gaps_duration, samplerate, flag)

DataAvailability Object

Parameters:
  • ref (int) – The Station ID in the database

  • net (str) – The network code of the Station

  • sta (str) – The station code

  • chan (str) – The component (channel)

  • path (str) – The full path to the folder containing the file

  • file (str) – The name of the file

  • starttime (datetime) – Start time of the file

  • endtime (datetime) – End time of the file

  • data_duation – Cumulative duration of available data in the file

  • gaps_duration (float) – Cumulative duration of gaps in the file

  • samplerate (float) – Sample rate of the data in the file (in Hz)

  • flag (str) – The status of the entry: “N”ew, “M”odified or “A”rchive

Attributes:
chan
data_duration
endtime
file
flag
gaps_duration
loc
net
path
ref
samplerate
sta
starttime