.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "cli/examples/gwpy-plot-timeseries-long.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_cli_examples_gwpy-plot-timeseries-long.py: ################################ Time-series of input laser power ################################ This example shows the input laser power (W) for each LIGO Detector for three hours around GW170817 (data taken from the |GWOSC_AUX_RELEASE|_). .. code-block:: shell gwpy-plot timeseries \ --chan H1:IMC-PWR_IN_OUT_DQ \ --chan L1:IMC-PWR_IN_OUT_DQ \ --start 1186736512 \ --duration 3hour \ --ylabel 'Interferometer input power (W)' \ --suptitle 'LIGO input laser power' \ --interactive .. GENERATED FROM PYTHON SOURCE LINES 23-24 The same command can be executed directly in Python as: .. GENERATED FROM PYTHON SOURCE LINES 24-35 .. code-block:: Python from gwpy.cli.gwpy_plot import main main([ 'timeseries', '--chan', 'H1:IMC-PWR_IN_OUT_DQ', '--chan', 'L1:IMC-PWR_IN_OUT_DQ', '--start', '1186736512', '--duration', '3hour', '--ylabel', 'Interferometer input power (W)', '--suptitle', 'LIGO input laser power', '--interactive', ]) .. image-sg:: /cli/examples/images/sphx_glr_gwpy-plot-timeseries-long_001.png :alt: LIGO input laser power, Fs: (2048.0 Hz), duration: 10800.0 :srcset: /cli/examples/images/sphx_glr_gwpy-plot-timeseries-long_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/duncan.macleod/gwpy-nightly-build/conda/envs/gwpy-nightly-3.11/lib/python3.11/site-packages/igwn_auth_utils/requests.py:46: DeprecationWarning: Support for identity-based X.509 credentials for LIGO.ORG is being dropped. Calls to this utility will stop working on/around 20 May 2025. For details on this change please see https://computing.docs.ligo.org/guide/compsoft/roadmap/LVK/x509_retirement/ If you have questions about this message, or its implications, please consider opening an IGWN Computing Help Desk ticket: https://git.ligo.org/computing/helpdesk/-/issues/new return func(*args, **kwargs) /home/duncan.macleod/gwpy-nightly-build/gwpy/gwpy/types/series.py:933: UserWarning: TimeSeries.crop given end larger than current end, crop will begin when the Series actually ends. warn( Program run time: 35.4 .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 33.673 seconds) .. _sphx_glr_download_cli_examples_gwpy-plot-timeseries-long.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: gwpy-plot-timeseries-long.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: gwpy-plot-timeseries-long.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: gwpy-plot-timeseries-long.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_