4.1.2.2. eqcorrscan.core.bright_lights._rm_similarlags¶
-
eqcorrscan.core.bright_lights.
_rm_similarlags
(stations, nodes, lags, threshold)[source]¶ Remove nodes that have a very similar network moveout to another node.
This function will, for each node, calculate the difference in lagtime at each station at every node, then sum these for each node to get a cumulative difference in network moveout. This will result in an array of arrays with zeros on the diagonal.
Parameters: - stations (list) List of station names from in the form where stations[i] refers to nodes[i][:] and lags[i][:]
- nodes (list) List of node points where nodes[i] referes to stations[i] and nodes[:][:][0] is latitude in degrees, nodes[:][:][1] is longitude in degrees, nodes[:][:][2] is depth in km.
- lags (numpy.ndarray) Array of arrays where lags[i][:] refers to stations[i]. lags[i][j] should be the delay to the nodes[i][j] for stations[i] in seconds
- threshold Threshold for removal in seconds
Returns: list stations, list of lists of tuples nodes, :class: ‘numpy.array’ lags station[1] refers to nodes[1] and lags[1] nodes[1][1] refers to station[1] and lags[1][1] nodes[n][n] is a tuple of latitude, longitude and depth.