Skip to content

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

@keflavich

Description

@keflavich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions