IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2010, 10:06:13 AM (16 years ago)
Author:
eugene
Message:

merge from trunk

Location:
branches/eam_branches/ipp-20101205/pstamp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/pstamp/scripts/pstamp_job_run.pl

    r29885 r30103  
    277277        # silently skip them if they don't exist. Perhaps this should be
    278278        # detected in pstampparse so that the user can be notified with
    279         # a message in parse_error.txt ("warp do not have a background model")
    280         my $cmf_file = $params->{cmf} if ($options & $PSTAMP_SELECT_CMF);
     279        # a message in parse_error.txt ("warp does not have a background model")
    281280        my $psf_file = $params->{psf} if ($options & $PSTAMP_SELECT_PSF);
    282281        my $backmdl_file = $params->{backmdl} if ($options & $PSTAMP_SELECT_BACKMDL);
    283282        my $pattern_file = $params->{pattern} if ($options & $PSTAMP_SELECT_BACKMDL);
     283        my $cmf_file;
     284        if ($stage ne 'chip') {
     285            # we don't ship chip stage cmf files because they may not be censored
     286            $cmf_file = $params->{cmf} if ($options & $PSTAMP_SELECT_CMF);
     287        }
    284288
    285289        my $outdir = dirname($output_base);
  • branches/eam_branches/ipp-20101205/pstamp/scripts/pstampparse.pl

    r29578 r30103  
    126126}
    127127
     128# Adjust the label for requests coming in over the web interaface
     129
     130my $label_changed = 0;
     131if ($label and $label eq "WEB.UP") {
     132    my $lcname = lc($req_name);
     133    if ($lcname =~ /pitt/) {
     134        $label = "PITT";
     135        $label_changed = 1;
     136    } elsif ($lcname =~ /cfa/) {
     137        $label = "CFA";
     138        $label_changed = 1;
     139    } elsif ($lcname =~ /durham/) {
     140        $label = "DURHAM";
     141        $label_changed = 1;
     142    } elsif ($lcname =~ /qub/) {
     143        $label = "QUB";
     144        $label_changed = 1;
     145    }
     146    print "Setting label for $req_name to $label\n" if $label_changed;
     147}
     148
     149
    128150if ($req_id and !$no_update) {
    129151    # update the database with the request name. This will be used as the
     
    131153    my $command = "$pstamptool -updatereq -req_id $req_id  -set_name $req_name";
    132154    $command .= " -set_outProduct $product";
     155    $command .= " -set_label $label" if $label_changed;
    133156    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    134157        run(command => $command, verbose => $verbose);
  • branches/eam_branches/ipp-20101205/pstamp/src/ppstampMakeStamp.c

    r29885 r30103  
    320320        }
    321321        if (readout->mask) {
    322             outReadout->mask = extractStamp(readout->mask, extractRegion,  0);
     322            psImageMaskType maskInitValue = pmConfigMaskGet("BLANK", config);
     323            outReadout->mask = extractStamp(readout->mask, extractRegion,  maskInitValue);
    323324            if (!outReadout->mask) {
    324325                psError(PS_ERR_UNKNOWN, false, "failed to create postage stamp mask image\n");
Note: See TracChangeset for help on using the changeset viewer.