Commit c8793a49 authored by Tito Dal Canton's avatar Tito Dal Canton
Browse files

Do not require DATE-OBS if using astro coordinates

parent ccc749aa
......@@ -16,6 +16,9 @@ Changelog
parallelism if Python mulitprocessing parallelism is enabled. This will
prevent the program from spawning an excessive number of threads.
- ``ligo-skymap-plot`` no longer requires a DATE-OBS entry in the FITS header
when plotting in astronomical coordinates.
0.0.18 (2018-11-19)
......@@ -81,9 +81,11 @@ def main(args=None):
deg2perpix = hp.nside2pixarea(nside, degrees=True)
probperdeg2 = skymap / deg2perpix
ax = plt.axes(projection=('geo degrees mollweide' if opts.geo
else 'astro hours mollweide'),
obstime=Time(metadata['gps_time'], format='gps').utc.isot)
if opts.geo:
obstime = Time(metadata['gps_time'], format='gps').utc.isot
ax = plt.axes(projection='geo degrees mollweide', obstime=obstime)
ax = plt.axes(projection='astro hours mollweide')
# Plot sky map.
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