IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39342 for trunk


Ignore:
Timestamp:
Feb 11, 2016, 11:32:04 AM (10 years ago)
Author:
eugene
Message:

add option to accept pm from source database

Location:
trunk/Ohana/src/dvomerge
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvomerge/include/dvomerge.h

    r39334 r39342  
    3030int    VERIFY_CATALOG_ONLY;
    3131int    IMAGES_ONLY;
     32int    ACCEPT_MOTION;
    3233char   CATDIR[DVO_MAX_PATH];
    3334char   GSCFILE[DVO_MAX_PATH];
  • trunk/Ohana/src/dvomerge/src/args.c

    r39334 r39342  
    8888    remove_argument (N, argc, argv);
    8989    MAX_CLIENTS = atoi(argv[N]);
     90    remove_argument (N, argc, argv);
     91  }
     92
     93  /* limit the impact of a dvomerge -parallel */
     94  ACCEPT_MOTION = FALSE;
     95  if ((N = get_argument (*argc, argv, "-accept-motion"))) {
     96    remove_argument (N, argc, argv);
     97    ACCEPT_MOTION = TRUE;
    9098    remove_argument (N, argc, argv);
    9199  }
     
    299307  }
    300308
     309  /* limit the impact of a dvomerge -parallel */
     310  ACCEPT_MOTION = FALSE;
     311  if ((N = get_argument (*argc, argv, "-accept-motion"))) {
     312    remove_argument (N, argc, argv);
     313    ACCEPT_MOTION = TRUE;
     314    remove_argument (N, argc, argv);
     315  }
     316
    301317  /* extra error messages */
    302318  MATCHED_TABLES = FALSE;
  • trunk/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c

    r39340 r39342  
    316316               UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, RADIUS);
    317317
    318     if (VERBOSE)                    { strextend (&command, "-v"); }
    319     if (VERIFY)                     { strextend (&command, "-verify"); }
    320     if (VERIFY_CATALOG_ONLY)        { strextend (&command, "-verify-catalogs"); }
    321     if (REPLACE_BY_PHOTCODE)        { strextend (&command, "-replace"); }
    322     if (REPLACE_TYCHO)              { strextend (&command, "-replace-tycho"); }
    323     if (PARALLEL_INPUT)             { strextend (&command, "-parallel-input"); }
    324     if (FORCE_MERGE)                { strextend (&command, "-force-merge"); }
    325     if (MATCHED_TABLES)             { strextend (&command, "-matched-tables"); }
    326     if (MATCH_BY_EXTERN_ID)         { strextend (&command, "-match-by-extern-id"); }
     318    if (VERBOSE)             { strextend (&command, "-v"); }
     319    if (VERIFY)              { strextend (&command, "-verify"); }
     320    if (VERIFY_CATALOG_ONLY) { strextend (&command, "-verify-catalogs"); }
     321    if (REPLACE_BY_PHOTCODE) { strextend (&command, "-replace"); }
     322    if (REPLACE_TYCHO)       { strextend (&command, "-replace-tycho"); }
     323    if (PARALLEL_INPUT)      { strextend (&command, "-parallel-input"); }
     324    if (FORCE_MERGE)         { strextend (&command, "-force-merge"); }
     325    if (ACCEPT_MOTION)       { strextend (&command, "-accept-motion"); }
     326    if (MATCHED_TABLES)      { strextend (&command, "-matched-tables"); }
     327    if (MATCH_BY_EXTERN_ID)  { strextend (&command, "-match-by-extern-id"); }
     328    if (UPDATE_CATFORMAT)    { strextend (&command, "-update-catformat %s", UPDATE_CATFORMAT); }
     329    if (UPDATE_CATCOMPRESS)  { strextend (&command, "-update-catcompress %s", UPDATE_CATCOMPRESS); }
     330    if (CPTLIST_FILENAME)    { strextend (&command, "-restrict-cpt %s", CPTLIST_FILENAME); }
     331    if (REPAIR_BY_OBJID)     { strextend (&command, "-repair-by-objid"); }
    327332
    328333    if (SKIP_MEASURE)               { strextend (&command, "-skip-measure"); }
  • trunk/Ohana/src/dvomerge/src/dvorepairDeleteImagesByExternID_v2.c

    r39323 r39342  
    11# include "dvorepair.h"
     2
     3// dvorepairDeleteImagesByExternID and dvorepairDeleteImagesByExternID_v2 differ in only 2
     4// ways:
     5// 1) _v2 does NOT attempt to delete detections
     6// 2) _v2 uses the 2nd word on each line in the externID list and requires 3 words per
     7// line, while the other version requires 9 words per line (and also uses the 2nd word)
    28
    39// delete images based on a text table of the target IDs
  • trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c

    r39334 r39342  
    358358    }
    359359
     360    // we can choose to accept the proper-motion and parallax from the reference tgtcat
     361    if (ACCEPT_MOTION) {
     362      output[0].average[Nave].dR         = input[0].average[N].dR;
     363      output[0].average[Nave].dD         = input[0].average[N].dD;
     364      output[0].average[Nave].uR         = input[0].average[N].uR;
     365      output[0].average[Nave].uD         = input[0].average[N].uD;
     366      output[0].average[Nave].duR        = input[0].average[N].duR;
     367      output[0].average[Nave].duD        = input[0].average[N].duD;
     368      output[0].average[Nave].P          = input[0].average[N].P;
     369      output[0].average[Nave].dP         = input[0].average[N].dP;
     370      output[0].average[Nave].Tmean      = input[0].average[N].Tmean;
     371    }
     372
    360373    /* Nm is updated, but not written out in -update mode (for existing entries)
    361374       Nm is recalculated in build_meas_links if loaded table is not sorted */
     
    411424    output[0].average[Nave].objID          = objID; // we create objID values in the context of the output db
    412425    output[0].average[Nave].catID          = catID; // we create catID values in the context of the output db
     426
     427    // we can choose to accept the proper-motion and parallax from the reference tgtcat
     428    if (ACCEPT_MOTION) {
     429      output[0].average[Nave].dR         = input[0].average[N].dR;
     430      output[0].average[Nave].dD         = input[0].average[N].dD;
     431      output[0].average[Nave].uR         = input[0].average[N].uR;
     432      output[0].average[Nave].uD         = input[0].average[N].uD;
     433      output[0].average[Nave].duR        = input[0].average[N].duR;
     434      output[0].average[Nave].duD        = input[0].average[N].duD;
     435      output[0].average[Nave].P          = input[0].average[N].P;
     436      output[0].average[Nave].dP         = input[0].average[N].dP;
     437      output[0].average[Nave].Tmean      = input[0].average[N].Tmean;
     438    }
    413439
    414440    if (PSPS_ID) {
Note: See TracChangeset for help on using the changeset viewer.