You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here is the data for you to debug, rename it to fits type.
Filename: ./grizli-interp-function-debug-data.fits
No. Name Ver Type Cards Dimensions Format
0 PRIMARY 1 PrimaryHDU 4 ()
1 1 BinTableHDU 29 5301R x 3C ['D', 'D', 'D']
2 1 BinTableHDU 12 60R x 2C ['D', 'D']
import astropy.io.fits as fits
from astropy.table import Table
dobj = fits.open('./grizli-interp-function-debug-data.fits')
sens = Table.read(dobj[1])
lams = Table.read(dobj[2])
x = sens['WAVELENGTH'].data.byteswap().newbyteorder()
y = sens['SENSITIVITY'].data.byteswap().newbyteorder()
lam0 = lams['lam0'].data.byteswap().newbyteorder()
lam1 = lams['lam1'].data.byteswap().newbyteorder()
lam0 is the wave grid in figure2 (the bad one)
lam1 is the wave grid in figure1 (the good one)
Fmajor
changed the title
utils_c.interp.interp_conserve_c lose flux at wavelength grid
utils_c.interp.interp_conserve_c lose flux at particular wavelength grid
Jun 14, 2022
This function may lose flux at boundary points at some particular wavelength grid
the origin
x
,y
is from the sensitivity of beam Bthe
ix
is thelam
calculate withaxeconf.get_beam_trace
In the below figures, I do
interp_conserve_c
using three methodsjin
method is my method,xin
method is from Xin ZhangIn this wave grid, all three method are consistent
However, In this wave grid, the
grizli
method seems to lose flux (blue dashed line, in the left bottom point)The text was updated successfully, but these errors were encountered: