IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28115


Ignore:
Timestamp:
May 26, 2010, 1:54:51 PM (16 years ago)
Author:
bills
Message:

Fix error in byid requests for chip images where no component is supplied.
Astrometry file wasn't being resolved early enough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r28069 r28115  
    10451045    $last_project = $proj_hash->[0];
    10461046
     1047    $ipprc->define_camera($last_project->{camera});
     1048
    10471049    return $last_project;
    10481050}
     
    11051107    close $pointsList;
    11061108
    1107     # XXX: need to loop over these
    1108     # my $run = $runList->[0];
    11091109    if (($req_type eq "byid") or ($req_type eq "byexp")) {
    11101110        my ($last_tess_id, $tess_dir_abs, $astrom_file) = ("", "", "");
     
    11141114                # XXX: use file rule and handle cameras where the astrometry is solved at
    11151115                # the chip stage.
    1116                 $astrom_file = $run->{cam_path_base} . ".smf";
     1116                my $cam_path_base = $run->{cam_path_base};
     1117                if ($cam_path_base) {
     1118                    $astrom_file = $run->{cam_path_base} . ".smf";
     1119                } else {
     1120                    if (! find_astrometry($ipprc, $imagedb, $run, $verbose) ) {
     1121                        setErrorCodes($rowList, $PSTAMP_NOT_AVAILABLE);
     1122                        next;
     1123                    }
     1124                    $cam_path_base = $run->{cam_path_base};
     1125                    $astrom_file = $run->{astrom_file};
     1126                }
    11171127                my $astrom_file_resolved = $ipprc->file_resolve($astrom_file);
    11181128                if (!$astrom_file_resolved) {
Note: See TracChangeset for help on using the changeset viewer.