IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33670 for trunk/pstamp/scripts


Ignore:
Timestamp:
Apr 3, 2012, 4:07:34 PM (14 years ago)
Author:
bills
Message:

Minor postage stamp changes that have been running in production for awhile now

Location:
trunk/pstamp/scripts
Files:
2 edited

Legend:

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

    r30633 r33670  
    201201                # process the reglist file to get the list of files produced by this job
    202202                foreach my $line (<JRL>) {
     203
     204                    # XXX: we are getting many cases where the size and/or md5sum calculated by
     205                    # the job has changed by the time the request_finish has run
     206                    # Don't
    203207                    # add line to the requests's reglist
    204                     print $rlf $line;
     208                    # ....
     209#                    print $rlf $line;
     210
    205211
    206212                    chomp $line;
    207                     my ($img_name, undef) = split '\|', $line;
     213                    my ($img_name, $reported_size, $reported_sum, $filetype) = split '\|', $line;
     214                    # ... instead let dsreg compute the paramters by leaving them blank
     215                    print $rlf "$img_name|||$filetype|\n";
    208216
    209217                    # add line to the table definition file
  • trunk/pstamp/scripts/pstampparse.pl

    r33512 r33670  
    333333    my $skycenter = $row->{skycenter} = ! ($row->{COORD_MASK} & $PSTAMP_CENTER_IN_PIXELS);
    334334
    335     if (!$skycenter and !$component and $stage ne 'stack' and !($option_mask & $PSTAMP_USE_IMFILE_ID)){
     335    my $wholefile = 0;
     336    if (!$skycenter && $row->{CENTER_X} == 0 && $row->{CENTER_Y} == 0) {
     337        # Secret code for returning the whole file
     338        $wholefile = 1;
     339    }
     340
     341    if (!$skycenter and !$wholefile and !$component and $stage ne 'stack' and !($option_mask & $PSTAMP_USE_IMFILE_ID)){
    336342        print STDERR "COMPONENT must be specified for pixel coordinate ROI center\n";
    337343        insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST);
Note: See TracChangeset for help on using the changeset viewer.