Changeset 33408
- Timestamp:
- Mar 5, 2012, 2:40:05 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20111122/Ohana/src
- Files:
-
- 5 edited
-
libautocode/def/photcode-ps1-v3.d (modified) (2 diffs)
-
libautocode/def/photcode.d (modified) (2 diffs)
-
relphot/src/BrightCatalog.c (modified) (1 diff)
-
relphot/src/StarOps.c (modified) (2 diffs)
-
relphot/src/bcatalog.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/libautocode/def/photcode-ps1-v3.d
r33397 r33408 2 2 EXTNAME DVO_PHOTCODE_PS1_V3 3 3 TYPE BINTABLE 4 SIZE 1 044 SIZE 112 5 5 DESCRIPTION DVO Photcode Description Table 6 6 … … 22 22 FIELD astromErrScale, ASTROM_ERR_SCALE, float, astrometric error scale 23 23 FIELD astromErrMagScale, ASTROM_ERR_MAG_SCALE, float, astrometric error / mag error scale 24 FIELD astromPoorMask, ASTROM_POOR_MASK, short,detections matching this mask should only be used in emergencies25 FIELD astromBadMask, ASTROM_BAD_MASK, short,detections matching this mask should not be used24 FIELD astromPoorMask, ASTROM_POOR_MASK, int, detections matching this mask should only be used in emergencies 25 FIELD astromBadMask, ASTROM_BAD_MASK, int, detections matching this mask should not be used 26 26 FIELD photomErrSys, PHOTOM_ERR_SYS, float, systematic photometric error 27 FIELD photomPoorMask, PHOTOM_POOR_MASK, short,detections matching this mask should only be used in emergencies28 FIELD photomBadMask, PHOTOM_BAD_MASK, short,detections matching this mask should not be used27 FIELD photomPoorMask, PHOTOM_POOR_MASK, int, detections matching this mask should only be used in emergencies 28 FIELD photomBadMask, PHOTOM_BAD_MASK, int, detections matching this mask should not be used 29 29 30 30 # dR_total^2 = dR_sys^2 + AS * dR_obs^2 + MS * dM_obs^2 -
branches/eam_branches/ipp-20111122/Ohana/src/libautocode/def/photcode.d
r17189 r33408 2 2 EXTNAME DVO_PHOTCODE_RAW 3 3 TYPE BINTABLE 4 SIZE 1 044 SIZE 112 5 5 DESCRIPTION DVO Photcode Description Table 6 6 … … 22 22 FIELD astromErrScale, ASTROM_ERR_SCALE, float, astrometric error scale 23 23 FIELD astromErrMagScale, ASTROM_ERR_MAG_SCALE, float, astrometric error / mag error scale 24 FIELD astromPoorMask, ASTROM_POOR_MASK, short,detections matching this mask should only be used in emergencies25 FIELD astromBadMask, ASTROM_BAD_MASK, short,detections matching this mask should not be used24 FIELD astromPoorMask, ASTROM_POOR_MASK, int, detections matching this mask should only be used in emergencies 25 FIELD astromBadMask, ASTROM_BAD_MASK, int, detections matching this mask should not be used 26 26 FIELD photomErrSys, PHOTOM_ERR_SYS, float, systematic photometric error 27 FIELD photomPoorMask, PHOTOM_POOR_MASK, short,detections matching this mask should only be used in emergencies28 FIELD photomBadMask, PHOTOM_BAD_MASK, short,detections matching this mask should not be used27 FIELD photomPoorMask, PHOTOM_POOR_MASK, int, detections matching this mask should only be used in emergencies 28 FIELD photomBadMask, PHOTOM_BAD_MASK, int, detections matching this mask should not be used 29 29 30 30 # dR_total^2 = dR_sys^2 + AS * dR_obs^2 + MS * dM_obs^2 -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/BrightCatalog.c
r33391 r33408 257 257 gfits_define_bintable_column (&theader, "J", "IMAGE_ID", "image", NULL, 1.0, 1.0*0x8000); 258 258 gfits_define_bintable_column (&theader, "J", "DB_FLAGS", "flags", NULL, 1.0, 1.0*0x8000); 259 gfits_define_bintable_column (&theader, "J", "PHOT_FLAGS", "photflags", NULL, 1.0, 1.0*0x8000); 259 260 gfits_define_bintable_column (&theader, "J", "CAT_ID", "catalog", NULL, 1.0, 1.0*0x8000); 260 261 gfits_define_bintable_column (&theader, "I", "PHOTCODE", "photcode", NULL, 1.0, 1.0*0x80); -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/StarOps.c
r33406 r33408 670 670 float mySigma = hypot (stats.sigma, dlist[k]); 671 671 if (fabs (list[k] - stats.median) > NSIGMA_REJECT*mySigma) { 672 // fprintf (f, "%10.6f %10.6f %d %f %f %f %f 0x%08x\n", catalog[i].averageT[j].R, catalog[i].averageT[j].D, catalog[i].measureT[ilist[k]].imageID, list[k], stats.median, stats.sigma, mySigma, catalog[i].measureT[ilist[k]].photFlags);673 672 catalog[i].measureT[ilist[k]].dbFlags |= ID_MEAS_POOR_PHOTOM; 674 673 if (final) { … … 677 676 } 678 677 Ndel ++; 679 } else {680 if (catalog[i].measureT[ilist[k]].photFlags & 0x02) {681 fprintf (stderr, "failed to mark %10.6f %10.6f %d\n", catalog[i].averageT[j].R, catalog[i].averageT[j].D, catalog[i].measureT[ilist[k]].imageID);682 }683 678 } 684 679 } -
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/bcatalog.c
r33391 r33408 130 130 if (isnan(catalog[0].measure[offset].M)) { Nnan ++; continue; } 131 131 132 if (catalog[0].measure[offset].photFlags & code->photomBadMask) { Nbad++; continue;} 132 if (catalog[0].measure[offset].photFlags & code->photomBadMask) { 133 Nbad++; 134 continue; 135 } 133 136 if (catalog[0].measure[offset].photFlags & code->photomPoorMask) { Npoor++; continue;} 134 137 135 // check for galaxies 136 if ( !isnan(catalog[0].measure[offset].Map)) {138 // check for galaxies (XXX skip for now) 139 if (FALSE && !isnan(catalog[0].measure[offset].Map)) { 137 140 if (catalog[0].measure[offset].M - catalog[0].measure[offset].Map > 0.15) { 138 141 nEXT ++; … … 175 178 176 179 // skip object if it is likely to be a galaxy 177 if ( nEXT >= nPSF) {180 if (FALSE && (nEXT >= nPSF)) { 178 181 Nmeasure -= Nm; 179 182 Ngalaxy ++;
Note:
See TracChangeset
for help on using the changeset viewer.
