IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 13, 2005, 3:35:20 PM (21 years ago)
Author:
eugene
Message:

substantial work to match with psLib v.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotMarkPSF.c

    r4949 r5048  
    1818// we also reject objects with S/N too low or ChiSquare to high
    1919
    20 // any object which meets the criterion is marked as PS_SOURCE_BRIGHTSTAR
     20// any object which meets the criterion is marked as PM_SOURCE_BRIGHTSTAR
    2121
    2222// floor for DS value
     
    3535    // remember: fit does not use saturated pixels (masked)
    3636    if (source->modelPSF->params->data.F32[1] >= SATURATE) {
    37         if (source->type == PS_SOURCE_PSFSTAR) {
     37        if (source->type == PM_SOURCE_PSFSTAR) {
    3838            psLogMsg ("psphot", 3, "PSFSTAR marked SATSTAR\n");
    3939        }
    40         source->type = PS_SOURCE_SATSTAR;
     40        source->type = PM_SOURCE_SATSTAR;
    4141        return (true);
    4242    }
    43     if (source->type == PS_SOURCE_SATSTAR) {
     43    if (source->type == PM_SOURCE_SATSTAR) {
    4444        psLogMsg ("psphot", 4, "SATSTAR marked GOODSTAR (fitted peak below saturation)\n");
    45         source->type = PS_SOURCE_GOODSTAR;
     45        source->type = PM_SOURCE_GOODSTAR;
    4646    }
    4747
     
    5757    nSy = dSY / hypot (MIN_DS, 1 / (SY * SN));
    5858
    59     // assign PS_SOURCE_GOODSTAR to bright objects within PSF region of dparams[]
     59    // assign PM_SOURCE_GOODSTAR to bright objects within PSF region of dparams[]
    6060    keep = TRUE;
    6161    keep &= (fabs(nSx) < shapeNsigma);
     
    6464    keep &= (Chi < maxChi);
    6565    if (keep) {
    66         if (source->type == PS_SOURCE_PSFSTAR) return (true);
    67         source->type = PS_SOURCE_GOODSTAR;
     66        if (source->type == PM_SOURCE_PSFSTAR) return (true);
     67        source->type = PM_SOURCE_GOODSTAR;
    6868        return (true);
    6969    }
    7070   
    71     if (source->type == PS_SOURCE_PSFSTAR) {
     71    if (source->type == PM_SOURCE_PSFSTAR) {
    7272        psLogMsg ("psphot", 3, "PSFSTAR demoted based on fit quality\n");
    7373    }
     
    7575    // object appears to be small, suspected defect
    7676    if ((nSx <= -shapeNsigma) || (nSy <= -shapeNsigma)) {
    77         source->type = PS_SOURCE_DEFECT;
     77        source->type = PM_SOURCE_DEFECT;
    7878        return (false);
    7979    }
     
    8181    // object appears to be large, suspected galaxy
    8282    if ((nSx >= shapeNsigma) || (nSy >= shapeNsigma)) {
    83         source->type = PS_SOURCE_GALAXY;
     83        source->type = PM_SOURCE_GALAXY;
    8484        return (false);
    8585    }
     
    8787    // object appears to be extremely faint: what is this?
    8888    if (SN < minSN) {
    89         source->type = PS_SOURCE_FAINTSTAR;
     89        source->type = PM_SOURCE_FAINTSTAR;
    9090        return (false);
    9191    }
    9292
    9393    // these are pooly fitted, probable stars near other stars?
    94     source->type = PS_SOURCE_POOR_FIT_PSF;
     94    source->type = PM_SOURCE_POOR_FIT_PSF;
    9595    return (false);
    9696}       
Note: See TracChangeset for help on using the changeset viewer.