IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32940 for trunk/pstamp/scripts


Ignore:
Timestamp:
Dec 13, 2011, 11:09:35 AM (15 years ago)
Author:
bills
Message:

allow byskycell get_image requests for stack stage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstampparse.pl

    r32271 r32940  
    254254    # If we encounter an error for a particular row add a job with the proper fault code.
    255255
     256    my $stage = $row->{IMG_TYPE};
     257
    256258    my $rownum   = $row->{ROWNUM};
    257259    if (!validID($rownum)) {
     
    275277    }
    276278    if ($job_type eq 'get_image') {
    277         unless ($req_type eq 'byid' or $req_type eq 'byexp') {
    278             print STDERR "REQ_TYPE must be 'byid' or 'byexp' for JOB_TYPE 'get_image'\n";
     279        unless ($req_type eq 'byid' or $req_type eq 'byexp' or ($req_type eq 'byskycell' and $stage eq 'stack')) {
     280            print STDERR "REQ_TYPE must be 'byid' or 'byexp' or byskcyell for stacks for JOB_TYPE 'get_image'\n";
    279281            insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST);
    280282            return 0;
     
    337339    }
    338340
    339     my $stage = $row->{IMG_TYPE};
    340341    if (!check_image_type($stage)) {
    341342        print STDERR "invalid IMG_TYPE for row $rownum\n";
     
    463464    my $numRows = scalar @$rowList;
    464465
     466    if (($req_type eq 'byskycell') or ($req_type eq 'bycoord')) {
     467        # avoid error from print below if $id isn't needed
     468        $id = "" if !$id;
     469    }
    465470    print "Collected $numRows rows beginning with row $rownum. $req_type $stage $id $tess_id $component\n";
    466471   
Note: See TracChangeset for help on using the changeset viewer.