Changeset 36672
- Timestamp:
- Apr 16, 2014, 2:46:29 PM (12 years ago)
- Location:
- tags/ipp-20130712/psastro/src
- Files:
-
- 2 edited
-
psastroLoadCrosstalk.c (modified) (8 diffs, 1 prop)
-
psastroMaskUpdates.c (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20130712/psastro/src/psastroLoadCrosstalk.c
- Property svn:mergeinfo set to
r33851 r36672 108 108 SPIKE_MAX_MAG = psMetadataLookupF32(&status, recipe, "REFSTAR_MASK_BLEED_MAG_MAX"); 109 109 SPIKE_MAX_MAG += MagOffset; 110 110 // psTraceSetLevel("psastro.crosstalk",2); 111 111 psTrace("psastro.crosstalk",2,"%f %f %f %f\n",zeropt,exptime,MAX_MAG,MagOffset); 112 112 … … 147 147 // Check each reference star 148 148 for (int i = 0; i < refstars->n; i++) { 149 // This is the source of the ct. 149 150 pmAstromObj *ref = refstars->data[i]; 150 151 … … 174 175 175 176 float x_t_chip,y_t_chip; 176 177 int faint_ct = 0; 177 178 pmCellCoordsForChip(&x_cell,&y_cell,CTsourceCell,ref->chip->x,ref->chip->y); 178 179 … … 180 181 y_t_cell = y_cell; 181 182 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 182 193 // 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)))) { 184 195 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)))); 185 199 continue; 186 200 } … … 193 207 continue; 194 208 } 195 if ((X == 5)&&(! ((U == 3)||(U == 5)||(U == 6) ))) {209 if ((X == 5)&&(! ((U == 3)||(U == 5)||(U == 6)||(U == 7)))) { 196 210 psTrace ("psastro.crosstalk",2,"Cell (%d%d) on chip (%d%d) not a known crosstalk source.",U,V,X,Y); 197 211 continue; … … 212 226 Ut = 5; 213 227 } 228 if (U == 7) { 229 Xt = 3; 230 Ut = 2; 231 faint_ct = 1; 232 } 214 233 } 215 234 else if (X == 3) { … … 229 248 Ut = 5; 230 249 } 250 if (U == 7) { 251 Xt = 4; 252 Ut = 2; 253 faint_ct = 1; 254 } 231 255 } 232 256 … … 284 308 285 309 // 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. 286 311 /* psWarning("BLAH: %g %g %g\n",ref->Mag,MagOffset,SPIKE_MAX_MAG); */ 287 312 if (ref->Mag < SPIKE_MAX_MAG) { -
tags/ipp-20130712/psastro/src/psastroMaskUpdates.c
- Property svn:mergeinfo set to
Note:
See TracChangeset
for help on using the changeset viewer.
