Changeset 42389 for trunk/Ohana/src/relphot
- Timestamp:
- Feb 8, 2023, 12:17:35 PM (3 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 6 edited
-
. (modified) (1 prop)
-
src/relphot (modified) (1 prop)
-
src/relphot/include/relphot.h (modified) (1 diff)
-
src/relphot/src/args.c (modified) (1 diff)
-
src/relphot/src/bcatalog.c (modified) (3 diffs)
-
src/relphot/src/save_images.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
trunk/Ohana/src/relphot
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20220316/Ohana/src/relphot (added) merged: 42166,42267,42345,42361
- Property svn:mergeinfo changed
-
trunk/Ohana/src/relphot/include/relphot.h
r42135 r42389 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; -
trunk/Ohana/src/relphot/src/args.c
r42135 r42389 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; -
trunk/Ohana/src/relphot/src/bcatalog.c
r41647 r42389 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 ++; -
trunk/Ohana/src/relphot/src/save_images.c
r41556 r42389 19 19 20 20 char filename[1024]; 21 snprintf (filename, 1024, "%s.bck", ImageCat); // ImageCat is global21 snprintf_nowarn (filename, 1024, "%s.bck", ImageCat); // ImageCat is global 22 22 if (!gfits_db_lock (&dbX, filename)) { 23 23 fprintf (stderr, "can't lock backup image image catalog\n"); … … 85 85 dbX.format = db->format; 86 86 87 snprintf (filename, 1024, "%s.bck", ImageCat);87 snprintf_nowarn (filename, 1024, "%s.bck", ImageCat); 88 88 if (!gfits_db_lock (&dbX, filename)) { 89 89 fprintf (stderr, "can't lock backup image image catalog\n");
Note:
See TracChangeset
for help on using the changeset viewer.
