IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36168


Ignore:
Timestamp:
Oct 1, 2013, 10:21:27 AM (13 years ago)
Author:
bills
Message:

for released stacks with a skycal run get the psf file from the staticsky run

File:
1 edited

Legend:

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

    r36130 r36168  
    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
Note: See TracChangeset for help on using the changeset viewer.