IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20114


Ignore:
Timestamp:
Oct 13, 2008, 2:24:37 PM (18 years ago)
Author:
bills
Message:

fix bug in arguments added some comments

File:
1 edited

Legend:

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

    r19761 r20114  
    159159        my $exp_id = $job->{exp_id};
    160160
    161         # XXX: get the image_db from a table in the database, or maybe save it in the job
    162 
    163         # unless $exp_id is null (e.g. stack images) get the metadata for this exposure
    164161        my ($row, $req_info, $project) = get_request_info($rows, $rownum);
    165         my $proj_hash = resolve_project($project);
     162        my $proj_hash = resolve_project($ipprc, $project, $dbname);
    166163        my $image_db = $proj_hash->{dbname};
     164
     165        # get the metadata for the exposure (if any i.e. stack)
     166        # returns an appropriate string if !$exp_id
    167167        my $exp_info = get_exposure_info($image_db, $exp_id);
    168168
     
    182182
    183183                    # ra_deg and dec_deg are the coordinates of center of the stamp
    184                     #
    185                     # XXX  we need to get the center coordinate of the stamp.
    186                     # if request used -skycenter then we have it in the request info
    187 
     184                    # XXX: parse the stamp header to find it
    188185                    print $tdf "0.0|0.0|";
     186
    189187                    print $tdf "$exp_info|";
    190188                    print $tdf "$req_info|";
Note: See TracChangeset for help on using the changeset viewer.