IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42920


Ignore:
Timestamp:
Sep 8, 2025, 4:51:17 PM (10 months ago)
Author:
eugene
Message:

adding option to specify an exposure as a starting point

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r42412 r42920  
    7575
    7676    //optional
     77    PXOPT_LOOKUP_STR(fromThisFileSet, config->args, "-last-fileset", false, false);
    7778    PXOPT_LOOKUP_S32(timeout, config->args, "-timeout", false, false);
    7879    PXOPT_LOOKUP_BOOL(all, config->args, "-all", false);
     
    8283    bool haveLastFileSet = false;
    8384    psString lastFileSet = NULL;
     85    if (fromThisFileSet) {
     86      haveLastFileSet = true;
     87      lastFileSet = psStringCopy (lastFileSet);
     88    }
    8489
    8590    // -all means "request all known filesets"
    86     if (!all) {
     91    if (!lastFileSet && !all) {
    8792        char *query = "SELECT * from summitExp WHERE camera = \"%s\" and TELESCOPE = \"%s\" ORDER BY dateobs DESC LIMIT 1";
    8893        if (!p_psDBRunQueryF(config->dbh, query, camera, telescope)) {
     
    181186    }
    182187
    183     // XXX for test, make this not a temporary table:
    184     // create a temporry table
     188    // create a temporary table
    185189    {
    186190        char *query = "CREATE TEMPORARY TABLE incoming"
  • trunk/ippTools/src/pzgetexpConfig.c

    r42412 r42920  
    5555    psMetadataAddBool(args, PS_LIST_TAIL, "-all",  0,
    5656        "download ALL filesets", 0);
     57    psMetadataAddStr(args , PS_LIST_TAIL, "-last-fileset",  0,
     58        "download from this fileset (optional)", "");
    5759    psMetadataAddBool(args, PS_LIST_TAIL, "-ignore-errors",  0,
    5860        "do not fail if one of the entries raises a database error", 0);
Note: See TracChangeset for help on using the changeset viewer.