:orphan: Examples gallery ################ .. admonition:: GWpy needs more examples! :class: seealso The GWpy project needs more real-life worked examples to demonstrate the full range of functionality that is available. If you use GWpy for your research, please consider suggesting a new example to be included in the documentation. To make a suggestion, please open an issue at https://gitlab.com/gwpy/gwpy/-/issues/new?issuable_template=Example If you have a script that can be converted directly into an example please consider opening a `merge request `__ to add it to this gallery. .. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
.. currentmodule:: gwpy.frequencyseries ########################## `FrequencySeries` examples ########################## .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/frequencyseries/images/thumb/sphx_glr_hoff_thumb.png :alt: :ref:`sphx_glr_examples_frequencyseries_hoff.py` .. raw:: html
Calculate and plot a FrequencySeries
.. raw:: html
.. only:: html .. image:: /examples/frequencyseries/images/thumb/sphx_glr_coherence_thumb.png :alt: :ref:`sphx_glr_examples_frequencyseries_coherence.py` .. raw:: html
Calculate the coherence between two channels
.. raw:: html
.. only:: html .. image:: /examples/frequencyseries/images/thumb/sphx_glr_variance_thumb.png :alt: :ref:`sphx_glr_examples_frequencyseries_variance.py` .. raw:: html
Generating a SpectralVariance histogram
.. raw:: html
.. only:: html .. image:: /examples/frequencyseries/images/thumb/sphx_glr_inject-fs_thumb.png :alt: :ref:`sphx_glr_examples_frequencyseries_inject-fs.py` .. raw:: html
Inject a signal into a FrequencySeries
.. raw:: html
.. only:: html .. image:: /examples/frequencyseries/images/thumb/sphx_glr_rayleigh_thumb.png :alt: :ref:`sphx_glr_examples_frequencyseries_rayleigh.py` .. raw:: html
Plotting a Rayleigh-statistic Spectrum
.. raw:: html
.. only:: html .. image:: /examples/frequencyseries/images/thumb/sphx_glr_percentiles_thumb.png :alt: :ref:`sphx_glr_examples_frequencyseries_percentiles.py` .. raw:: html
Plotting an averaged ASD with percentiles.
.. raw:: html
.. only:: html .. image:: /examples/frequencyseries/images/thumb/sphx_glr_transfer_function_thumb.png :alt: :ref:`sphx_glr_examples_frequencyseries_transfer_function.py` .. raw:: html
Transfer function
.. thumbnail-parent-div-close .. raw:: html
.. currentmodule:: gwpy.timeseries ###################### Miscellaneous examples ###################### .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/miscellaneous/images/thumb/sphx_glr_range-spectrogram_thumb.png :alt: :ref:`sphx_glr_examples_miscellaneous_range-spectrogram.py` .. raw:: html
Estimating the spectral contribution to inspiral range
.. raw:: html
.. only:: html .. image:: /examples/miscellaneous/images/thumb/sphx_glr_range-timeseries_thumb.png :alt: :ref:`sphx_glr_examples_miscellaneous_range-timeseries.py` .. raw:: html
Generating an inspiral range timeseries
.. raw:: html
.. only:: html .. image:: /examples/miscellaneous/images/thumb/sphx_glr_open-data-spectrogram_thumb.png :alt: :ref:`sphx_glr_examples_miscellaneous_open-data-spectrogram.py` .. raw:: html
Plotting a spectrogram of all open data for many hours
.. thumbnail-parent-div-close .. raw:: html
.. currentmodule:: gwpy.segments ################### `Segments` examples ################### .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/segments/images/thumb/sphx_glr_open-data_thumb.png :alt: :ref:`sphx_glr_examples_segments_open-data.py` .. raw:: html
Plotting observing segments for O1
.. thumbnail-parent-div-close .. raw:: html
.. currentmodule:: gwpy.signal ########################## Signal processing examples ########################## .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/signal/images/thumb/sphx_glr_gw150914_thumb.png :alt: :ref:`sphx_glr_examples_signal_gw150914.py` .. raw:: html
Filtering a TimeSeries to detect gravitational waves
.. thumbnail-parent-div-close .. raw:: html
.. currentmodule:: gwpy.spectrogram ###################### `Spectrogram` examples ###################### .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/spectrogram/images/thumb/sphx_glr_coherencegram_thumb.png :alt: :ref:`sphx_glr_examples_spectrogram_coherencegram.py` .. raw:: html
Calculating the time-dependent coherence between two channels
.. raw:: html
.. only:: html .. image:: /examples/spectrogram/images/thumb/sphx_glr_plot_thumb.png :alt: :ref:`sphx_glr_examples_spectrogram_plot.py` .. raw:: html
Plotting a Spectrogram
.. raw:: html
.. only:: html .. image:: /examples/spectrogram/images/thumb/sphx_glr_rayleighgram_thumb.png :alt: :ref:`sphx_glr_examples_spectrogram_rayleighgram.py` .. raw:: html
Plotting a Spectrogram of the Rayleigh statistic
.. raw:: html
.. only:: html .. image:: /examples/spectrogram/images/thumb/sphx_glr_ratio_thumb.png :alt: :ref:`sphx_glr_examples_spectrogram_ratio.py` .. raw:: html
Plotting a normalised Spectrogram
.. raw:: html
.. only:: html .. image:: /examples/spectrogram/images/thumb/sphx_glr_spectrogram2_thumb.png :alt: :ref:`sphx_glr_examples_spectrogram_spectrogram2.py` .. raw:: html
Plotting an over-dense, short-duration Spectrogram
.. thumbnail-parent-div-close .. raw:: html
.. currentmodule:: gwpy.table ##################### Tabular data examples ##################### .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/table/images/thumb/sphx_glr_rate_thumb.png :alt: :ref:`sphx_glr_examples_table_rate.py` .. raw:: html
Calculating (and plotting) rate versus time for an EventTable
.. raw:: html
.. only:: html .. image:: /examples/table/images/thumb/sphx_glr_rate_binned_thumb.png :alt: :ref:`sphx_glr_examples_table_rate_binned.py` .. raw:: html
Plotting EventTable rate versus time for specific column bins
.. raw:: html
.. only:: html .. image:: /examples/table/images/thumb/sphx_glr_tiles_thumb.png :alt: :ref:`sphx_glr_examples_table_tiles.py` .. raw:: html
Plotting an EventTable as 2-d tiles
.. raw:: html
.. only:: html .. image:: /examples/table/images/thumb/sphx_glr_histogram_thumb.png :alt: :ref:`sphx_glr_examples_table_histogram.py` .. raw:: html
Plotting an EventTable in a histogram
.. raw:: html
.. only:: html .. image:: /examples/table/images/thumb/sphx_glr_scatter_thumb.png :alt: :ref:`sphx_glr_examples_table_scatter.py` .. raw:: html
Plotting an EventTable in a scatter
.. thumbnail-parent-div-close .. raw:: html
.. currentmodule:: gwpy.timeseries ##################### `TimeSeries` examples ##################### .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /examples/timeseries/images/thumb/sphx_glr_public_thumb.png :alt: :ref:`sphx_glr_examples_timeseries_public.py` .. raw:: html
Accessing and visualising public GW detector data
.. raw:: html
.. only:: html .. image:: /examples/timeseries/images/thumb/sphx_glr_pycbc-snr_thumb.png :alt: :ref:`sphx_glr_examples_timeseries_pycbc-snr.py` .. raw:: html
Calculating the SNR associated with an astrophysical signal model
.. raw:: html
.. only:: html .. image:: /examples/timeseries/images/thumb/sphx_glr_blrms_thumb.png :alt: :ref:`sphx_glr_examples_timeseries_blrms.py` .. raw:: html
Comparing seismic trends between LIGO sites
.. raw:: html
.. only:: html .. image:: /examples/timeseries/images/thumb/sphx_glr_qscan_thumb.png :alt: :ref:`sphx_glr_examples_timeseries_qscan.py` .. raw:: html
Generate the Q-transform of a TimeSeries
.. raw:: html
.. only:: html .. image:: /examples/timeseries/images/thumb/sphx_glr_inject_thumb.png :alt: :ref:`sphx_glr_examples_timeseries_inject.py` .. raw:: html
Inject a known signal into a TimeSeries
.. raw:: html
.. only:: html .. image:: /examples/timeseries/images/thumb/sphx_glr_statevector_thumb.png :alt: :ref:`sphx_glr_examples_timeseries_statevector.py` .. raw:: html
Plotting segments for a StateVector
.. raw:: html
.. only:: html .. image:: /examples/timeseries/images/thumb/sphx_glr_whiten_thumb.png :alt: :ref:`sphx_glr_examples_timeseries_whiten.py` .. raw:: html
Whitening a TimeSeries
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /examples/frequencyseries/index.rst /examples/miscellaneous/index.rst /examples/segments/index.rst /examples/signal/index.rst /examples/spectrogram/index.rst /examples/table/index.rst /examples/timeseries/index.rst .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_