IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40704


Ignore:
Timestamp:
Apr 27, 2019, 5:33:17 AM (7 years ago)
Author:
eugene
Message:

changes to dvomerge to support gaia dr2

Location:
branches/eam_branches/ohana.20190329/src/dvomerge/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20190329/src/dvomerge/src/args.c

    r40574 r40704  
    112112    remove_argument (N, argc, argv);
    113113    ACCEPT_MOTION = TRUE;
     114  }
     115
     116  /* limit the impact of a dvomerge -parallel */
     117  ACCEPT_ASTROM = FALSE;
     118  if ((N = get_argument (*argc, argv, "-accept-astrom"))) {
     119    remove_argument (N, argc, argv);
     120    ACCEPT_ASTROM = TRUE;
    114121  }
    115122
     
    330337    ACCEPT_MOTION = TRUE;
    331338  }
     339  /* limit the impact of a dvomerge -parallel */
     340  ACCEPT_ASTROM = FALSE;
     341  if ((N = get_argument (*argc, argv, "-accept-astrom"))) {
     342    remove_argument (N, argc, argv);
     343    ACCEPT_ASTROM = TRUE;
     344  }
    332345
    333346  /* extra error messages */
  • branches/eam_branches/ohana.20190329/src/dvomerge/src/merge_catalogs_old.c

    r40574 r40704  
    362362    }
    363363
     364  XXX: add choice of secfilt
    364365    // update the average properties to reflect the incoming entries:
    365366    // if the original value is NAN but the input value is not, accept the input:
     
    385386
    386387    // we can choose to accept the proper-motion and parallax from the reference tgtcat
    387     if (ACCEPT_MOTION) {
     388    if (ACCEPT_MOTION || ACCEPT_ASTROM) {
    388389      output[0].average[n].dR         = input[0].average[N].dR;
    389390      output[0].average[n].dD         = input[0].average[N].dD;
     
    396397      output[0].average[n].Tmean      = input[0].average[N].Tmean;
    397398    }
     399    if (ACCEPT_ASTROM) {
     400      output[0].average[n].R          = input[0].average[N].R;
     401      output[0].average[n].D          = input[0].average[N].D;
     402    }
    398403
    399404    /* Nm is updated, but not written out in -update mode (for existing entries)
     
    457462
    458463    // we can choose to accept the proper-motion and parallax from the reference tgtcat
    459     if (ACCEPT_MOTION) {
     464    if (ACCEPT_MOTION || ACCEPT_ASTROM) {
    460465      output[0].average[Nave].dR         = input[0].average[N].dR;
    461466      output[0].average[Nave].dD         = input[0].average[N].dD;
     
    467472      output[0].average[Nave].dP         = input[0].average[N].dP;
    468473      output[0].average[Nave].Tmean      = input[0].average[N].Tmean;
     474    }
     475    if (ACCEPT_ASTROM) {
     476      output[0].average[Nave].R          = input[0].average[N].R;
     477      output[0].average[Nave].D          = input[0].average[N].D;
    469478    }
    470479
Note: See TracChangeset for help on using the changeset viewer.