reproject icon indicating copy to clipboard operation
reproject copied to clipboard

Reproject using biquadratic and bicubic interpolation returns Nans

Open Sebokolodi opened this issue 1 year ago • 5 comments

I am working on reprojecting SIN images to an HPX projection. While using nearest-neighbor and bilinear interpolation generates images successfully, these methods aren't optimal for conserving flux. I prefer to use biquadratic or bicubic interpolation, but unfortunately, all output images turn out as NaNs when I apply these methods.

And there is no error message. There was similar issue before, but not sure if the issue was resolved.

Sebokolodi avatar Aug 14 '24 15:08 Sebokolodi

Could you provide the input and output headers you are using?

astrofrog avatar Aug 14 '24 16:08 astrofrog

Any update on this issue?

Sebokolodi avatar Sep 24 '24 16:09 Sebokolodi

I met the same problem. I replaced all NaN in input_data and the problem was solved.

xcxcli avatar Mar 19 '25 15:03 xcxcli

Yes I think that those interpolation techniques basically fail if there is a single NaN in the input image.

astrofrog avatar Mar 19 '25 15:03 astrofrog