Skip to content

Commit

Permalink
do not assume the pixel scale is constant
Browse files Browse the repository at this point in the history
  • Loading branch information
moustakas committed Aug 7, 2023
1 parent 724fe8c commit a6788de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/fastspecfit/emlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,8 +1188,8 @@ def populate_emtable(self, result, finalfit, finalmodel, emlinewave, emlineflux,
log.critical(errmsg)
raise ValueError(errmsg)

# boxcar integration of the flux; should we weight by the line-profile???
dwave = np.abs(np.diff(emlinewave_edges[lineindx]))
# boxcar integration of the flux
dwave = np.median(np.abs(np.diff(emlinewave_edges[lineindx])))
boxflux = np.sum(emlineflux[lineindx] * dwave)
boxflux_ivar = 1 / np.sum((1 / emlineivar[lineindx]) * dwave**2)

Expand Down

0 comments on commit a6788de

Please sign in to comment.