- Timestamp:
- May 21, 2021, 11:11:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/relphot_objects.c
r41603 r41604 43 43 // load the ZP corrections here 44 44 if (SYNTH_ZERO_POINTS) SynthZeroPointsLoad (SYNTH_ZERO_POINTS); 45 46 if (REPAIR_WARPS) {47 FindWarpGroups ();48 MARKTIME("setup warp groups: %f sec\n", dtime);49 MakeStackIndex ();50 MARKTIME("setup stack index: %f sec\n", dtime);51 RepairWarpMeasuresOpenLogfile ();52 }53 45 54 46 // load data from each region file, only use bright stars … … 128 120 findMosaics (&catalog, 1, FALSE); 129 121 130 // update the detection coordinates using the new image parameters131 if (REPAIR_WARPS) RepairWarpMeasures (&catalog);132 133 122 initMrel (&catalog, 1); 134 123 setMrelFinal (&catalog, NULL, TRUE); … … 153 142 if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename); 154 143 155 char history[128];156 144 struct timeval now; 157 145 gettimeofday (&now, (void *) NULL); 158 146 char *moddate = ohana_sec_to_date (now.tv_sec); 159 147 gfits_modify (&catalog.header, "RELPHOT", "%s", 1, moddate); 160 if (REPAIR_WARPS) {161 snprintf (history, 128, "repair warp measure.imageID: %s", moddate);162 gfits_modify_alt (&catalog.header, "HISTORY", "%S", 0, history); // adds a new entry163 }164 148 free (moddate); 165 149 … … 184 168 freeMosaicBins (1, FALSE); 185 169 freeGridBins (); 186 }187 188 if (REPAIR_WARPS) {189 FreeWarpGroups ();190 FreeStackGroups ();191 RepairWarpMeasuresCloseLogfile ();192 170 } 193 171 … … 252 230 if (RESET) { strextend (&command, "-reset"); } 253 231 if (RESET_ZEROPTS) { strextend (&command, "-reset-zpts"); } 254 if (REPAIR_WARPS) { strextend (&command, "-repair-warps"); }255 232 if (PRESERVE_PS1) { strextend (&command, "-preserve-ps1"); } 256 233 if (IS_DIFF_DB) { strextend (&command, "-is-diff-db"); }
Note:
See TracChangeset
for help on using the changeset viewer.
