forked from spacetelescope/romancal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RCAL-828: add PSF bits to source catalog. (spacetelescope#1243)
Co-authored-by: zacharyburnett <zburnett@stsci.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Brett <brettgraham@gmail.com> Co-authored-by: D Davis <49163225+ddavis-stsci@users.noreply.github.com>
- Loading branch information
1 parent
9662356
commit f22e4b9
Showing
10 changed files
with
353 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
PSF Fitting | ||
=========== | ||
|
||
A few PSF fitting utilities are included to interface between observations | ||
within Roman datamodels and methods within dependencies that generate and | ||
fit PSF models to observations. | ||
|
||
Create PSF models | ||
----------------- | ||
|
||
`~romancal.lib.psf.create_gridded_psf_model` computes a gridded PSF model for | ||
a given detector using `~webbpsf.gridded_library.CreatePSFLibrary` from | ||
`WebbPSF <https://webbpsf.readthedocs.io/>`_. The defaults are chosen to | ||
balance more accurate PSF models with the cost of increased runtime. For | ||
further reading on the WebbPSF approach to ePSFs, see the WebbPSF docs on | ||
`Using PSF Grids <https://webbpsf.readthedocs.io/en/latest/psf_grids.html>`_. | ||
|
||
Fit model PSFs to an ImageModel | ||
------------------------------- | ||
|
||
Once PSF models are generated, you can fit those models to observations | ||
in an ImageModel with `~romancal.lib.psf.fit_psf_to_image_model` using | ||
`photutils <https://photutils.readthedocs.io/en/stable/psf.html>`_. | ||
By default the fits are done with `~photutils.psf.PSFPhotometry`, and | ||
crowded fields may benefit from using `~photutils.psf.IterativePSFPhotometry`. | ||
For neighboring sources that are near one another on the detector, grouping | ||
the sources and fitting their PSFs simultaneously improves the fit quality. | ||
Initial guesses for target centroids can be given or source | ||
detection can be performed with, e.g., `~photutils.detection.DAOStarFinder`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,3 @@ Source Detection | |
psf.rst | ||
|
||
.. automodapi:: romancal.source_detection | ||
|
||
.. automodapi:: romancal.lib.psf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.