4.1.2.3. eqcorrscan.core.bright_lights._resample_grid¶
-
eqcorrscan.core.bright_lights.
_resample_grid
(stations, nodes, lags, mindepth, maxdepth, corners)[source]¶ Resample the lagtime grid to a given volume. For use if the grid from Grid2Time is too large or you want to run a faster, downsampled scan.
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 lonitude 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.
- mindepth (float) Upper limit of volume
- maxdepth (float) Lower limit of volume
- corners (matplotlib.Path) matplotlib path of the corners for the 2D polygon to cut to in lat and long
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.