-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSF rescaling (resampling) should probably use higher spline_order #282
Comments
Probably related to Issue #247. |
Additionally, I have found that in some cases (I believe it is when the PSF has even pixel size, and the central pixel is an integer - i.e. not between two pixels - e.g. METIS PSFs from COMPASS), the rescaling/resampling of the PSF introduces a shift (systematic astrometric error) in the resulting images. I believe this is due to the use of the This is, however, a subject for another Issue when I get the time to put together a more detailed explanation and demonstration. |
I changed the default setting of I agree with your second point that |
That makes sense. I am wondering if there is another way to go about it. PCHIP would (probably?) solve this, but I do not believe it can be derived for 2D data. Another possible way to overcome this limitation (although I've never seen it done for PSFs) is to interpolate log(PSF) and then exponentiate, though I don't know if this would exacerbate interpolation artifacts. Do you perhaps have an example of a PSF (or any 2D array) where this negative overshoot happens so I can experiment with it? |
In the
FieldConstantPSF
class, if the provided PSF has a different pixel scale than the detector, the PSF is resampled (see psfs.py L634). By default, for the METISirdb
template (and probably others), the spline order for the interpolation is 1, which, from my tests, it seems to introduce quite a significant error in the morphology of the PSF. Simply increasing the spline order (e.g. 2=bi-cubic) seems to greatly improve the interpolation artifacts without introducing significant computational overhead.Although the tests I have included in my fork of ScopeSim are very simple (resampling of a Gaussian), I have also tested simulated METIS PSFs from COMPASS, where I encountered errors upwards of 10% in PSF pixel intensity.
The text was updated successfully, but these errors were encountered: