IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 11, 2009, 3:54:00 PM (17 years ago)
Author:
watersc1
Message:

Bringing branch up-to-date at revision 25049

Location:
branches/czw_branch/cleanup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/cleanup

  • branches/czw_branch/cleanup/pstamp/scripts/pstamp_finish.pl

    r24951 r25051  
    173173    }
    174174
     175    my $exp_info;
     176    my $last_exp_id = -1;
    175177    foreach my $job (@jobs) {
    176178        my $job_id = $job->{job_id};
     
    181183
    182184        my ($row, $req_info, $project) = get_request_info($rows, $rownum);
    183         my $proj_hash = resolve_project($ipprc, $project, $dbname);
     185
     186        my $proj_hash = resolve_project($ipprc, $project, $dbname, $dbserver);
    184187        my $image_db = $proj_hash->{dbname};
    185 
    186         # get the metadata for the exposure (if any i.e. stack)
    187         # returns an appropriate string if !$exp_id
    188         my $exp_info = get_exposure_info($image_db, $exp_id);
     188        if (!$image_db) {
     189            carp("failed to find imagedb for project: $project");
     190            stop_request($req_id, $PS_EXIT_CONFIG_ERROR);
     191        }
     192
     193        if ($exp_id ne $last_exp_id) {
     194            # get the metadata for the exposure (if any i.e. stack)
     195            # returns an appropriate string if !$exp_id
     196            $exp_info = get_exposure_info($image_db, $exp_id);
     197            $last_exp_id = $exp_id;
     198        }
    189199
    190200        if (($job_type eq "stamp") || ($job_type eq "get_image")) {
     
    292302    # Create a results file module and provide a list of the names (we have the data in the columns)
    293303    my $rowinfo = "$row->{PROJECT}|$row->{JOB_TYPE}|$row->{REQ_TYPE}|$row->{IMG_TYPE}|";
    294     $rowinfo   .= "$row->{ID}|$row->{CLASS_ID}|$row->{OPTION_MASK}|$row->{MJD_MIN}|$row->{MJD_MAX}|";
     304    $rowinfo   .= "$row->{ID}|$row->{TESS_ID}|$row->{COMPONENT}|$row->{OPTION_MASK}|$row->{MJD_MIN}|$row->{MJD_MAX}|";
    295305    $rowinfo   .= "$row->{REQFILT}|$row->{COORD_MASK}|$row->{CENTER_X}|$row->{CENTER_Y}|";
    296306    $rowinfo   .= "$row->{WIDTH}|$row->{HEIGHT}";
Note: See TracChangeset for help on using the changeset viewer.