.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "api/gallery/plate_tectonics/plot_10_mckenzie_parker_plates_on_sphere.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code or to run this example in your browser via JupyterLite. .. rst-class:: sphx-glr-example-title .. _sphx_glr_api_gallery_plate_tectonics_plot_10_mckenzie_parker_plates_on_sphere.py: McKenzie and Parker's plates on a sphere (1967) =============================================== Dan McKenzie and Robert Parker showed that the North Pacific moves as one rigid cap rotating about a single pole. Speed then varies as the sine of the angular distance from the pole: zero at the pole, largest 90 degrees away. .. GENERATED FROM PYTHON SOURCE LINES 9-29 .. image-sg:: /api/gallery/plate_tectonics/images/sphx_glr_plot_10_mckenzie_parker_plates_on_sphere_001.png :alt: One rotation, many speeds :srcset: /api/gallery/plate_tectonics/images/sphx_glr_plot_10_mckenzie_parker_plates_on_sphere_001.png :class: sphx-glr-single-img .. code-block:: Python import matplotlib.pyplot as plt import numpy as np from earthsciencekit.constants import EARTH_RADIUS from earthsciencekit.plate_tectonics import plate_speed from earthsciencekit.units import convert omega = convert(0.8, "degree", "rad") / convert(1e6, "year", "s") distance = np.linspace(0, np.pi, 181) speed = plate_speed(omega, EARTH_RADIUS, distance) assert np.isclose(float(plate_speed(omega, EARTH_RADIUS, 0)), 0) assert np.argmax(speed) == 90 and np.isclose(speed.max(), omega * EARTH_RADIUS) fig, ax = plt.subplots() ax.plot(np.rad2deg(distance), convert(speed, "m/s", "cm/year")) ax.set(xlabel="angular distance from the Euler pole [degree]", ylabel="plate speed [cm/year]") ax.set_title("One rotation, many speeds") plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.070 seconds) .. _sphx_glr_download_api_gallery_plate_tectonics_plot_10_mckenzie_parker_plates_on_sphere.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: lite-badge .. image:: images/jupyterlite_badge_logo.svg :target: ../../../lite/lab/index.html?path=api/gallery/plate_tectonics/plot_10_mckenzie_parker_plates_on_sphere.ipynb :alt: Launch JupyterLite :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_10_mckenzie_parker_plates_on_sphere.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_10_mckenzie_parker_plates_on_sphere.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_10_mckenzie_parker_plates_on_sphere.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_