drsophiemurray / smart_python

Converting SMART to Python3
Other
0 stars 1 forks source link

deprojection #3

Open drsophiemurray opened 6 years ago

drsophiemurray commented 6 years ago

Missing stereographic deprojection in smart_python/psl_properties.py.

drsophiemurray commented 6 years ago

Hack solution is to use reproject interpolation method, reproject_interp(), which uses script. But does not conserve flux. The area of the pixel in your input image is not the same as the area of the pixel in your output image, so effectively the flux is changing.

Potential solution is the dfresampling method, in a reproject pull request 52. It implements the DeForest reprojection algorithm for handling flux conservation, but it needs updating and testing to make sure it's really useable. Also see rubendv dfresampling repository.