A network recorded a large earthquake. For each station it lists the distance from the source in degrees and whether a direct P wave and a direct S wave were seen. You will find the shadow zones and estimate the size of the core.
The idea. Beyond some distance no S wave arrives, because it cannot cross the liquid core. The P waves are missing in a band. If the rays were straight, the edge of the S shadow would give the core radius from .
Your tasks.
s_edge, return the edge of the S shadow: the middle between the farthest station that saw S and the nearest station beyond it.p_gap, return the first and the last distance at which P was not seen.core_radius, return the radius in km of a core whose straight-ray shadow edge is the given angle, with .Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…