IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39609 for trunk


Ignore:
Timestamp:
Jun 23, 2016, 1:20:46 PM (10 years ago)
Author:
eugene
Message:

only add history about repair if repair is selected; add BESTDET and PRIMDET flags

Location:
trunk/Ohana/src/relphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/src/relphot_objects.c

    r39517 r39609  
    149149    char *moddate = ohana_sec_to_date (now.tv_sec);
    150150    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    }
    153155    free (moddate);
    154156
  • trunk/Ohana/src/relphot/src/select_images.c

    r39517 r39609  
    3434
    3535  INITTIME;
     36
     37  // FILE *ftest = fopen ("image.region.dat", "w");
    3638
    3739  // the comparison is made in the catalog local projection. below we set crval1,2
     
    166168    }
    167169
     170    // fprintf (ftest, "%f %f : %f %f : %d %d\n", RminImage, RmaxImage, DminImage, DmaxImage, timage[i].tzero, timage[i].photcode);
     171
    168172    // check that this image is even in range of the searched region
    169173    if (DminImage > DmaxSkyRegion) continue;
     
    272276  }
    273277  MARKTIME("\nfinish image selection: %f sec\n", dtime);
     278
     279  // fclose (ftest);
    274280
    275281  if (VERBOSE) fprintf (stderr, "found "OFF_T_FMT" images\n", nimage);
  • trunk/Ohana/src/relphot/src/setMrelCatalog.c

    r39517 r39609  
    706706    }
    707707
     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
    708717    secfilt[Nsec].flags |= ID_SECF_HAS_PS1_STACK;
    709718  } // Nsecfilt loop
Note: See TracChangeset for help on using the changeset viewer.