IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35433


Ignore:
Timestamp:
Apr 25, 2013, 11:53:35 AM (13 years ago)
Author:
bills
Message:

fix some bugs encountered with using releasetool to look up exposures

File:
1 edited

Legend:

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

    r35398 r35433  
    434434        if ($use_releasetool) {
    435435            $command = "$releasetool -dbname $imagedb -priority_order -listrelexp $release_args";
     436            $skycell_id = $component;
    436437            $choose_components = 1;
    437438        } else {
     
    444445                }
    445446            } else {
    446                 $command = " -listrun";
     447                $command .= " -listrun";
    447448                $choose_components = 1;
    448449            }
     
    568569        # match the coords in the rows to the components in the runs
    569570        # returns an actual list of images
    570         if ($skycenter) {
     571        if ($skycenter and $req_type ne 'byskycell') {
    571572            $images = selectComponents($ipprc, $imagedb, $req_type, $stage, $rowList, $images, $verbose);
    572573        } else {
     
    644645                $out->{data_state} = $out->{state} = $out->{stack_state};
    645646            } else {
     647                # XXX: Consider looking up skycal results even if we are
     648                # not using releasetool
    646649                $out->{data_state} = $out->{state};
    647650            }
     
    655658            if ($selectedAstrom) {
    656659                $out->{astrom} = $selectedAstrom;
    657                 $out->{cam_path_base} = basename($selectedAstrom);
     660                $out->{cam_path_base} = $selectedAstrom;
     661                if ($selectedAstrom =~ /\.smf$/) {
     662                    $out->{cam_path_base} =~ s/\.smf$//;
     663                } elsif ($selectedAstrom =~ /\.cmf$/) {
     664                    $out->{cam_path_base} =~ s/\.cmf$//;
     665                } else {
     666                    die ("ERROR: don't know how to extract cam_path_base from $selectedAstrom\n");
     667                }
    658668            } elsif (! defined $out->{astrom}) {
    659669                if (! find_astrometry($ipprc, $imagedb, $out, $verbose)) {
     
    15251535    }
    15261536   
    1527     if (($req_type eq "byid") or ($req_type eq "byexp")) {
     1537    # XXX: Why did I make this restriction? I added byskycell
     1538    if (($req_type eq "byid") or ($req_type eq "byexp") or ($req_type eq 'byskycell')) {
    15281539        my ($last_tess_id, $tess_dir_abs, $astrom_file) = ("", "", "");
    15291540        foreach my $run (@$runList) {
Note: See TracChangeset for help on using the changeset viewer.