seisscan.Brightness4

class seisscan.Brightness4(B_r4, starttime, bp_t0_r1, lon_r1, lat_r1, z_r1)

A class for holding 4-D brightness values.

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

Attributes

B_r4: numpy.ndarray

4-D brightness values.

starttime: ObsPy.UTCDateTime

Starttime of the brightness.

bp_t0_r1: numpy.ndarray

1-D array of origin times.

lon_r1: numpy.ndarray

1-D array of longitudes (degrees).

lat_r1: numpy.ndarray

1-D array of latitudes (degrees).

z_r1: numpy.ndarray

1-D array of depths (kilometers).

Methods

copy():

Returns a deep copy of the 4-D brightness4 object.

get_stack():

Returns stack time series of the 4-D brightness volume.

get_solution():

Returns best solution of the 4-D brightness volume.

get_islice():

Returns a 2-D space slice of the 4-D brightness volume given a time index.

get_slice():

Returns a 2-D space slice of the 4-D brightness volume given a time.

plot_slice():

Plots a 2-D space slice of the 4-D brightness volume given a time.

gaussian_filter():

Smooths the 4-D brightness volume.

write():

Writes a pickle file for the 4-D brightness object.

__init__(B_r4, starttime, bp_t0_r1, lon_r1, lat_r1, z_r1)

Initializes the Brightness4 class with brightness values, time and space.

Parameters

B_r4: numpy.ndarray

A 4-D array containing brightness values.

starttime: ObsPy.UTCDateTime

Starttime of the brightness volume.

bp_t0_r1:

1-D array of origin times.

lon_r1: numpy.ndarray

1-D array of longitudes (degrees).

lat_r1: numpy.ndarray

1-D array of latitudes (degrees).

z_r1: numpy.ndarray

1-D array of depths (kilometers).

Methods

__init__(B_r4, starttime, bp_t0_r1, lon_r1, ...)

Initializes the Brightness4 class with brightness values, time and space.

copy()

Returns a deep copy of the 4-D brightness4 object.

gaussian_filter(sigma[, radius, axes])

Smooths the 4-D brightness volume.

get_islice([plane, ii_t])

Returns a 2-D space slice of the 4-D brightness volume given a time index.

get_slice([plane, t])

Returns a 2-D space slice of the 4-D brightness volume given a time.

get_solution([t])

Returns best solution of the 4-D brightness volume for a given origin time.

get_stack()

Returns tack time series of the 4-D brightness volume.

plot_slice(ax[, plane, t])

Plots a 2-D space slice of the 4-D brightness volume given a time.

write([filename])

Writes a pickle file for the 4-D brightness object.