rollback fluxdensity fix at it is not a fix apparently

This commit is contained in:
2025-02-12 15:23:32 +01:00
parent b5d3762e8e
commit 56f963ac7d
4 changed files with 28 additions and 25 deletions

View File

@@ -676,9 +676,6 @@ def rebin_array(data_array, error_array, headers, pxsize=2, scale="px", operatio
nw.wcs.crpix /= Dxy
nw.array_shape = new_shape
new_header["NAXIS1"], new_header["NAXIS2"] = nw.array_shape
# Compute new values of pixel area and flux density conversion factor
new_header["PXAREA"] = header["PXAREA"] * (Dxy[0] * Dxy[1])
new_header["PHOTFLAM"] = header["PHOTFLAM"] / (Dxy[0] * Dxy[1])
for key, val in nw.to_header().items():
new_header.set(key, val)
new_header["SAMPLING"] = (str(pxsize) + scale, "Resampling performed during reduction")