-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added some additional keywords to mosaic #22
Conversation
k2mosaic/mosaic.py
Outdated
@@ -171,6 +182,12 @@ def _make_primary_hdu(self): | |||
hdu.header.cards['DATE-OBS'].comment = 'TSTART as UTC calendar date' | |||
hdu.header['DATE-END'] = self.dateend | |||
hdu.header.cards['DATE-END'].comment = 'TSTOP as UTC calendar date' | |||
hdu.header['MJD-BEG'] = self.mjdbeg | |||
hdu.header.cards['MJD-BEG'].comment = 'TSTART as modified barycentric Julian date' | |||
hdu.header['MJD-end'] = self.mjdend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably doesn't change the output, but let's use uppercase here:
hdu.header['MJD-end'] = self.mjdend | |
hdu.header['MJD-END'] = self.mjdend |
k2mosaic/mosaic.py
Outdated
@@ -183,6 +200,8 @@ def _make_primary_hdu(self): | |||
hdu.header.cards['TELESCOP'].comment = 'telescope' | |||
hdu.header['INSTRUME'] = 'Kepler Photometer' | |||
hdu.header.cards['INSTRUME'].comment = 'detector type' | |||
hdu.header['FILTER'] = 'Kepler' | |||
hdu.header.cards['FILTER'].comment = 'filter' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can be a bit more informative in this comment, I suggest:
hdu.header.cards['FILTER'].comment = 'filter' | |
hdu.header.cards['FILTER'].comment = 'photometric passband' |
k2mosaic/mosaic.py
Outdated
hdu.header['EXPOSURE'] = int_time/3600./24. * num_frm | ||
hdu.header.cards['EXPOSURE'].comment = '[d] time on source' | ||
|
||
hdu.header['LIVETIME'] = frametim/3600./24. * num_frm * deadc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably doesn't change anything, but it's slightly better to not repeat the computation, i.e.:
hdu.header['LIVETIME'] = frametim/3600./24. * num_frm * deadc | |
hdu.header['LIVETIME'] = hdu.header['TELAPSE'] * deadc |
@amcody This all looks good! I nit-picked a few small things, but this will be good to merge! |
Should be fixed now, @barentsen! |
Thanks! |
This adds keywords requested by MAST, such as FILTER='Kepler', MJD-BEG and END, and XPOSURE.