IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 27, 2021, 11:41:52 AM (5 years ago)
Author:
eugene
Message:

consolidate reset operations for clarity

File:
1 edited

Legend:

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

    r41615 r41620  
    9090    initTGroupBins (&catalog, 1);
    9191
    92     initGridBins   (&catalog, 1);
     92    initGridBins   ();
    9393    TIMESTAMP(time3b);
    9494
     
    237237    char *command = NULL;
    238238    strextend (&command, "relphot_client %s -update-catalogs %s", PhotcodeList, imageFile);
    239     strextend (&command, "-hostID %d -D CATDIR %s -hostdir %s", group->hosts[i][0].hostID, CATDIR, group->hosts[i][0].pathname);
     239    strextend (&command, "-hostID %d", group->hosts[i][0].hostID);
     240    strextend (&command, "-D CATDIR %s", CATDIR);
     241    strextend (&command, "-hostdir %s", group->hosts[i][0].pathname);
    240242    strextend (&command, "-region %f %f %f %f", UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax);
    241243    strextend (&command, "-statmode %s", STATMODE);
    242244    strextend (&command, "-D CAMERA %s", CAMERA);
    243     strextend (&command, "-D STAR_TOOFEW %d -minerror %f", STAR_TOOFEW, MIN_ERROR);
    244 
    245     // options & configs which affect relphot_client -update-catalogs
    246     // VERBOSE, VERBOSE2
    247     // RESET
    248     // RESET_ZEROPTS
    249     // TimeSelect
    250     // AreaSelect
    251     // STATMODE
    252     // STAR_TOOFEW
    253     // MIN_ERROR
    254    
     245    strextend (&command, "-D STAR_TOOFEW %d", STAR_TOOFEW);
     246    strextend (&command, "-minerror %f", MIN_ERROR);
     247
    255248    if (VERBOSE)           { strextend (&command, "-v"); }
    256249    if (VERBOSE2)          { strextend (&command, "-vv"); }
    257250    if (RESET)             { strextend (&command, "-reset"); }
    258251    if (RESET_ZEROPTS)     { strextend (&command, "-reset-zpts"); }
     252    if (RESET_FLATCORR)    { strextend (&command, "-reset-flat"); }
     253    if (!KEEP_UBERCAL)     { strextend (&command, "-reset-ubercal"); }
    259254    if (PRESERVE_PS1)      { strextend (&command, "-preserve-ps1"); }
     255    if (IS_DIFF_DB)        { strextend (&command, "-is-diff-db"); }
    260256    if (UPDATE)            { strextend (&command, "-update"); }
    261     if (IS_DIFF_DB)        { strextend (&command, "-is-diff-db"); }
    262     if (!KEEP_UBERCAL)     { strextend (&command, "-reset-ubercal"); }
    263257    if (UPDATE_CATFORMAT)  { strextend (&command, "-update-catformat %s", UPDATE_CATFORMAT); }
    264258    if (BOUNDARY_TREE)     { strextend (&command, "-boundary-tree %s", BOUNDARY_TREE); }
     
    266260    if (GRID_ZEROPT)       { strextend (&command, "-grid %s", GRID_MEANFILE); }
    267261    if (USE_BASIC_CHECK)   {  strextend (&command, "-basic-image-search"); }
     262    // if (USE_ALL_IMAGES)    { strextend (&command, "-use-all-images"); }
    268263    if (USE_MCAL_PSF_FOR_STACK_APER) { strextend (&command, "-use-mcal-psf-for-stack-aper"); }
    269264
Note: See TracChangeset for help on using the changeset viewer.