Sample Code =========== This section provides Python sample code for receiving and interacting with :term:`Notices `. Notices are available over several different protocols and in several different formats. LIGO/Virgo/KAGRA recommends using the VOEvent Transport Protocol (:term:`VTP`) to receive notices in :term:`VOEvent` XML format because it is anonymous, configuration-free, and easy to parse. .. warning:: The VOEvent XML alerts are official data products of LIGO/Virgo/KAGRA. GCN produces `several other legacy formats`_ from them, in particular a text-based "full format" and binary format. LIGO/Virgo/KAGRA performs only limited quality control of the legacy formats. This tutorial will walk you through writing a Python script to receive and process the example LIGO/Virgo/KAGRA notices that are sent every hour. The tutorial is broken into the following subsections: .. toctree:: :maxdepth: 1 prerequisites receiving/index multiorder_skymaps skymaps observability 3d .. _`several other legacy formats`: https://gcn.gsfc.nasa.gov/gcn_describe.html#tc7 .. _`several other distribution methods`: https://gcn.gsfc.nasa.gov/tech_describe.html .. _`GCN's anonymous VOEvent brokers`: https://gcn.gsfc.nasa.gov/voevent.html#tc2