Skip to content

Commit

Permalink
check for single-extension FITS (NAXIS==2), VR filter for SOARGOODMAN…
Browse files Browse the repository at this point in the history
…, readme updated
  • Loading branch information
Michael Mommert committed Mar 3, 2017
1 parent 7704cd7 commit 810a7de
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions pp_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ def prepare(filenames, obsparam, header_update, flipx=False,
ignore_missing_end='True')
header = hdulist[0].header

# check if this is a single-extension FITS file
if float(header['NAXIS']) > 2.:
logging.error('This is not a single-extension FITS file. Please '
'extract individual extensions and run them '
'individually.')
sys.exit()

# keywords that have to be implanted into each image
implants = {}

Expand Down
14 changes: 7 additions & 7 deletions readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,22 @@ The Photometry Pipeline is distributed under the GNU GPLv3 license.

Copyright (C) 2016 Michael Mommert

Feel free to contact me in case of questions or suggestions: michael
. mommert (at) nau . edu
Feel free to contact me in case of questions or suggestions: michael . mommert (at) nau . edu


.. _github: https://github.com/mommermi/photometrypipeline
.. _github: http://github.com/mommermi/photometrypipeline
.. _git: http://www.git-scm.com/
.. _numpy: http://www.numpy.org/
.. _scipy: https://www.scipy.org/
.. _scipy: http://www.scipy.org/
.. _astropy: http://www.astropy.org/
.. _astroquery: https://github.com/astropy/astroquery
.. _astroquery: http://github.com/astropy/astroquery
.. _matplotlib: http://matplotlib.org/
.. _callhorizons: https://pypi.python.org/pypi/CALLHORIZONS
.. _callhorizons: http://pypi.python.org/pypi/CALLHORIZONS
.. _future: http://python-future.org/
.. _pillow: http://python-pillow.org/
.. _Source Extractor: http://www.astromatic.net/software/sextractor
.. _SCAMP: http://www.astromatic.net/software/scamp
.. _documentation: http://readthedocs.org/projects/photometrypipeline/
.. _documentation: http://photometrypipeline.readthedocs.io/en/latest/
.. _this document: http://photometrypipeline.readthedocs.io/en/latest/supported.html
.. _Astronomy & Computing: http://www.sciencedirect.com/science/article/pii/S2213133716300816
.. _MANOS: http://manosobs.wordpress.com/
2 changes: 1 addition & 1 deletion setup/telescopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@
'filter' : 'FILTER', # filter keyword
'filter_translations' : {'Rc': 'R', 'V':'V', 'B':'B', 'u':'u',
'g-SDSS': 'g', 'r-SDSS': 'r', 'i-SDSS': 'i',
'z-SDSS': 'z'},
'z-SDSS': 'z', 'VR': None},
# filtername translation dictionary
'exptime' : 'EXPTIME', # exposure time keyword (s)
'airmass' : 'AIRMASS', # airmass keyword
Expand Down

0 comments on commit 810a7de

Please sign in to comment.