IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27211 for trunk/pstamp/scripts


Ignore:
Timestamp:
Mar 5, 2010, 1:47:06 PM (16 years ago)
Author:
bills
Message:

add support for making stamps from unconvolved stacks and if
REQFILT is a single charcter append a '%' character

Location:
trunk/pstamp/scripts
Files:
3 edited

Legend:

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

    r25318 r27211  
    9595    $command .= " -dbname $dbname" if $dbname;
    9696    $command .= " -dbserver $dbserver" if $dbserver;
     97    $command .= " -label WEB.UP";
    9798    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    9899        run(command => $command, verbose => $verbose);
  • trunk/pstamp/scripts/pstamp_server_status

    r27170 r27211  
    8888        my ($task_state, $task, $nrun, $njobs, $ngood, $nfail, $ntime, $cmd) = split " ", $line;
    8989#        print "$task $task_state\n";
    90         my %this_task = ( name => $task, njobs => $njobs, ngood => $ngood, nfail => $nfail, ntime => $ntime, cmd => $cmd );
     90        my %this_task = ( name => $task, nrun=> $nrun, njobs => $njobs, ngood => $ngood, nfail => $nfail, ntime => $ntime, cmd => $cmd );
    9191
    9292        # change '.' in task name to '_' so we have a valid hash key
     
    116116
    117117if ($request_run) {
    118     print "$request_run->{ngood} of $request_run->{njobs} Requests parsed successfully.";
     118    print "<b>Parser Status:</b> $request_run->{nrun} running. $request_run->{ngood} parsed successfully.&nbsp; $request_run->{nfail} failed to parse.";
    119119    if ($request_fin) {
    120120        print "  $request_fin->{ngood} Requests finished.";
     
    125125    print "\n";
    126126    if ($job_run) {
    127         print "$job_run->{ngood} of $job_run->{njobs} Jobs run successfully.";
     127        print "<b>Job Status:</b> &nbsp;&nbsp; $job_run->{nrun} running. &nbsp; $job_run->{ngood} completed successfully. &nbsp; $job_run->{nfail} failed";
    128128        print "\n";
    129129    } else {
  • trunk/pstamp/scripts/pstampparse.pl

    r27140 r27211  
    191191
    192192    my $filter  = $row->{REQFILT};
     193    if ($filter) {
     194        if (length($filter) == 1) {
     195            # allow single character filter cuts to work
     196            $filter .= '%';
     197        }
     198    }
    193199    my $mjd_min = $row->{MJD_MIN};
    194200    my $mjd_max = $row->{MJD_MAX};
     
    198204        $data_group = $row->{LABEL};
    199205        $data_group = "null" if !defined $data_group;
     206        $row->{DATA_GROUP} = $data_group;
    200207    }
    201208       
     
    206213    my $inverse = ($option_mask & $PSTAMP_SELECT_INVERSE) ? 1 : 0;
    207214    $row->{inverse} = $inverse;
     215    my $unconvolved = ($option_mask & $PSTAMP_SELECT_UNCONV) ? 1 : 0;
     216    $row->{unconvolved} = $unconvolved;
    208217
    209218    my $skycenter = $row->{skycenter} = ! ($row->{COORD_MASK} & $PSTAMP_CENTER_IN_PIXELS);
     
    228237    }
    229238
     239    if (($req_type eq "byexp") and ($stage eq "stack")) {
     240        print STDERR "byexp not implemented for stack stage. row: $rownum\n" if $verbose;
     241        insertFakeJobForRow($row, 1, $PSTAMP_NOT_IMPLEMENTED);
     242        $num_jobs++;
     243        next;
     244    }
     245
    230246   
    231247    # $mode list_uri is a debugging mode (it may used by the http interface)
     
    273289    # request specification. An array reference is returned.
    274290    $imageList = locate_images($ipprc, $image_db, $req_type, $stage, $id, $tess_id, $search_component,
    275                 $inverse, $need_magic, $x, $y, $mjd_min, $mjd_max, $filter, $data_group, $verbose);
     291                $option_mask, $need_magic, $x, $y, $mjd_min, $mjd_max, $filter, $data_group, $verbose);
    276292
    277293    if (!$imageList or !@$imageList) {
     
    385401        }
    386402
    387         my $base = basename($image->{path_base});
     403        my $base = basename($image->{image});
     404        if (! $base =~ /.fits$/ ) {
     405            my_die("unexpected image file name found $image->{image}", $PS_EXIT_PROG_ERROR);
     406        }
     407        $base =~ s/.fits$//;
     408           
    388409        # XXX: TODO use filerule for this. I don't have a camera defined here
    389410        if (($stage eq 'chip') and ($image->{camera} eq 'GPC1')) {
     
    815836    return 0 if ($r1->{MJD_MAX}  ne $r2->{MJD_MAX});
    816837    return 0 if ($r1->{inverse}  ne $r2->{inverse});
     838    return 0 if ($r1->{unconvolved}  ne $r2->{unconvolved});
    817839
    818840    if (defined($r1->{COMPONENT})) {
Note: See TracChangeset for help on using the changeset viewer.