.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "source/auto_examples/io/plot_icartt.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. .. rst-class:: sphx-glr-example-title .. _sphx_glr_source_auto_examples_io_plot_icartt.py: Plot ICARTT Formatted Files --------------------------- This example shows how to read and display International Consortium for Atmospheric Research on Transport and Transformation (ICARTT) file format standards V2.0 Author: Joe O'Brien .. GENERATED FROM PYTHON SOURCE LINES 11-44 .. image-sg:: /source/auto_examples/io/images/sphx_glr_plot_icartt_001.png :alt: AAFNAV total_temp on 20181104, AAFNAV static_pressure on 20181104 :srcset: /source/auto_examples/io/images/sphx_glr_plot_icartt_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/runner/work/ACT/ACT/examples/io/plot_icartt.py:40: UserWarning: No artists with labels found to put in legend. Note that artists whose label start with an underscore are ignored when legend() is called with no argument. plt.legend(loc='lower left') | .. code-block:: Python from arm_test_data import DATASETS import matplotlib.pyplot as plt import act from act.io.icartt import read_icartt # Call the read_icartt function, which supports input # for ICARTT (v2.0) formatted files. # Example file is ARM Aerial Facility Navigation Data filename_icartt = DATASETS.fetch('AAFNAV_COR_20181104_R0.ict') ds = read_icartt(filename_icartt) # Create an ACT TimeSeriesDisplay. display = act.plotting.TimeSeriesDisplay( ds, ds_name=ds.attrs['_datastream'], subplot_shape=(2,), figsize=(15, 5) ) # Display the AAF Ambient Temperature display.plot('ambient_temp', subplot_index=(0,), label='Ambient') # Display the AAF Dewpoint Temperature display.plot('dewpoint_temperature', subplot_index=(0,), label='Dewpoint') # Display the AAF Total Temperature # (i.e Temperature not corrected for heating due to atmospheric compression) # Note: Total Temperature >= Ambient (Static) Temperature display.plot('total_temp', subplot_index=(0,), label='Total') # Display the AAF Static Air Pressure on the second subplot display.plot('static_pressure', subplot_index=(1,)) # Include legend to identify AAF Temperatures plt.legend(loc='lower left') # Adjust vertical space between subplots plt.subplots_adjust(hspace=0.4) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.500 seconds) .. _sphx_glr_download_source_auto_examples_io_plot_icartt.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_icartt.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_icartt.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_icartt.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_