IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20375


Ignore:
Timestamp:
Oct 24, 2008, 3:01:24 PM (18 years ago)
Author:
eugene
Message:

fix correction queries

Location:
trunk/ippTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/dettool_stop_completed_correct_runs.sql

    r19621 r20375  
     1-- det1 is the 'correction' detRun, det2 is the 'parent' detRun
    12UPDATE detRun
    23SET state = 'stop'
     
    89    FROM detRun AS det1
    910    INNER JOIN detRun as det2
    10         ON det1.ref_det_run = det2.det_id
     11        ON det1.ref_det_id = det2.det_id
    1112        -- do we need to restrict by iteration?  not clear this logic below is right or tested
    1213    JOIN detNormalizedImfile as imfile
  • trunk/ippTools/src/dettoolConfig.c

    r19813 r20375  
    172172    // -makecorrection
    173173    psMetadata *makecorrectionArgs = psMetadataAlloc();
     174    psMetadataAddStr(makecorrectionArgs, PS_LIST_TAIL, "-det_type",  0,   "set detrend type of corrected detRun", NULL);
    174175    psMetadataAddS64(makecorrectionArgs, PS_LIST_TAIL, "-det_id",  0,     "detRun det_id to be corrected (required)", 0);
    175176    psMetadataAddS32(makecorrectionArgs, PS_LIST_TAIL, "-iteration",  0,  "detRun iteration to be corrected (required)", -1);;
    176177    psMetadataAddBool(makecorrectionArgs, PS_LIST_TAIL, "-simple", 0,            "use the simple output format", false);
     178
     179    psMetadataAddStr(makecorrectionArgs, PS_LIST_TAIL, "-workdir",  0,   "set workdir", NULL);
     180    psMetadataAddStr(makecorrectionArgs, PS_LIST_TAIL, "-reduction",  0, "set reduction", NULL);
     181    psMetadataAddStr(makecorrectionArgs, PS_LIST_TAIL, "-label",  0,     "set label", NULL);
    177182
    178183    // -tocorrectexp
     
    184189    psMetadata *tocorrectimfileArgs = psMetadataAlloc();
    185190    psMetadataAddS64(tocorrectimfileArgs, PS_LIST_TAIL, "-det_id", 0,            "search for detrend ID", 0);
     191    psMetadataAddStr(tocorrectimfileArgs, PS_LIST_TAIL, "-det_type",  0,   "search by type of corrected detRun", NULL);
    186192    psMetadataAddU64(tocorrectimfileArgs, PS_LIST_TAIL, "-limit",  0,            "limit result set to N items", 0);
    187193    psMetadataAddBool(tocorrectimfileArgs, PS_LIST_TAIL, "-simple",  0,            "use the simple output format", false);
Note: See TracChangeset for help on using the changeset viewer.