IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24964


Ignore:
Timestamp:
Jul 31, 2009, 3:36:46 PM (17 years ago)
Author:
bills
Message:

change CLASS_ID to COMPONENT add TESS_ID

Location:
trunk/pstamp/scripts
Files:
2 edited

Legend:

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

    r24941 r24964  
    174174
    175175    my $exp_info;
    176     my $last_exp_id = 0;
     176    my $last_exp_id = -1;
    177177    foreach my $job (@jobs) {
    178178        my $job_id = $job->{job_id};
     
    184184        my ($row, $req_info, $project) = get_request_info($rows, $rownum);
    185185
     186        my $proj_hash = resolve_project($ipprc, $project, $dbname, $dbserver);
     187        my $image_db = $proj_hash->{dbname};
     188        if (!$image_db) {
     189            carp("failed to find imagedb for project: $project");
     190            stop_request($req_id, $PS_EXIT_CONFIG_ERROR);
     191        }
     192
    186193        if ($exp_id ne $last_exp_id) {
    187             my $proj_hash = resolve_project($ipprc, $project, $dbname, $dbserver);
    188             my $image_db = $proj_hash->{dbname};
    189             if (!$image_db) {
    190                 carp("failed to find imagedb for project: $project");
    191                 stop_request($req_id, $PS_EXIT_CONFIG_ERROR);
    192             }
    193 
    194194            # get the metadata for the exposure (if any i.e. stack)
    195195            # returns an appropriate string if !$exp_id
    196196            $exp_info = get_exposure_info($image_db, $exp_id);
    197  # XXX: uncomment this and test
    198  #           $last_exp_id = $exp_id;
     197            $last_exp_id = $exp_id;
    199198        }
    200199
     
    303302    # Create a results file module and provide a list of the names (we have the data in the columns)
    304303    my $rowinfo = "$row->{PROJECT}|$row->{JOB_TYPE}|$row->{REQ_TYPE}|$row->{IMG_TYPE}|";
    305     $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}|";
    306305    $rowinfo   .= "$row->{REQFILT}|$row->{COORD_MASK}|$row->{CENTER_X}|$row->{CENTER_Y}|";
    307306    $rowinfo   .= "$row->{WIDTH}|$row->{HEIGHT}";
  • trunk/pstamp/scripts/pstamp_results_file.pl

    r21196 r24964  
    8888        { name => 'IMG_TYPE',   type => '16A', writetype => TSTRING },       
    8989        { name => 'ID',         type => '16A', writetype => TSTRING },           
    90         { name => 'CLASS_ID',   type => '16A', writetype => TSTRING },   
     90        { name => 'TESS_ID',    type => '64A', writetype => TSTRING },   
     91        { name => 'COMPONENT',  type => '64A', writetype => TSTRING },   
    9192
    9293        # output parameters
Note: See TracChangeset for help on using the changeset viewer.