IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41152 for trunk


Ignore:
Timestamp:
Nov 27, 2019, 5:27:20 AM (7 years ago)
Author:
eugene
Message:

added option to accept astrometry from merged source

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

Legend:

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

    r40805 r41152  
    3131int    IMAGES_ONLY;
    3232int    ACCEPT_MOTION;
     33
     34int    ACCEPT_ASTROM;
    3335int    RETAIN_AVE_PHOTOMETRY;
     36
    3437char   CATDIR[DVO_MAX_PATH];
    3538char   GSCFILE[DVO_MAX_PATH];
  • trunk/Ohana/src/dvomerge/src/args.c

    r40805 r41152  
    112112  }
    113113
    114   /* limit the impact of a dvomerge -parallel */
     114  /* accept input database average astrometry motions */
    115115  ACCEPT_MOTION = FALSE;
    116116  if ((N = get_argument (*argc, argv, "-accept-motion"))) {
    117117    remove_argument (N, argc, argv);
    118118    ACCEPT_MOTION = TRUE;
     119  }
     120  /* accept input database average astrometry information */
     121  ACCEPT_ASTROM = FALSE;
     122  if ((N = get_argument (*argc, argv, "-accept-astrom"))) {
     123    remove_argument (N, argc, argv);
     124    ACCEPT_ASTROM = TRUE;
    119125  }
    120126
     
    337343  }
    338344
    339   /* limit the impact of a dvomerge -parallel */
     345  /* accept input database average astrometry motions */
    340346  ACCEPT_MOTION = FALSE;
    341347  if ((N = get_argument (*argc, argv, "-accept-motion"))) {
    342348    remove_argument (N, argc, argv);
    343349    ACCEPT_MOTION = TRUE;
     350  }
     351  /* accept input database average astrometry information */
     352  ACCEPT_ASTROM = FALSE;
     353  if ((N = get_argument (*argc, argv, "-accept-astrom"))) {
     354    remove_argument (N, argc, argv);
     355    ACCEPT_ASTROM = TRUE;
    344356  }
    345357
  • trunk/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c

    r40805 r41152  
    328328    if (FORCE_MERGE)           { strextend (&command, "-force-merge"); }
    329329    if (ACCEPT_MOTION)         { strextend (&command, "-accept-motion"); }
     330    if (ACCEPT_ASTROM)         { strextend (&command, "-accept-astrom"); }
    330331    if (RETAIN_AVE_PHOTOMETRY) { strextend (&command, "-retain-ave-photometry"); }
    331332    if (MATCHED_TABLES)        { strextend (&command, "-matched-tables"); }
  • trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c

    r40805 r41152  
    363363    }
    364364
     365    // XXX: add choice of secfilt
    365366    // update the average properties to reflect the incoming entries:
    366367    // if RETAIN_AVE_PHOTOMETRY is true and the original value is NAN, but the input value is not, accept the input:
     
    389390
    390391    // we can choose to accept the proper-motion and parallax from the reference tgtcat
    391     if (ACCEPT_MOTION) {
     392    if (ACCEPT_MOTION || ACCEPT_ASTROM) {
    392393      output[0].average[n].dR         = input[0].average[N].dR;
    393394      output[0].average[n].dD         = input[0].average[N].dD;
     
    400401      output[0].average[n].Tmean      = input[0].average[N].Tmean;
    401402    }
     403    if (ACCEPT_ASTROM) {
     404      output[0].average[n].R          = input[0].average[N].R;
     405      output[0].average[n].D          = input[0].average[N].D;
     406    }
    402407
    403408    /* Nm is updated, but not written out in -update mode (for existing entries)
     
    461466
    462467    // we can choose to accept the proper-motion and parallax from the reference tgtcat
    463     if (ACCEPT_MOTION) {
     468    if (ACCEPT_MOTION || ACCEPT_ASTROM) {
    464469      output[0].average[Nave].dR         = input[0].average[N].dR;
    465470      output[0].average[Nave].dD         = input[0].average[N].dD;
     
    471476      output[0].average[Nave].dP         = input[0].average[N].dP;
    472477      output[0].average[Nave].Tmean      = input[0].average[N].Tmean;
     478    }
     479    if (ACCEPT_ASTROM) {
     480      output[0].average[Nave].R          = input[0].average[N].R;
     481      output[0].average[Nave].D          = input[0].average[N].D;
    473482    }
    474483
Note: See TracChangeset for help on using the changeset viewer.