lts_data_classes

Documentation for the class used to construct the data container. This class are called internally by ltsva.

class lts_array.classes.lts_data_class.DataBin(window_length, window_overlap, alpha)[source]

Data container for LTS processing

Parameters:
  • window_length (float) – The window processing length [sec.]
  • window_overlap (float) – The decimal overalp [0.0, 1.0) for consecutive time windows.
  • alpha (float) – The decimal [0.50, 1.0] amount of data to keep in the subsets.
build_data_arrays(st, latlist, lonlist, remove_elements=None)[source]

Collect basic data from stream file. Project lat/lon into r_ij coordinates.

Parameters:
  • st (stream) – An obspy stream object.
  • latlist (list) – A list of latitude points.
  • lonlist (list) – A list of longitude points.
  • remove_elements (list) – A list of elements to remove before processing. Python numbering is used, so “[0]” removes the first element.
getrij(latlist, lonlist)[source]

Calculate element locations (r_ij) from latitude and longitude.

Return the projected geographic positions in X-Y (Cartesian) coordinates. Points are calculated with the Vincenty inverse and will have a zero-mean.

Parameters:
  • latlist (list) – A list of latitude points.
  • lonlist (list) – A list of longitude points.
Returns:

rij: A numpy array with the first row corresponding to cartesian “X” - coordinates and the second row corresponding to cartesian “Y” - coordinates.

Return type:

(array)

plot_array_coordinates()[source]

Plot array element locations in Cartesian coordinates to the default device.