IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 21, 2021, 11:11:57 AM (5 years ago)
Author:
eugene
Message:

strip out the old code to repair warps (code moved to dvomerge)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20210521/src/relphot_objects.c

    r41603 r41604  
    4343  // load the ZP corrections here
    4444  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   }
    5345
    5446  // load data from each region file, only use bright stars
     
    128120    findMosaics (&catalog, 1, FALSE);
    129121
    130     // update the detection coordinates using the new image parameters
    131     if (REPAIR_WARPS) RepairWarpMeasures (&catalog);
    132 
    133122    initMrel (&catalog, 1);
    134123    setMrelFinal (&catalog, NULL, TRUE);
     
    153142    if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename);
    154143   
    155     char history[128];
    156144    struct timeval now;
    157145    gettimeofday (&now, (void *) NULL);
    158146    char *moddate = ohana_sec_to_date (now.tv_sec);
    159147    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 entry
    163     }
    164148    free (moddate);
    165149
     
    184168    freeMosaicBins (1, FALSE);
    185169    freeGridBins ();
    186   }
    187 
    188   if (REPAIR_WARPS) {
    189     FreeWarpGroups ();
    190     FreeStackGroups ();
    191     RepairWarpMeasuresCloseLogfile ();
    192170  }
    193171
     
    252230    if (RESET)             { strextend (&command, "-reset"); }
    253231    if (RESET_ZEROPTS)     { strextend (&command, "-reset-zpts"); }
    254     if (REPAIR_WARPS)      { strextend (&command, "-repair-warps"); }
    255232    if (PRESERVE_PS1)      { strextend (&command, "-preserve-ps1"); }
    256233    if (IS_DIFF_DB)        { strextend (&command, "-is-diff-db"); }
Note: See TracChangeset for help on using the changeset viewer.