IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30227


Ignore:
Timestamp:
Jan 9, 2011, 11:13:17 AM (15 years ago)
Author:
eugene
Message:

added date-range options to pztool -pendingimfile

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r30206 r30227  
    297297
    298298    psMetadata *where = psMetadataAlloc();
    299     PXOPT_COPY_STR(config->args, where,  "-exp_name",     "exp_name", "==");
    300     PXOPT_COPY_STR(config->args, where,  "-inst",         "camera", "==");
    301     PXOPT_COPY_STR(config->args, where,  "-telescope",    "telescope", "==");
    302     PXOPT_COPY_STR(config->args, where,  "-exp_type",     "exp_type", "==");
     299    PXOPT_COPY_STR(config->args, where,  "-exp_name",      "exp_name",  "==");
     300    PXOPT_COPY_STR(config->args, where,  "-inst",          "camera",    "==");
     301    PXOPT_COPY_STR(config->args, where,  "-telescope",     "telescope", "==");
     302    PXOPT_COPY_STR(config->args, where,  "-exp_type",      "exp_type",  "==");
     303    PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "dateobs",   ">=");
     304    PXOPT_COPY_TIME(config->args, where, "-dateobs_end",   "dateobs",   "<=");
    303305
    304306    PXOPT_LOOKUP_BOOL(desc, config->args, "-desc", false);
     
    328330
    329331        if (psListLength(where->list)) {
    330             psString whereClause = psDBGenerateWhereConditionSQL(where, "pzDownloadImfile");
     332            psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    331333            psStringAppend(&query, " AND %s", whereClause);
    332334            psFree(whereClause);
  • trunk/ippTools/src/pztoolConfig.c

    r30206 r30227  
    7676    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-inst", 0,            "define camera ID", NULL);
    7777    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-telescope", 0,            "define telescope ID", NULL);
     78    psMetadataAddTime(pendingimfileArgs, PS_LIST_TAIL, "-dateobs_begin", 0,  "search for exposures by time (>=)", NULL);
     79    psMetadataAddTime(pendingimfileArgs, PS_LIST_TAIL, "-dateobs_end", 0,  "search for exposures by time (<=)", NULL);
    7880    psMetadataAddStr(pendingimfileArgs, PS_LIST_TAIL, "-exp_type", 0,            "define exposure type", NULL);
    7981    psMetadataAddBool(pendingimfileArgs, PS_LIST_TAIL, "-desc", 0,            "sort ouput in descending format", false);
Note: See TracChangeset for help on using the changeset viewer.