question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extract FWHM estimate from psf_model?

See original GitHub issue

The DAOPhotPSFPhotometry description says:

aperture_radius : float The radius (in units of pixels) used to compute initial estimates for the fluxes of sources. If None, one FWHM will be used if it can be determined from the psf_model.

Does this mean that one could extract the estimated FWHM for all sources in an image from psf_model? If so, how would that work?

(Is this the right place to be asking these questions? Should I start making them somewhere else?)

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eteqcommented, Nov 10, 2016

To clarify/update on this last comment: this functionality overlaps with #464 - @mirca’s #427 got merged without this because we wanted it in soon, but indeed it should be possible to fit sigma as you say here.

@Gabriel-p - The one caveat is that you almost never want to do this. For most PSF models, the scale parameter is known to become biased when S/N is very low. So the typical PSF workflow is that you derive the PSF model from bright stars, assuming that the PSF shape is independent of the star’s flux (because it’s all the same optics…), rather than independently fitting the shape for every star. So the current “primary” workflow planned is that you first produce a psf model (there will be functions/classes to do this down the road, but they’re not ready yet), and then you use that model with all the parameters except for the centers/flux fixed.

That said, there is a slightly different use case that this machinery is also meant for: model-fitting photometry. That is, maybe your field has some stars and some galaxies, and for the galaxies you want a more flexible model that accounts for shape. In that case you certainly do want this functionality (hence #464)

1reaction
mircacommented, Oct 10, 2016

@Gabriel-p sigma could be left as a parameter to be fitted. However, the results on the fitted sigma wouldn’t show up in the output table of DAOPhotPSFPhotometry because the output table is hardwired to contain only the centroids and fluxes. I might change this behavior in #427

Read more comments on GitHub >

github_iconTop Results From Across the Web

Home · PSFModels.jl - JuliaAstro
The FWHM is a consistent scale parameter for the models. That means a gaussian with a FWHM of 5 will be visually similar...
Read more >
PSF Photometry (photutils.psf)
The first step is to estimate the sky background. For this task, photutils provides several classes to compute scalar and 2D backgrounds, see...
Read more >
How to calculate FWHM in origin - YouTube
fwhminorigin #calculatefwhminorigin #sayphysics0:00 calculating fwhm for xrd peaks using origin1:00 calculating fwhm in origin2:30 how to ...
Read more >
Fast Point Spread Function Modeling with Deep Learning - arXiv
We extract the most important features of the SDSS sample via principal ... ye(θ) is a vector of input parameters for our PSF...
Read more >
DynamicPSF - PixInsight Reference Documentation
Gaussian function, σx = 2σy, θ = 45°. Full Width at Half Maximum (FWHM). For all PSF model functions DynamicPSF computes two additional...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found