Changeset 41643
- Timestamp:
- Jun 4, 2021, 5:38:43 PM (5 years ago)
- Location:
- tags/ipp-ps1-20210510/psastro/src
- Files:
-
- 2 edited
-
psastroLoadCrosstalk.c (modified) (4 diffs)
-
psastroLoadGhosts.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-ps1-20210510/psastro/src/psastroLoadCrosstalk.c
r41633 r41643 437 437 } 438 438 439 440 439 //the source star needs to be bright enough to produce a crosstalk feature on the target chip/cell that is above the refmag 441 440 //float INSTR_CROSS_MAX_MAG = de->magRef - crossMagOff; … … 451 450 pmAstromObj *cal = calstars->data[i]; 452 451 //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; } 455 453 456 454 // Identify which cell holds the star … … 534 532 float TARGET_CROSS_MAX_MAG = tarde->magRef-crossMagOffset[k]; 535 533 if (cal->Mag > TARGET_CROSS_MAX_MAG) { continue; } 536 537 534 pmAstromObj *crosstalk = pmAstromObjAlloc(); 538 535 … … 630 627 // This is the source of the ct. 631 628 pmAstromObj *ref = refstars->data[i]; 632 633 if (ref->Mag > CROSS_MAX_MAG-11.) { continue; } 629 if (ref->Mag > (CROSS_MAX_MAG-6.)) { continue; } 634 630 635 631 // Identify which cell holds the star -
tags/ipp-ps1-20210510/psastro/src/psastroLoadGhosts.c
r41642 r41643 179 179 //Check if we are in the central 8 chips, where old ghost-style locations work better 180 180 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;} 182 182 183 183 while ((cell = pmFPAviewNextCell (view, fpa, 1)) != NULL) { … … 208 208 209 209 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); 211 211 212 212 if((mirCheck) & (!cenChip)) {
Note:
See TracChangeset
for help on using the changeset viewer.
