Skip to content

Commit

Permalink
PyFITS method change adaptation
Browse files Browse the repository at this point in the history
changed header.update to header.set following A. Bukva's tip. (thanks!)
  • Loading branch information
eaydin committed Nov 6, 2014
1 parent c28bd6d commit 725455c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cr2fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,14 @@ def __str__(self):
try :
#Creating the FITS File
hdu = pyfits.PrimaryHDU(im_green)
hdu.header.update('OBSTIME',date)
hdu.header.update('EXPTIME',shutter)
hdu.header.update('APERTUR',aperture)
hdu.header.update('ISO',iso)
hdu.header.update('FOCAL',focal)
hdu.header.update('ORIGIN',original_file)
hdu.header.update('FILTER',colors[colorInput])
hdu.header.update('CAMERA',camera)
hdu.header.set('OBSTIME',date)
hdu.header.set('EXPTIME',shutter)
hdu.header.set('APERTUR',aperture)
hdu.header.set('ISO',iso)
hdu.header.set('FOCAL',focal)
hdu.header.set('ORIGIN',original_file)
hdu.header.set('FILTER',colors[colorInput])
hdu.header.set('CAMERA',camera)
hdu.header.add_comment('FITS File Created with cr2fits.py available at %s'%(sourceweb))
hdu.header.add_comment('cr2fits.py version %s'%(version))
hdu.header.add_comment('EXPTIME is in seconds.')
Expand Down

0 comments on commit 725455c

Please sign in to comment.