Skip to content
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

DAOFind + PSFPhotometry can conflict when masks are badly behaved #1802

Open
keflavich opened this issue Jul 8, 2024 · 0 comments
Open

DAOFind + PSFPhotometry can conflict when masks are badly behaved #1802

keflavich opened this issue Jul 8, 2024 · 0 comments
Labels

Comments

@keflavich
Copy link
Contributor

I got the following error:

ValueError: For one or more sources, the number of data points available to fit is less than the number of fit parameters. This could be due to a source(s) near the edge of the detector or if it has few unmasked pixels. Please check the input mask or source positions.

when using a mask for photometry. In this specific case, it's caused by this pixel:
image
(the background image is the boolean mask).

It would be a good idea to:

  • add a mechanism to reject daofind-found stars with too few unmasked pixels
  • skip such stars in fitting
  • and/or, document that islands smaller than the number of free parameters should be excluded from masks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants