.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/plot_thermocline.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_plot_thermocline.py: Thermocline examples ==================== .. GENERATED FROM PYTHON SOURCE LINES 6-23 .. image:: /gallery/images/sphx_glr_plot_thermocline_001.png :alt: Summer, Autumn, Winter, Spring, Annual :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out Out: .. code-block:: none /home/remy/.local/lib/python3.8/site-packages/toto-1.0.0-py3.8.egg/toto/plugins/plots/_thermocline.py:36: RuntimeWarning: Mean of empty slice yp[i]=self.funct(self.data[val][index]) | .. code-block:: default import pandas as pd import toto import matplotlib.pyplot as plt from toto.inputs.msl import MSLfile import os # read the file filename='https://raw.githubusercontent.com/calypso-science/Toto/master/_tests/nc_file/TB_current.nc' os.system('wget %s '% filename) df=MSLfile('TB_current.nc')._toDataFrame() # Processing temperature=[x for x in df[0].keys().to_list() if 'temp' in x] df_new=df[0].StatPlots.plot_thermocline(mag=temperature, args={'function':'Mean', 'X label':'Water temperature [degC]', 'time blocking':'Seasonal (South hemisphere)', 'display':'On','table':'Off'}) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 39.966 seconds) .. _sphx_glr_download_gallery_plot_thermocline.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_thermocline.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_thermocline.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_