.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "python_module/08_tracking_manipulation/pet_display_field.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 Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_python_module_08_tracking_manipulation_pet_display_field.py: Display fields ============== .. GENERATED FROM PYTHON SOURCE LINES 6-12 .. code-block:: Python from matplotlib import pyplot as plt import py_eddy_tracker_sample from py_eddy_tracker.observations.tracking import TrackEddiesObservations .. GENERATED FROM PYTHON SOURCE LINES 13-14 Load an experimental cyclonic atlas, we keep only eddies which are follow more than 180 days .. GENERATED FROM PYTHON SOURCE LINES 14-19 .. code-block:: Python c = TrackEddiesObservations.load_file( py_eddy_tracker_sample.get_demo_path("eddies_med_adt_allsat_dt2018/Cyclonic.zarr") ) c = c.extract_with_length((180, -1)) .. GENERATED FROM PYTHON SOURCE LINES 20-21 Plot amplitude field .. GENERATED FROM PYTHON SOURCE LINES 21-32 .. code-block:: Python fig = plt.figure(figsize=(12, 6)) ax = fig.add_axes((0.05, 0.1, 0.9, 0.9)) ax.set_aspect("equal") ax.set_xlim(-6, 36.5), ax.set_ylim(30, 46) m = c.scatter(ax, "amplitude", ref=-10, vmin=0, vmax=0.1) ax.grid() cb = plt.colorbar( m, cax=fig.add_axes([0.05, 0.07, 0.9, 0.01]), orientation="horizontal" ) cb.set_label("Amplitude (m)") .. image-sg:: /python_module/08_tracking_manipulation/images/sphx_glr_pet_display_field_001.png :alt: pet display field :srcset: /python_module/08_tracking_manipulation/images/sphx_glr_pet_display_field_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.144 seconds) .. _sphx_glr_download_python_module_08_tracking_manipulation_pet_display_field.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/AntSimi/py-eddy-tracker/master?urlpath=lab/tree/notebooks/python_module/08_tracking_manipulation/pet_display_field.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: pet_display_field.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: pet_display_field.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: pet_display_field.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_