IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 23, 2010, 11:21:34 AM (16 years ago)
Author:
bills
Message:

Various changes to -processedexp to support the postage stamp server

File:
1 edited

Legend:

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

    r27391 r27739  
    681681    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
    682682    PXOPT_LOOKUP_BOOL(faulted, config->args, "-faulted", false);
     683    PXOPT_LOOKUP_BOOL(pstamp_order, config->args, "-pstamp_order", false);
    683684
    684685    // generate restrictions
     
    741742    }
    742743
    743     // order by cam_id so that the postage stamp parser can easliy find the 'latest' astrometry
    744     psStringAppend(&query, " ORDER BY exp_id, cam_id");
     744
     745    if (pstamp_order) {
     746        // put runs in order of exposure id with newest chip Runs first
     747        // The postage stamp parser depends on this behavior
     748        psStringAppend(&query, " ORDER BY exp_id, cam_id DESC");
     749    }
    745750
    746751    // treat limit == 0 as "no limit"
Note: See TracChangeset for help on using the changeset viewer.