Changeset 33549
- Timestamp:
- Mar 16, 2012, 9:54:39 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20111122/Ohana/src
- Files:
-
- 3 edited
-
relphot/src/StarOps.c (modified) (1 diff)
-
uniphot/src/match_zpts_to_images.c (modified) (3 diffs)
-
uniphot/src/update_catalog_setphot.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/StarOps.c
r33458 r33549 536 536 // set the output calibration 537 537 catalog[i].measure[m].Mcal = Mcal + Mmos + Mgrid; 538 539 if (catalog[i].measureT[m].dbFlags & ID_MEAS_PHOTOM_UBERCAL) { 540 myAssert (isfinite(catalog[i].measure[m].Mcal), "oops, broke an ubercal mag"); 541 } 538 542 } 539 543 } -
branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/match_zpts_to_images.c
r33329 r33549 44 44 image[i].dMcal = NAN; 45 45 image[i].flags &= ~ID_IMAGE_PHOTOM_NOCAL; // clear the NOCAL flag 46 if (UBERCAL) { 47 image[i].flags &= ~ID_IMAGE_PHOTOM_UBERCAL; // clear the UBERCAL flag 48 } 46 49 } 47 50 } … … 52 55 // if (i % 1000 == 0) fprintf (stderr, "."); 53 56 // if (Nz % 100 == 0) fprintf (stderr, "!"); 57 58 if (!isfinite(zpts[Nz].zpt)) { 59 Nz++; 60 continue; 61 } 54 62 55 63 Ni = index[i]; … … 81 89 if (UBERCAL) { 82 90 image[Ni].Mcal = SCALE*code[0].C - zpts[Nz].zpt + 2.5*log10(image[Ni].exptime) + code[0].K*(image[Ni].secz - 1.000); 91 myAssert (isfinite(image[Ni].Mcal), "oops, ubercal made a nan image"); 83 92 } else { 84 93 image[Ni].Mcal = SCALE*code[0].C - zpts[Nz].zpt; -
branches/eam_branches/ipp-20111122/Ohana/src/uniphot/src/update_catalog_setphot.c
r33241 r33549 26 26 catalog[0].measure[m].Mcal = Mcal - Mcal_offset; 27 27 catalog[0].measure[m].dMcal = dMcal; 28 myAssert(isfinite(catalog[0].measure[m].Mcal), "oops: ubercal made a nan"); 28 29 29 30 // if we are setting the zero points from an UBERCAL database, and this detection is from one of those images,
Note:
See TracChangeset
for help on using the changeset viewer.
