IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7352


Ignore:
Timestamp:
Jun 5, 2006, 2:46:33 PM (20 years ago)
Author:
jhoblitt
Message:

stub out -resid

Location:
trunk/ippTools/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/dettool.c

    r7351 r7352  
    2424static bool normalizedframeMode(pxConfig *config);
    2525static bool addresidMode(pxConfig *config);
     26static bool residMode(pxConfig *config);
    2627
    2728static detInputExpRow *rawDetrenTodetInputExpRow(rawDetrendExpRow *rawExp, psS32 det_id);
     
    9596        case DETTOOL_MODE_ADDRESID:
    9697            if (addresidMode(config)) {
     98                goto FAIL;
     99            }
     100            break;
     101        case DETTOOL_MODE_RESID:
     102            if (residMode(config)) {
    97103                goto FAIL;
    98104            }
     
    14491455    return true;
    14501456}
     1457
     1458static bool residMode(pxConfig *config)
     1459{
     1460    PS_ASSERT_PTR_NON_NULL(config, false);
     1461    return true;
     1462}
  • trunk/ippTools/src/dettool.h

    r7321 r7352  
    1919    DETTOOL_MODE_NORMALIZEDFRAME,
    2020    DETTOOL_MODE_ADDRESID,
     21    DETTOOL_MODE_RESID,
    2122} dettoolMode;
    2223
  • trunk/ippTools/src/dettoolConfig.c

    r7335 r7352  
    184184        "define as having acceptable residuals", false);
    185185
     186    // -normalizedframe
     187    psMetadata *residArgs = psMetadataAlloc();
     188    psMetadataAddStr(residArgs, PS_LIST_TAIL, "-det_id",  0,
     189        "search for detrend ID (required)", NULL);
     190    psMetadataAddStr(residArgs, PS_LIST_TAIL, "-iter",  0,
     191        "search for iteration number", NULL);
     192    psMetadataAddStr(residArgs, PS_LIST_TAIL, "-class_id",  0,
     193        "search for class ID", NULL);
     194    psMetadataAddStr(residArgs, PS_LIST_TAIL, "-stats",  0,
     195        "search for stats", NULL);
     196    psMetadataAddStr(residArgs, PS_LIST_TAIL, "-recipe",  0,
     197        "search for recipe", NULL);
     198
    186199#define PXTOOL_MODE(option, modeval, argset) \
    187200    if ((N = psArgumentGet (argc, argv, option))) { \
     
    217230    PXTOOL_MODE("-normalizedframe", DETTOOL_MODE_NORMALIZEDFRAME,normalizedframeArgs);
    218231    PXTOOL_MODE("-addresid",        DETTOOL_MODE_ADDRESID,      addresidArgs);
     232    PXTOOL_MODE("-resid",           DETTOOL_MODE_RESID,         residArgs);
    219233
    220234    bool argErr = false;
     
    270284        psArgumentHelp(addresidArgs);
    271285        psFree(addresidArgs);
     286        fprintf (stdout, "-resid ");
     287        psArgumentHelp(residArgs);
     288        psFree(residArgs);
    272289
    273290        exit(EXIT_FAILURE);
     
    285302    psFree(addnormalizedArgs);
    286303    psFree(addresidArgs);
     304    psFree(residArgs);
    287305
    288306    // setup search criterion
Note: See TracChangeset for help on using the changeset viewer.