IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2013, 4:06:09 PM (13 years ago)
Author:
eugene
Message:

merge from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r36057 r36192  
    693693                $out->{data_state} = $out->{state} = $out->{stack_state};
    694694            } else {
    695                 # XXX: Consider looking up skycal results even if we are
     695                $out->{data_state} = $out->{state};
     696
     697                # XXX: Consider looking up skycal and staticsky results even if we are
    696698                # not using releasetool
    697                 $out->{data_state} = $out->{state};
    698699            }
    699700        }
     
    731732            $out->{mask}   = $ipprc->filename($mask_name,   $mask_base, $class_id) if $mask_name;
    732733            $out->{weight} = $ipprc->filename($weight_name, $base, $class_id) if $weight_name;
    733             $out->{cmf}    = $ipprc->filename($cmf_name,    $base, $class_id) if $cmf_name;
    734             $out->{psf}    = $ipprc->filename($psf_name,    $base, $class_id) if $psf_name;
    735734            $out->{backmdl}= $ipprc->filename($backmdl_name,$base, $class_id) if $backmdl_name;
     735            if ($image->{staticsky_path_base}) {
     736                $out->{psf}    = $ipprc->filename("PSPHOT.STACK.PSF.SAVE", $image->{staticsky_path_base}, $image->{stack_id});
     737                # if astrom was not set above to the skycal cmf get the sources file from staticsky
     738                $out->{cmf}    = $ipprc->filename("PSPHOT.STACK.OUTPUT",   $image->{staticsky_path_base}, $image->{stack_id}) if !$out->{astrom};
     739            } else {
     740                $out->{psf}    = $ipprc->filename($psf_name,    $base, $class_id) if $psf_name;
     741                $out->{cmf}    = $ipprc->filename($cmf_name,    $base, $class_id) if $cmf_name;
     742            }
    736743        }
    737744
     
    808815                        $command .= " -priority_order";
    809816                    }
    810                     $command .= " -surveyName $survey";
     817                    $command .= " -surveyName $survey" if $survey;
    811818                } else {
    812819                    $command = "$stacktool -dbname $imagedb";
     
    20512058    # see if we need to start the scs (skycell server)
    20522059
     2060    my $very_verbose = 0;
     2061
    20532062    if (!$scs_tess_id or ($scs_tess_id ne $tess_id)) {
    20542063        if ($scs_tess_id) {
     
    20762085
    20772086        # start an scs
     2087        print "Starting skycell server for $tess_dir_resolved.\n";
    20782088
    20792089        # create pipes for communicating with the server
     
    21112121            my $command = "$dvoImagesAtCoords -D CATDIR $tess_dir_resolved -coords -";
    21122122
    2113             print STDERR "SCS: execing $command\n";
     2123            print STDERR "SCS: execing $command\n" if $very_verbose;
    21142124
    21152125            unless(exec $command) {
     
    21462156    }
    21472157
    2148     my $very_verbose = 0;
    21492158    print STDERR "  sent coordinates to skycell server\n" if $very_verbose;
    21502159
Note: See TracChangeset for help on using the changeset viewer.