.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "cli/examples/gwpy-plot-coherence.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-coherence.py: ################ Simple coherence ################ This example shows the estimated coherence between the differential-arm length servo control loop error signal for LIGO-Hanford (``H1:LSC-DARM_IN1_DQ``) and the motion of an optical periscope used to direct the main laser beam into the Hanford interferometer, around the time of |GW170814|. .. code-block:: shell gwpy-plot coherence \ --chan H1:LSC-DARM_IN1_DQ H1:PEM-CS_ACC_PSL_PERISCOPE_X_DQ \ --start 1186741560 \ --duration 600 \ --nds2-server nds.gwosc.org \ --interactive .. GENERATED FROM PYTHON SOURCE LINES 24-25 The same command can be executed directly in Python as: .. GENERATED FROM PYTHON SOURCE LINES 25-34 .. code-block:: Python from gwpy.cli.gwpy_plot import main main([ 'coherence', '--chan', 'H1:LSC-DARM_IN1_DQ', 'H1:PEM-CS_ACC_PSL_PERISCOPE_X_DQ', '--start', '1186741560', '--duration', '600', '--nds2-server', 'nds.gwosc.org', '--interactive', ]) .. image-sg:: /cli/examples/images/sphx_glr_gwpy-plot-coherence_001.png :alt: Coherence: H1:LSC-DARM_IN1_DQ, 2017-08-14 10:25:42.000 | 1186741560 (600.0), fftlength=1.0, overlap=0.5 :srcset: /cli/examples/images/sphx_glr_gwpy-plot-coherence_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) Program run time: 9.5 .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 4.225 seconds) .. _sphx_glr_download_cli_examples_gwpy-plot-coherence.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-coherence.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: gwpy-plot-coherence.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: gwpy-plot-coherence.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_