Skip to content

Commit

Permalink
try plugging in arbitrary zeropoint if MAGZERO header missing
Browse files Browse the repository at this point in the history
  • Loading branch information
desiproc account committed Apr 27, 2016
1 parent 572f51b commit 268c23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/legacypipe/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def run_se(self, surveyname, imgfn, maskfn):
from astrometry.util.file import trymakedirs
# grab header values...
primhdr = self.read_image_primary_header()
magzp = primhdr['MAGZERO']
magzp = primhdr.get('MAGZERO', 25.)
seeing = self.pixscale * self.fwhm
print('FWHM', self.fwhm, 'pix')
print('pixscale', self.pixscale, 'arcsec/pix')
Expand Down

0 comments on commit 268c23c

Please sign in to comment.