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

Peak magnitude #232

Open
RoyWilliams opened this issue Feb 6, 2025 · 0 comments
Open

Peak magnitude #232

RoyWilliams opened this issue Feb 6, 2025 · 0 comments
Assignees

Comments

@RoyWilliams
Copy link
Contributor

  • The BBB package should be updated to supply the maximum flux and the time of that in the case of the Bazin fit (see below for code), and the BBB features include these
  • The BBB features should make extinction corrections before running the fit
  • In the case of a host galaxy with distance, the BBB features should compute peak absMag from the above
maxq = 0
maxwl = 0
for wl in WL:
    q = blackbody(wl, dictb['T'])
    if q > maxq: 
        maxq = q
        maxwl = wl

tau = -math.log(dictb['kf']/(dictb['kr']-dictb['kf'])) / dictb['kr']
maxt = dictb['t0'] + tau
print('time, flux is', maxt, bazin(t, maxwl, p))
@RoyWilliams RoyWilliams self-assigned this Feb 6, 2025
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

No branches or pull requests

1 participant