IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36585


Ignore:
Timestamp:
Mar 14, 2014, 1:56:31 PM (12 years ago)
Author:
bills
Message:

pass cff file to psphotFullForceSummary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20140114/ippScripts/scripts/psphot_fullforce_summary.pl

    r36441 r36585  
    7979my ($listFile, $listName) = tempfile("/tmp/fullforce.summary.list.XXXX", UNLINK => !$save_temps );
    8080
     81my $cff_file;
     82
    8183{
    8284    my $mdcParser = PS::IPP::Metadata::Config->new;
     
    107109        &my_die("Couldn't find input cmf: $cmf", $ff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($cmf);
    108110        print $listFile "SOURCES STR $cmf\n";
     111        if (!$cff_file) {
     112            $cff_file = $ipprc->filename('PSPHOT.OUTPUT.CFF', $result->{sources_path_base});
     113            &my_die("Couldn't find input cff: $cff_file", $ff_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($cff_file);
     114        }
    109115    }
    110116    close $listFile;
    111117}
     118
     119&my_die("No CFF found in results: $cff_file", $ff_id, $PS_EXIT_PROG_ERROR) unless $cff_file;
     120
    112121
    113122# Recipes to use based on reduction class
     
    141150    my $command = "$psphotFullForceSummary $outroot";
    142151    $command .= " -input $listName";
     152    $command .= " -cff $cff_file";
    143153    $command .= " -threads $threads" if defined $threads;
    144154    if ($dump_config) {
Note: See TracChangeset for help on using the changeset viewer.