Gitlab will migrate to a new storage backend starting 0300 UTC on 2020-04-04. We do not anticipate a maintenance window for this migration. Performance may be impacted over the weekend. Thanks for your patience.

Commit ee5e5381 authored by Leo Pound Singer's avatar Leo Pound Singer

Add FITS filename suffixes to GCN notices

parent c9a6abcc
......@@ -50,7 +50,7 @@ xsi:schemaLocation="http://www.ivoa.net/xml/VOEvent/v2.0 http://www.ivoa.net/xml
<Description>Specific low-latency search</Description>
</Param>
<Group type="GW_SKYMAP" name="bayestar">
<Param name="skymap_fits" dataType="string" value="https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz" ucd="meta.ref.url">
<Param name="skymap_fits" dataType="string" value="https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz,0" ucd="meta.ref.url">
<Description>Sky Map FITS</Description>
</Param>
</Group>
......
......@@ -50,7 +50,7 @@ xsi:schemaLocation="http://www.ivoa.net/xml/VOEvent/v2.0 http://www.ivoa.net/xml
<Description>Specific low-latency search</Description>
</Param>
<Group type="GW_SKYMAP" name="bayestar">
<Param name="skymap_fits" dataType="string" value="https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz" ucd="meta.ref.url">
<Param name="skymap_fits" dataType="string" value="https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz,0" ucd="meta.ref.url">
<Description>Sky Map FITS</Description>
</Param>
</Group>
......
......@@ -50,7 +50,7 @@ xsi:schemaLocation="http://www.ivoa.net/xml/VOEvent/v2.0 http://www.ivoa.net/xml
<Description>Specific low-latency search</Description>
</Param>
<Group type="GW_SKYMAP" name="bayestar">
<Param name="skymap_fits" dataType="string" value="https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz" ucd="meta.ref.url">
<Param name="skymap_fits" dataType="string" value="https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz,0" ucd="meta.ref.url">
<Description>Sky Map FITS</Description>
</Param>
</Group>
......
bayestar.fits.gz
\ No newline at end of file
bayestar.multiorder.fits
\ No newline at end of file
......@@ -22,6 +22,13 @@ Version 11 (unreleased)
* Add references to the HEALPix paper (Górski et al. 2005,
:doi:`10.1086/427976`).
* Add version number suffixes to sky map FITS filenames in GCN notices to
distinguish between different sky maps with the same filename. For example,
the first file with the name ``bayestar.fits.gz`` will be referred to as
``bayestar.fits.gz,0``, then the next will be ``bayestar.fits.gz,1``, and so
on. The filename with no version suffix always points to the most recent
version.
.. rubric:: Sample Code
* Add attribution for a HEALPix illustration that was reproduced from
......
This diff is collapsed.
......@@ -145,7 +145,7 @@ Upon running this, you should see:
Group = CBC
Pipeline = gstlal
Search = MDC
skymap_fits = https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz
skymap_fits = https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz,0
BNS = 0.95
NSBH = 0.01
BBH = 0.03
......
......@@ -21,7 +21,7 @@ Let's download an example FITS file with curl_:
.. code-block:: shell-session
$ curl -O https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz
$ curl -O https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz,0
We can look at the metadata inside the FITS file by printing its header with
tools like funhead_ from Funtools_, imhead_ from WCSTools_, or
......@@ -32,20 +32,20 @@ tools like funhead_ from Funtools_, imhead_ from WCSTools_, or
:hide:
from astropy.io.fits.scripts.fitsheader import main
print('$ fitsheader bayestar.fits.gz')
main(['bayestar.fits.gz'])
print('$ fitsheader bayestar.fits.gz,0')
main(['bayestar.fits.gz,0'])
.. testoutput::
:options: +NORMALIZE_WHITESPACE
$ fitsheader bayestar.fits.gz
# HDU 0 in bayestar.fits.gz:
$ fitsheader bayestar.fits.gz,0
# HDU 0 in bayestar.fits.gz,0:
SIMPLE = T / conforms to FITS standard
BITPIX = 8 / array data type
NAXIS = 0 / number of array dimensions
EXTEND = T
# HDU 1 in bayestar.fits.gz:
# HDU 1 in bayestar.fits.gz,0:
XTENSION= 'BINTABLE' / binary table extension
BITPIX = 8 / array data type
NAXIS = 2 / number of array dimensions
......@@ -137,7 +137,7 @@ by having Python call `curl` on the command line:
.. code-block:: shell-session
$ curl -O https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz
$ curl -O https://emfollow.docs.ligo.org/userguide/_static/bayestar.fits.gz,0
.. plot::
:context: reset
......@@ -166,7 +166,7 @@ Next, we need to read in the file in Python with Healpy:
>>> import healpy as hp
>>> import numpy as np
>>> hpx = hp.read_map('bayestar.fits.gz')
>>> hpx = hp.read_map('bayestar.fits.gz,0')
NSIDE = 2048
ORDERING = NESTED in fits file
INDXSCHM = IMPLICIT
......@@ -177,7 +177,7 @@ You can suppress printing informational messages while loading the file by
passing the keyword argument ``verbose=False``. You can read both the HEALPix
image data and the FITS header by passing the ``h=True`` keyword argument:
>>> hpx, header = hp.read_map('bayestar.fits.gz', h=True, verbose=False)
>>> hpx, header = hp.read_map('bayestar.fits.gz,0', h=True, verbose=False)
Manipulating HEALPix Coordinates
--------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment