Skip to content

Make PSF/PRF fitting robust to NaN values #49

Closed

Description

@astrofrog

As commented in #26:

It may be that we should make sure the fitting is robust to there being NaN values in the PRF. At the end of the day, if the PRF has NaN values, we should just ignore them with the fitting and fit only where there are valid model and data values?

Activity

  1. added this to the milestone on May 18, 2014
  2. cdeil commented on May 21, 2014

    @cdeil
    Member

    I don't understand why one needs code to deal with NaN values in the PSF / PRF.

    That images can contain NaN values because of e.g. cosmic rays or dead pixels or whatever I get, but can't one simply ignore stars with such problems when estimating the PSF / PRF from data. This way the PSF / PRF would never contain NaN values.

    Related: #63

  3. bsipocz commented on May 21, 2014

    @bsipocz
    Member

    Do we really want to ignore the whole stars when there is one NaN pixel in its PSF? Surethe fluxerror may reflect that it had some problems, maybe also introducing a badpixel or similar flag. Or I may just misunderstood it, and you mean to ignore the star when the fitting returned with NaN?

  4. cdeil commented on May 21, 2014

    @cdeil
    Member

    I'm not sure ... let's discuss on the hangout tomorrow, OK?

  5. astrofrog commented on May 21, 2014

    @astrofrog
    MemberAuthor

    Oh, I'm not suggesting ignoring the whole star - I just mean that when I tried, one NaN value in one pixel could mess everything up, so I'm just suggesting being more robust to NaN values and treating it like missing data (rather than having it mess up the calculation).

  6. removed this from the milestone on Apr 29, 2015
  7. pkrskr commented on Mar 18, 2016

    @pkrskr

    Hi!
    I wish to be of some help here. Please provide me with any relevant pointers if possible.

  8. larrybradley commented on Nov 23, 2016

    @larrybradley
    Member

    This was implemented in #159.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    psfphotutils.psf subpackage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions