4.6.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 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.
  • mindepth (float) – Upper limit of volume
  • maxdepth (float) – Lower limit of volume
  • corners (matplotlib.path.Path) – matplotlib Path of the corners for the 2D polygon to cut to in lat and lon.
Returns:

Stations

Return type:

list

Returns:

List of lists of tuples of node locations

Return type:

list

Returns:

Array of lags.

Return type:

numpy.ndarray

Note

Output:

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.