Changeset 39609
- Timestamp:
- Jun 23, 2016, 1:20:46 PM (10 years ago)
- Location:
- trunk/Ohana/src/relphot/src
- Files:
-
- 3 edited
-
relphot_objects.c (modified) (1 diff)
-
select_images.c (modified) (3 diffs)
-
setMrelCatalog.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/src/relphot_objects.c
r39517 r39609 149 149 char *moddate = ohana_sec_to_date (now.tv_sec); 150 150 gfits_modify (&catalog.header, "RELPHOT", "%s", 1, moddate); 151 snprintf (history, 128, "repair warp measure.imageID: %s", moddate); 152 gfits_modify_alt (&catalog.header, "HISTORY", "%S", 0, history); // adds a new entry 151 if (REPAIR_WARPS) { 152 snprintf (history, 128, "repair warp measure.imageID: %s", moddate); 153 gfits_modify_alt (&catalog.header, "HISTORY", "%S", 0, history); // adds a new entry 154 } 153 155 free (moddate); 154 156 -
trunk/Ohana/src/relphot/src/select_images.c
r39517 r39609 34 34 35 35 INITTIME; 36 37 // FILE *ftest = fopen ("image.region.dat", "w"); 36 38 37 39 // the comparison is made in the catalog local projection. below we set crval1,2 … … 166 168 } 167 169 170 // fprintf (ftest, "%f %f : %f %f : %d %d\n", RminImage, RmaxImage, DminImage, DmaxImage, timage[i].tzero, timage[i].photcode); 171 168 172 // check that this image is even in range of the searched region 169 173 if (DminImage > DmaxSkyRegion) continue; … … 272 276 } 273 277 MARKTIME("\nfinish image selection: %f sec\n", dtime); 278 279 // fclose (ftest); 274 280 275 281 if (VERBOSE) fprintf (stderr, "found "OFF_T_FMT" images\n", nimage); -
trunk/Ohana/src/relphot/src/setMrelCatalog.c
r39517 r39609 706 706 } 707 707 708 // stack measurement used for 'best' was a detection (not forced from the other bands) 709 if ((measure[k].photFlags2 & 0x00000004) == 0) { 710 secfilt[Nsec].flags |= ID_SECF_STACK_BESTDET; 711 } 712 // stack measurement used for 'primary' was a detection (not forced from the other bands) 713 if ((stackPrimaryMeasure >= 0) && ((measure[stackPrimaryMeasure].photFlags2 & 0x00000004) == 0)) { 714 secfilt[Nsec].flags |= ID_SECF_STACK_PRIMDET; 715 } 716 708 717 secfilt[Nsec].flags |= ID_SECF_HAS_PS1_STACK; 709 718 } // Nsecfilt loop
Note:
See TracChangeset
for help on using the changeset viewer.
