Changeset 42267
- Timestamp:
- Aug 23, 2022, 11:35:52 AM (4 years ago)
- Location:
- branches/eam_branches/ipp-20220316/Ohana/src/relphot
- Files:
-
- 3 edited
-
include/relphot.h (modified) (1 diff)
-
src/args.c (modified) (1 diff)
-
src/bcatalog.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/Ohana/src/relphot/include/relphot.h
r42166 r42267 470 470 int PRESERVE_PS1; 471 471 int REQUIRE_PSFFIT; 472 int USE_APER_FOR_STARGAL; 472 473 int UPDATE; 473 474 int SAVE_IMAGE_UPDATES; -
branches/eam_branches/ipp-20220316/Ohana/src/relphot/src/args.c
r42166 r42267 247 247 REQUIRE_PSFFIT = TRUE; 248 248 } 249 USE_APER_FOR_STARGAL = FALSE; 250 if ((N = get_argument (argc, argv, "-use-aper-for-stargal"))) { 251 remove_argument (N, &argc, argv); 252 USE_APER_FOR_STARGAL = TRUE; 253 } 249 254 250 255 UPDATE = FALSE; -
branches/eam_branches/ipp-20220316/Ohana/src/relphot/src/bcatalog.c
r41647 r42267 82 82 if (DophotSelect && ((catalog[0].measure[offset].photFlags >> 16) != DophotValue)) { Ndophot ++; continue; } 83 83 84 float Maper = USE_APER_FOR_STARGAL ? catalog[0].measure[offset].Map : catalog[0].measure[offset].Mkron; 85 84 86 // skip garbage measurements 85 87 if (isnan(catalog[0].measure[offset].psfQF) || (catalog[0].measure[offset].psfQF < 0.95)) { Npsfqf ++; continue; } 86 88 if (isnan(catalog[0].measure[offset].psfQFperf) || (catalog[0].measure[offset].psfQFperf < 0.95)) { Npsfqf ++; continue; } 87 89 if (isnan(catalog[0].measure[offset].M)) { Nnan ++; continue; } 88 if (isnan( catalog[0].measure[offset].Mkron)) { Nnan ++; continue; }90 if (isnan(Maper)) { Nnan ++; continue; } 89 91 90 92 // require 0x01 in photFlags (fitted with a PSF) -- add to the test data 91 93 if (REQUIRE_PSFFIT && (catalog[0].measure[offset].photFlags & 0x01) == 0) { Nbad ++; continue; } 92 94 93 // very loose cut on PSF - Kron94 float Mkp = catalog[0].measure[offset].M - catalog[0].measure[offset].Mkron;95 // very loose cut on PSF - APER mag (Map or Mkron) -- this lightly rejects galaxies & other oddities 96 float Mkp = catalog[0].measure[offset].M - Maper; 95 97 if (fabs(Mkp) > 1.0) { Nbad ++; continue; } 96 98 … … 101 103 if (catalog[0].measure[offset].photFlags & code->photomPoorMask) { Npoor++; continue;} 102 104 103 // check for galaxies (XXX skip for now) 104 if (FALSE && !isnan(catalog[0].measure[offset].Map)) { 105 if (catalog[0].measure[offset].M - catalog[0].measure[offset].Map > 0.15) { 106 nEXT ++; 107 } else { 108 nPSF ++; 109 } 105 // weak test for galaxies 106 if (Mkp > 0.5) { 107 nEXT ++; 108 } else { 109 nPSF ++; 110 110 } 111 111 … … 145 145 146 146 // skip object if it is likely to be a galaxy 147 if ( FALSE && (nEXT >= nPSF)) {147 if (nEXT >= nPSF) { 148 148 Nmeasure -= Nm; 149 149 Ngalaxy ++;
Note:
See TracChangeset
for help on using the changeset viewer.
