Skip to content
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

Merged
merged 2 commits into from
Dec 13, 2018

Conversation

amcody
Copy link
Contributor

@amcody amcody commented Dec 13, 2018

This adds keywords requested by MAST, such as FILTER='Kepler', MJD-BEG and END, and XPOSURE.

@@ -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
Copy link
Member

@barentsen barentsen Dec 13, 2018

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:

Suggested change
hdu.header['MJD-end'] = self.mjdend
hdu.header['MJD-END'] = self.mjdend

@@ -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'
Copy link
Member

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:

Suggested change
hdu.header.cards['FILTER'].comment = 'filter'
hdu.header.cards['FILTER'].comment = 'photometric passband'

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
Copy link
Member

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.:

Suggested change
hdu.header['LIVETIME'] = frametim/3600./24. * num_frm * deadc
hdu.header['LIVETIME'] = hdu.header['TELAPSE'] * deadc

@barentsen
Copy link
Member

@amcody This all looks good! I nit-picked a few small things, but this will be good to merge!

@amcody
Copy link
Contributor Author

amcody commented Dec 13, 2018

Should be fixed now, @barentsen!

@barentsen
Copy link
Member

Thanks!

@barentsen barentsen merged commit 59fed5b into KeplerGO:master Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants