File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
Release History
3
3
===============
4
4
5
+ Unreleased (2021-09-10)
6
+ =======================
7
+ - Fix sign on cosmological K correction
8
+
5
9
v1.1.0 (2020-10-02)
6
10
===================
7
11
- Refactor hyperparameter optimization to make use of code in superphot.validate
Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ def flux_to_luminosity(row, R_filter):
64
64
"""
65
65
Return the flux-to-luminosity conversion factor for the transient in a given row of a data table.
66
66
67
+ Luminosities are per steradian (i.e., the factor of 4π is not included) for easy conversion to absolute magnitudes.
68
+
69
+ .. math:: \\ frac{L_ν}{4π F_ν} = \\ frac{D_L^2 10^{0.4 E(B-V) R}}{1+z}
70
+
67
71
Parameters
68
72
----------
69
73
row : astropy.table.row.Row
@@ -78,7 +82,7 @@ def flux_to_luminosity(row, R_filter):
78
82
"""
79
83
A_coeffs = row ['MWEBV' ] * np .array (R_filter )
80
84
dist = cosmo .luminosity_distance (row ['redshift' ]).to ('dapc' ).value
81
- flux2lum = 10. ** (A_coeffs / 2.5 ) * dist ** 2. * (1. + row ['redshift' ])
85
+ flux2lum = 10. ** (A_coeffs / 2.5 ) * dist ** 2. / (1. + row ['redshift' ])
82
86
return flux2lum
83
87
84
88
You can’t perform that action at this time.
0 commit comments