IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36670 for trunk


Ignore:
Timestamp:
Apr 16, 2014, 2:43:36 PM (12 years ago)
Author:
watersc1
Message:

After looking at a test sample of images with the new crosstalks, it looks like this masking is doing the right thing. The masks are a overly large for the brightest source stars, but are the correct size for the majority of the events.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroLoadCrosstalk.c

    r33851 r36670  
    108108  SPIKE_MAX_MAG = psMetadataLookupF32(&status, recipe, "REFSTAR_MASK_BLEED_MAG_MAX");
    109109  SPIKE_MAX_MAG += MagOffset;
    110  
     110  psTraceSetLevel("psastro.crosstalk",2); 
    111111  psTrace("psastro.crosstalk",2,"%f %f %f %f\n",zeropt,exptime,MAX_MAG,MagOffset);
    112112
     
    147147          // Check each reference star
    148148          for (int i = 0; i < refstars->n; i++) {
     149            // This is the source of the ct.
    149150            pmAstromObj *ref = refstars->data[i];
    150151
     
    174175
    175176            float x_t_chip,y_t_chip;
    176 
     177            int faint_ct = 0;
    177178            pmCellCoordsForChip(&x_cell,&y_cell,CTsourceCell,ref->chip->x,ref->chip->y);
    178179
     
    180181            y_t_cell = y_cell;
    181182
     183            // 2014-04-15 CZW: Here are the list of known cross talks:
     184            // Inter-chip
     185            // OTA2yXY3v <=> OTA3yXY3v
     186            // OTA4yXY3v <=> OTA5yXY3v
     187            // Intra-chip
     188            // OTA2yXY5v <=> OTA2yXY6v
     189            // OTA5yXY5v <=> OTA5yXY6v
     190            // One way fainter
     191            // OTA2yXY7v => OTA3yXY2v
     192            // OTA5yXY7v => OTA4yXY2v
    182193            // Determine if this combination of chip and cell produces a crosstalk artifact
    183             if ((X == 2)&&(! ((U == 3)||(U == 5)||(U == 6)))) {
     194            if ((X == 2)&&(! ((U == 3)||(U == 5)||(U == 6)||(U == 7)))) {
    184195              psTrace ("psastro.crosstalk",2,"Cell (%d%d) on chip (%d%d) not a known crosstalk source.",U,V,X,Y);
     196              psTrace ("psastro.crosstalk",2,"t1: %d t2: %d",
     197                       (X == 2),
     198                       (! ((U == 3)||(U == 5)||(U == 6)||(U == 7))));
    185199              continue;
    186200            }
     
    193207              continue;
    194208            }
    195             if ((X == 5)&&(! ((U == 3)||(U == 5)||(U == 6)))) {
     209            if ((X == 5)&&(! ((U == 3)||(U == 5)||(U == 6)||(U == 7)))) {
    196210              psTrace ("psastro.crosstalk",2,"Cell (%d%d) on chip (%d%d) not a known crosstalk source.",U,V,X,Y);
    197211              continue;
     
    212226                Ut = 5;
    213227              }
     228              if (U == 7) {
     229                Xt = 3;
     230                Ut = 2;
     231                faint_ct = 1;
     232              }
    214233            }
    215234            else if (X == 3) {
     
    229248                Ut = 5;
    230249              }
     250              if (U == 7) {
     251                Xt = 4;
     252                Ut = 2;
     253                faint_ct = 1;
     254              }
    231255            }
    232256
     
    284308
    285309            // Determine if we need to add a spike mask.
     310            // CZW 2014-04-15 I'm not adding the new faint CT to this operation.  There's no evidence they produce such things.
    286311/*          psWarning("BLAH: %g %g %g\n",ref->Mag,MagOffset,SPIKE_MAX_MAG); */
    287312            if (ref->Mag < SPIKE_MAX_MAG) {
Note: See TracChangeset for help on using the changeset viewer.