IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41643


Ignore:
Timestamp:
Jun 4, 2021, 5:38:43 PM (5 years ago)
Author:
tdeboer
Message:

change to handling of crosstalk

Location:
tags/ipp-ps1-20210510/psastro/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ps1-20210510/psastro/src/psastroLoadCrosstalk.c

    r41633 r41643  
    437437              }
    438438
    439 
    440439              //the source star needs to be bright enough to produce a crosstalk feature on the target chip/cell that is above the refmag
    441440              //float INSTR_CROSS_MAX_MAG = de->magRef - crossMagOff;
     
    451450                pmAstromObj *cal = calstars->data[i];
    452451                //kick out stars too faint to produce crosstalk with any rule
    453                 //if (cal->Mag > INSTR_CROSS_MAX_MAG) { continue; }
    454                 if (cal->Mag > (INSTR_CROSS_MAX_MAG-11.)) { continue; }
     452                if (cal->Mag > (INSTR_CROSS_MAX_MAG-6.)) { continue; }
    455453
    456454                // Identify which cell holds the star
     
    534532                    float TARGET_CROSS_MAX_MAG = tarde->magRef-crossMagOffset[k];
    535533                    if (cal->Mag > TARGET_CROSS_MAX_MAG) { continue; }
    536 
    537534                    pmAstromObj *crosstalk = pmAstromObjAlloc();
    538535           
     
    630627                // This is the source of the ct.
    631628                pmAstromObj *ref = refstars->data[i];
    632 
    633                 if (ref->Mag > CROSS_MAX_MAG-11.) { continue; }
     629                if (ref->Mag > (CROSS_MAX_MAG-6.)) { continue; }
    634630
    635631                // Identify which cell holds the star
  • tags/ipp-ps1-20210510/psastro/src/psastroLoadGhosts.c

    r41642 r41643  
    179179        //Check if we are in the central 8 chips, where old ghost-style locations work better
    180180        int cenChip = 0;
    181         if ( (Y >= 3)&&(Y <=4)&&(X >= 2)&&(X <= 5) ) {cenChip = 1;}
     181        if ( (Y >= 3)&&(Y <=4)&&(X >= 2)&&(X <= 5) ) {cenChip = 0;}
    182182
    183183        while ((cell = pmFPAviewNextCell (view, fpa, 1)) != NULL) {
     
    208208
    209209                    double rSrc = hypot (cal->FP->x, cal->FP->y);
    210                     double theta0 = atan2(cal->FP->x,cal->FP->y);
     210                    double theta0 = atan2(cal->FP->y,cal->FP->x);
    211211
    212212                    if((mirCheck) & (!cenChip)) {
Note: See TracChangeset for help on using the changeset viewer.