IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 7, 2009, 4:50:25 PM (17 years ago)
Author:
Paul Price
Message:

Merging branches/pap from r23739 onto trunk. No conflicts, ppSub builds fine.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTools/src/difftool.c

    r23688 r23740  
    12751275    PXOPT_COPY_STR(config->args, selectWhere, "-input_label", "inputWarpRun.label", "==");
    12761276    PXOPT_COPY_STR(config->args, selectWhere, "-template_label", "templateWarpRun.label", "==");
     1277    PXOPT_COPY_F32(config->args, selectWhere, "-rotdiff", "ABS(inputRawExp.posang - templateRawExp.posang)", "<=");
    12771278    PXOPT_COPY_F32(config->args, selectWhere, "-timediff",
    12781279                   "ABS(TIME_TO_SEC(TIMEDIFF(inputRawExp.dateobs, templateRawExp.dateobs)))", "<=");
    1279     PXOPT_COPY_F32(config->args, selectWhere, "-rotdiff", "ABS(inputRawExp.posang - templateRawExp.posang)", "<=");
     1280
    12801281    // Haversine formula for great circle distance
    12811282    PXOPT_COPY_F32(config->args, selectWhere, "-distance",
    12821283                   "DEGREES(2*ASIN(SQRT(POW(SIN(inputRawExp.decl - templateRawExp.decl),2) + COS(inputRawExp.decl)*COS(templateRawExp.decl)*POW(SIN(inputRawExp.ra - templateRawExp.ra),2))))", "<=");
     1284
     1285    PXOPT_LOOKUP_BOOL(backwards, config->args, "-backwards", false);
     1286
     1287    psMetadataAddF32(selectWhere, PS_LIST_TAIL,
     1288                     "TIME_TO_SEC(TIMEDIFF(inputRawExp.dateobs, templateRawExp.dateobs))",
     1289                     PS_META_DUPLICATE_OK, backwards ? "<" : ">", 0.0);
    12831290
    12841291    // Restrictions for inserting skycells
Note: See TracChangeset for help on using the changeset viewer.