.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "source/auto_examples/io/plot_sodar.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_sodar.py: Read and plot a Sodar file -------------------------- This example shows how to read and display Sodar data from the Argonne National Laboratory (ANL) ATMOS site. Author: Zachary Sherman .. GENERATED FROM PYTHON SOURCE LINES 11-34 .. image-sg:: /source/auto_examples/io/images/sphx_glr_plot_sodar_001.png :alt: Shear, Wind Direction, and Speed at ANL ATMOS on 20230404 :srcset: /source/auto_examples/io/images/sphx_glr_plot_sodar_001.png :class: sphx-glr-single-img .. code-block:: Python from arm_test_data import DATASETS import matplotlib.pyplot as plt import act # Call the read_sodar function. # Example file is a MFAS Sodar at the ATMOS site. More information # on the sodar can be found here: # https://www.scintec.com/products/flat-array-sodar-mfas/ filename_sodar = DATASETS.fetch('sodar.20230404.mnd') ds = act.io.read_mfas_sodar(filename_sodar) # Create an ACT TimeSeriesDisplay. display = act.plotting.TimeSeriesDisplay( {'Shear, Wind Direction, and Speed at ANL ATMOS': ds}, subplot_shape=(1,), figsize=(15, 5) ) # Plot shear with a wind barb overlay, while using a color vision # deficiency (CVD) colormap. display.plot('shear', subplot_index=(0,), cvd_friendly=True) display.plot_barbs_from_spd_dir('speed', 'dir') plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.674 seconds) .. _sphx_glr_download_source_auto_examples_io_plot_sodar.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_sodar.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_sodar.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_sodar.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_