Skip to content

Conversation

@hugobuddel
Copy link
Collaborator

Replacing #208, because we still want to add a field varying PSF

Preliminary implementation of GridFieldVaryingPSF for convolving FOVs with field-varying PSFs using interpolation. The implementation might look somewhat convoluted, and it does not rely on many existing Numpy and SciPy methods, but this is done purposely to enable Numba compilation and parallelization. Missing:
- Defining the structure of the input PSF grid;
- Reading PSF grid coordinates and perform correct positioning of the PSF;
- Kernel normalization;
- Expand for multiple wavelengths.
Release candidate of PSF effect using a grid of PSFs that are interpolated across the field. Working example, but further testing required. No multiple-wavelength compatibility yet.
- Compatibility with 3.5 lost (uses f-strings). Though these seem to be used in other places, so it probably was lost before.
- Some docstring incomplete, mostly due to obfuscated attributes or missing or not well-defined type hints.
Raising exceptions for pixels out of bounds during numba routines wasn't working, so it was removed and made it compulsory that the coordinates to be computed lie withing the PSF grid.
@teutoburg teutoburg added the imaging Related to imaging modes label Mar 26, 2025
@teutoburg teutoburg moved this from 🆕 New to 🏗 In progress in ScopeSim-development Jun 27, 2025
@teutoburg teutoburg moved this from 🏗 In progress to 🚧 On hold in ScopeSim-development Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

imaging Related to imaging modes

Projects

Status: 🚧 On hold

Development

Successfully merging this pull request may close these issues.

3 participants