.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "source/auto_examples/plotting/plot_sonde.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_plotting_plot_sonde.py: Plot a timeseries of sounding data ---------------------------------------------------- This is a simple example for how to plot a timeseries of sounding data from the ARM SGP site. Author: Robert Jackson .. GENERATED FROM PYTHON SOURCE LINES 10-27 .. image-sg:: /source/auto_examples/plotting/images/sphx_glr_plot_sonde_001.png :alt: sgpsondewnpnC1.b1 wspd on 20190101, sgpsondewnpnC1.b1 tdry on 20190101, sgpsondewnpnC1.b1 rh on 20190101 :srcset: /source/auto_examples/plotting/images/sphx_glr_plot_sonde_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none Size: 451kB Dimensions: (time: 4176) Coordinates: * time (time) datetime64[ns] 33kB 2019-01-01T05:32:00 ... 2019-01-0... Data variables: (12/25) base_time datetime64[ns] 8B 2019-01-01 time_offset (time) datetime64[ns] 33kB 2019-01-01T05:32:00 ... 2019-01-0... qc_time (time) int32 17kB dask.array pres (time) float32 17kB dask.array qc_pres (time) int32 17kB dask.array tdry (time) float32 17kB dask.array ... ... wstat (time) float32 17kB dask.array asc (time) float32 17kB dask.array qc_asc (time) int32 17kB dask.array lat (time) float32 17kB dask.array lon (time) float32 17kB dask.array alt (time) float32 17kB dask.array Attributes: (12/43) command_line: sonde_ingest -s sgp -f C1 process_version: ingest-sonde-10.12-0.el6 ingest_software: ingest-sonde-10.12-0.el6 dod_version: sondewnpn-b1-2.1 site_id: sgp facility_id: C1: Lamont, Oklahoma ... ... history: created by user dsmgr on machine ruby at 2019... _file_dates: ['20190101'] _file_times: ['053200'] datastream: sgpsondewnpnC1.b1 _datastream: sgpsondewnpnC1.b1 _arm_standards_flag: 1 | .. code-block:: Python from arm_test_data import DATASETS from matplotlib import pyplot as plt import act filename_sonde = DATASETS.fetch('sgpsondewnpnC1.b1.20190101.053200.cdf') sonde_ds = act.io.arm.read_arm_netcdf(filename_sonde) print(sonde_ds) # Plot data display = act.plotting.TimeSeriesDisplay(sonde_ds) display.add_subplots((3,), figsize=(15, 10)) display.plot('wspd', subplot_index=(0,)) display.plot('tdry', subplot_index=(1,)) display.plot('rh', subplot_index=(2,)) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.255 seconds) .. _sphx_glr_download_source_auto_examples_plotting_plot_sonde.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_sonde.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_sonde.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_sonde.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_