reproject
reproject copied to clipboard
Reprojection changes floating point precision
Hi there.
This very line: https://github.com/astropy/reproject/blob/3bb79cdfab86da32169bbbb73e907e22ad9783aa/reproject/interpolation/core.py#L95 changes an input array with dtype=float32 to float64.
Could we replace it with a mere check (for all floating point types) instead, and raise an error in case the input isn't a float?
I just created this PR: https://github.com/astropy/reproject/pull/354 Please feel free to scrap it if it doesn't make sense.