seisscan.Stack

class seisscan.Stack(b_r1, starttime, bp_t0_r1, evlo_r1, evla_r1, evdp_r1)

A class for holding 1-D backprojected stack.

This class provides methods to get backprojected solution, brightness stack, plot brightness slice etc.

Attributes

b_r1: numpy.ndarray of floats

1-D numpy array of brightness values.

starttime: ObsPy.UTCDateTime

Starttime of the stack

bp_t0_r1: numpy.ndarray of floats

1-D numpy array origin times (seconds).

evlo_r1: numpy.ndarray of floats

1-D numpy array event longitudes (degree)

evla_r1: numpy.ndarray of floats

1-D numpy array event latitudes (degree)

evdp_r1: numpy.ndarray of floats

1-D numpy array event depths (km)

Methods

copy:

Returns a deepcopy of the 1-D stack.

trim:

Trims (cuts) the 1-D stack given a starttime and endtime

get_solution:

Returns event longitude, latitude, depth and brightness given an origin time.

get_times:

Returns a 1-D numpy array of times.

plot:

Plots backprojected stack on a matploib axes.

write:

Writes the stack in a pickle file.

__init__(b_r1, starttime, bp_t0_r1, evlo_r1, evla_r1, evdp_r1)

Initialize the Stack class.

Parameters

b_r1: numpy.ndarray of floats

1-D numpy array of brightness values.

starttime: ObsPy.UTCDateTime

Starttime of the stack

bp_t0_r1: numpy.ndarray of floats

1-D numpy array origin times (seconds).

evlo_r1: numpy.ndarray of floats

1-D numpy array event longitudes (degree)

evla_r1: numpy.ndarray of floats

1-D numpy array event latitudes (degree)

evdp_r1: numpy.ndarray of floats

1-D numpy array event depths (km)

Methods

__init__(b_r1, starttime, bp_t0_r1, evlo_r1, ...)

Initialize the Stack class.

copy()

Returns a deepcopy of the backprojected stack.

get_solution([t])

Computes and returns a solution for a given origin time.

get_times([reftime])

Computes and returns a numpy array of relative times given a reference time.

plot([ax, ttype, reftime, handle])

Plots the backprojected stack

trim(t1, t2)

Trims the backprojected stack given a starttime and endtime.

write([filename])

Writes the backprojected stack in a pickle file.