Skip to content

Commit

Permalink
Fix rebase failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
schlafly committed Oct 18, 2024
1 parent dedd99a commit 7db3779
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions romanisim/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,10 @@ def update_photom_keywords(im, gain=None):
area = (cc[0].separation(cc[1]) * cc[0].separation(cc[2])
* np.sin(angle.to(u.rad).value))
im['meta']['photometry']['pixel_area'] = area.to(u.sr).value
im['meta']['photometry']['conversion_megajanskys'] = (gain *
3631 /
bandpass.get_abflux(im.meta['instrument']['optical_element']) /
10 ** 6 /
im['meta']['photometry']['pixel_area'])
val = (gain * (3631 / bandpass.get_abflux(
im.meta['instrument']['optical_element']) /
10 ** 6 / im['meta']['photometry']['pixel_area']))
im['meta']['photometry']['conversion_megajanskys'] = val
im['meta']['photometry']['conversion_microjanskys'] = (
val * u.MJy / u.sr).to(u.uJy / u.arcsec ** 2).value

Expand Down

0 comments on commit 7db3779

Please sign in to comment.