IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9764


Ignore:
Timestamp:
Oct 26, 2006, 6:00:41 PM (20 years ago)
Author:
jhoblitt
Message:

add basic p2 masking support and the p2Mask table

Location:
trunk/ippTools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/configure.ac

    r9707 r9764  
    1616PKG_CHECK_MODULES([PSLIB], [pslib >= 0.12.99])
    1717PKG_CHECK_MODULES([PSMODULES], [psmodules >= 0.12.0])
    18 PKG_CHECK_MODULES([IPPDB], [ippdb >= 0.0.51])
     18PKG_CHECK_MODULES([IPPDB], [ippdb >= 0.0.52])
    1919
    2020AC_PROG_PERL_MODULES(
  • trunk/ippTools/src/chiptool.c

    r9539 r9764  
    168168    // XXX does this need to be constrained so that it won't return any results
    169169    // if a match p2PendingExp hasn't been registered?
    170     psString query = psStringCopy("SELECT * FROM p2PendingImfile");
     170    psString query = psStringCopy(
     171            "SELECT"
     172            "   p2PendingImfile.*"
     173            " FROM p2PendingImfile"
     174            " JOIN p2PendingExp"
     175            "   USING(exp_tag)"
     176            " LEFT JOIN p2Mask"
     177            "   ON p2PendingExp.label = p2Mask.label"
     178            " WHERE"
     179            "   p2Mask.label IS NULL"
     180        );
    171181
    172182    if (config->where) {
    173         psString whereClause = psDBGenerateWhereConditionSQL(config->where, "rawImfile");
     183        psString whereClause = psDBGenerateWhereConditionSQL(config->where, "p2PendingImfile");
    174184        psStringAppend(&query, " AND %s", whereClause);
    175185        psFree(whereClause);
     
    583593{
    584594    PS_ASSERT_PTR_NON_NULL(pendingExp, NULL);
    585 
     595 
    586596    return p2ProcessedExpRowAlloc(
    587597        pendingExp->exp_tag,
    588598        pendingExp->p1_version,
    589         pendingExp->p2_version
     599        pendingExp->p2_version,
     600        pendingExp->label
    590601    );
    591602}
  • trunk/ippTools/src/pxtables.c

    r9392 r9764  
    5757    CREATE_TABLE(p2ProcessedExpCreateTable);
    5858    CREATE_TABLE(p2ProcessedImfileCreateTable);
     59    CREATE_TABLE(p2MaskCreateTable);
    5960    CREATE_TABLE(p3PendingExpCreateTable);
    6061    CREATE_TABLE(p3ProcessedExpCreateTable);
     
    115116    DROP_TABLE(p2ProcessedExpDropTable);
    116117    DROP_TABLE(p2ProcessedImfileDropTable);
     118    DROP_TABLE(p2MaskDropTable);
    117119    DROP_TABLE(p3PendingExpDropTable);
    118120    DROP_TABLE(p3ProcessedExpDropTable);
  • trunk/ippTools/src/regtool.c

    r9691 r9764  
    680680    PS_ASSERT_PTR_NON_NULL(exp, NULL);
    681681
     682    // optional
     683    bool status = false;
     684    psString label = psMetadataLookupStr(&status, config->args, "-label");
     685    if (!status) {
     686        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -label");
     687        return false;
     688    }
     689
    682690    return p2PendingExpRowAlloc(
    683691        exp->exp_tag,
    684692        "my recipe",
    685693        0xff, // XXX calc version number
    686         0xff // XXX calc version number
     694        0xff, // XXX calc version number
     695        label
    687696    );
    688697}
  • trunk/ippTools/src/regtoolConfig.c

    r9682 r9764  
    102102    psMetadataAddStr(updateexpArgs, PS_LIST_TAIL, "-dateobs",  0,
    103103        "define observation time", NULL);
     104    psMetadataAddStr(updateexpArgs, PS_LIST_TAIL, "-label",  0,
     105        "define label for phase 2 processing (non-detrend data only)", NULL);
    104106    /*
    105107    psMetadataAddStr(updateArgs, PS_LIST_TAIL, "-recip",  0,
Note: See TracChangeset for help on using the changeset viewer.