Changeset 41624
- Timestamp:
- May 28, 2021, 10:15:35 AM (5 years ago)
- Location:
- branches/eam_branches/relphot.20210521
- Files:
-
- 10 edited
-
include/relphot.h (modified) (2 diffs)
-
src/ResetOps.c (modified) (3 diffs)
-
src/StarOps.c (modified) (4 diffs)
-
src/args.c (modified) (1 diff)
-
src/bcatalog.c (modified) (1 diff)
-
src/reload_catalogs.c (modified) (1 diff)
-
src/relphot_images.c (modified) (2 diffs)
-
src/select_images.c (modified) (1 diff)
-
src/setMrelCatalog.c (modified) (1 diff)
-
src/setMrelFinal.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/include/relphot.h
r41620 r41624 445 445 int REPAIR_WARPS; 446 446 int PRESERVE_PS1; 447 int REQUIRE_PSFFIT; 447 448 int UPDATE; 448 449 int SAVE_IMAGE_UPDATES; … … 735 736 736 737 int print_measure_set_alt (Average *average, SecFilt *secfilt, Measure *measure); 737 int setMrel_catalog_alt (Catalog *catalog, int Nc, int isSetMrelFinal, SetMrelInfo *results, int Nsecfilt); 738 739 // in setMrelCatalog.c: 740 int setMrelCatalog (Catalog *catalog, int Nc, int isSetMrelFinal, SetMrelInfo *results, int Nsecfilt); 738 741 int setMrelAverageExposure (Catalog *catalog, int cat, off_t ave, int Nsecfilt, int isSetMrelFinal, SetMrelInfo *results); 739 742 int setMrelAverageStack (Catalog *catalog, int cat, off_t ave, int Nsecfilt); -
branches/eam_branches/relphot.20210521/src/ResetOps.c
r41623 r41624 39 39 40 40 41 // Used in bcatalog.c 41 // Used in bcatalog.c, applied to the subset catalogs (bright, good stars used for calibration) 42 42 void ResetAverageActivePhotcodes (SecFilt *secfilt) { 43 43 … … 56 56 } 57 57 58 // Used in bcatalog.c 58 // Used in bcatalog.c, applied to the selected measurements which are already selected by photcode 59 59 void ResetMeasureZeroPoints (MeasureTiny *measure, off_t Nmeasure, off_t Ncat) { 60 60 … … 78 78 } 79 79 80 // Used in load_images.c: 81 // XXX NOTE : This resets all images regardless of active photcode 80 // Used in load_images.c. Applied to the subset of selected images used for the calibration. 81 // This will be only those images in the selected region and only those with the active 82 // photcode *unless* -use-all-images is selected. 82 83 void ResetImages (Image *subset, off_t Nsubset) { 83 84 -
branches/eam_branches/relphot.20210521/src/StarOps.c
r41607 r41624 14 14 void *setMrel_worker (void *data); 15 15 int setMrel_threaded (Catalog *catalog, int Ncatalog); 16 int setMrel_catalog (Catalog *catalog, int Nc, int pass, SetMrelInfo *results, int Nsecfilt);17 16 int print_measure_set (Average *average, SecFilt *secfilt, Measure *measure); 18 17 … … 315 314 316 315 for (i = 0; i < Ncatalog; i++) { 317 setMrel _catalog_alt(catalog, i, FALSE, &results, Nsecfilt);316 setMrelCatalog (catalog, i, FALSE, &results, Nsecfilt); 318 317 SetMrelInfoAccum (&summary, &results); 319 318 } … … 338 337 339 338 for (i = 0; i < Ncatalog; i++) { 340 setMrel _catalog_alt(catalog, i, TRUE, &results, Nsecfilt);339 setMrelCatalog (catalog, i, TRUE, &results, Nsecfilt); 341 340 SetMrelInfoAccum (&summary, &results); 342 341 } … … 436 435 Catalog *catalog = threadinfo->catalog; 437 436 438 setMrel _catalog_alt(catalog, i, FALSE, &results, Nsecfilt);437 setMrelCatalog (catalog, i, FALSE, &results, Nsecfilt); 439 438 SetMrelInfoAccum (&threadinfo->summary, &results); 440 439 } -
branches/eam_branches/relphot.20210521/src/args.c
r41623 r41624 241 241 remove_argument (N, &argc, argv); 242 242 PRESERVE_PS1 = TRUE; 243 } 244 REQUIRE_PSFFIT = FALSE; 245 if ((N = get_argument (argc, argv, "-require-psffit"))) { 246 remove_argument (N, &argc, argv); 247 REQUIRE_PSFFIT = TRUE; 243 248 } 244 249 -
branches/eam_branches/relphot.20210521/src/bcatalog.c
r41620 r41624 89 89 90 90 // require 0x01 in photFlags (fitted with a PSF) -- add to the test data 91 // XXX EAM : test is inconsistent -- fix if ((catalog[0].measure[offset].photFlags & 0x01) == 0) { Nbad ++; continue; }91 if (REQUIRE_PSFFIT && (catalog[0].measure[offset].photFlags & 0x01) == 0) { Nbad ++; continue; } 92 92 93 93 // very loose cut on PSF - Kron -
branches/eam_branches/relphot.20210521/src/reload_catalogs.c
r41623 r41624 85 85 initMrel (&catalog, 1); 86 86 87 setMflatFromGrid (&catalog); // Mgrid is used to set Mflat; Mgrid is the ignored in setMrelFinal/setMrelCatalog.c88 87 setMrelFinal (&catalog, FALSE); 89 88 TIMESTAMP(time6); -
branches/eam_branches/relphot.20210521/src/relphot_images.c
r41623 r41624 96 96 SetZptIteration (i); 97 97 98 setMrel (catalog, Ncatalog); // threaded (calls setMrel _catalog_alt in setMrelCatalog.c)98 setMrel (catalog, Ncatalog); // threaded (calls setMrelCatalog) 99 99 100 100 setMcal (catalog); … … 177 177 clients */ 178 178 if (!CALIBRATE_STACKS_AND_WARPS) { 179 reload_catalogs (skylist, 0, NULL); // calls setMrelFinal which setMrelOutput which calls setMrel _catalog_alt179 reload_catalogs (skylist, 0, NULL); // calls setMrelFinal which setMrelOutput which calls setMrelCatalog 180 180 MARKTIME("-- updated all catalogs: %f sec\n", dtime); 181 181 } -
branches/eam_branches/relphot.20210521/src/select_images.c
r41620 r41624 103 103 if (!(i % 300000)) fprintf (stderr, "."); 104 104 105 / * exclude images by photcode (we are not doing this, but I'm not sure why) */105 // only include active photcodes in the analysis 106 106 if (timage[i].photcode) { 107 107 int Ns = GetActivePhotcodeIndex (timage[i].photcode); -
branches/eam_branches/relphot.20210521/src/setMrelCatalog.c
r41620 r41624 60 60 int useOLS = TRUE; // chosen based on iteration below 61 61 62 int setMrel _catalog_alt(Catalog *catalog, int Nc, int isSetMrelFinal, SetMrelInfo *results, int Nsecfilt) {62 int setMrelCatalog (Catalog *catalog, int Nc, int isSetMrelFinal, SetMrelInfo *results, int Nsecfilt) { 63 63 64 64 off_t j; -
branches/eam_branches/relphot.20210521/src/setMrelFinal.c
r41623 r41624 27 27 ALLOCATE (catalog[0].measureRank, char, catalog[0].Nmeasure); 28 28 setMeasureRank (catalog); 29 30 setMflatFromGrid (catalog); // Mgrid is used to set Mflat; Mgrid is the ignored in setMrelOutput / setMrelCatalog 29 31 setMrelOutput (catalog, 1); // sets the values secfilt.MpsfChp = <measure.M - image.Mcal - measure.Mflat> 30 32 setMcalOutput (catalog, 1); // sets measure.Mcal = image.Mcal 31 33 32 /* clear ID_OBJ_POOR, ID_OBJ_FEW values before writing ??? */ 33 /* ID_MEAS_NOCAL is an internal bit, so it should be cleared */ 34 // clear ID_OBJ_POOR, ID_OBJ_FEW, ID_MEAS_NOCAL values before writing 35 // These are internal bits, so they should be cleared 36 // XXX are these still used? 34 37 // XXX eventually: move these internal flags to an internal-only catalog->FOO element (like found) 35 38 for (i = 0; i < catalog[0].Naverage; i++) { … … 83 86 int print_measure_set (Average *average, SecFilt *secfilt, Measure *measure); 84 87 88 // XXX this function is no longer used: 85 89 void skip_measurements (Catalog *catalog, int pass) { 86 90
Note:
See TracChangeset
for help on using the changeset viewer.
