-
Notifications
You must be signed in to change notification settings - Fork 28
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
Source detection+PSF docs updates #984
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! 9 is pretty tiny too. I think we use 256 for the equivalent of this in other surveys!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This number will still need to be adjusted if there's a crowding, or the source is very bright, etc.