IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 21, 2009, 10:24:29 AM (17 years ago)
Author:
bills
Message:

Add interface and implemenation to allow the selection of cmf, psf, and background model
files to be added to the stamp output.
Output the parameters mdc file for stamp jobs as well as get_image jobs
use it to find "the other outputs".
Save ppstamp args in the mdc as well. This will allow the args file to be
eliminated but this commit doesn't do that.

File:
1 edited

Legend:

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

    r26204 r26242  
    166166    my $mask_name;
    167167    my $weight_name;
     168    my $cmf_name;
     169    my $psf_name;
     170    my $backmdl_name;
    168171    my $base_name;
    169172    my $want_astrom;
     
    198201        $mask_name    = "PPIMAGE.CHIP.MASK";
    199202        $weight_name  = "PPIMAGE.CHIP.VARIANCE";
     203        $cmf_name     = "PSPHOT.OUTPUT";
     204        $psf_name     = "PSPHOT.PSF.SAVE";
     205        $backmdl_name = "PSPHOT.BACKMDL";
    200206        $base_name    = "path_base"; # name of the field for the chiptool output
    201207        $want_astrom  = 1;
     
    209215        $mask_name    = "PSWARP.OUTPUT.MASK";
    210216        $weight_name  = "PSWARP.OUTPUT.VARIANCE";
     217        $cmf_name     = "PSWARP.OUTPUT.SOURCES";
     218        $psf_name     = "PSPHOT.PSF.SKY.SAVE";
    211219        $base_name    = "path_base"; # name of the field for the warptool output
    212220    } elsif ($img_type eq "diff") {
     
    218226        $mask_name   = "PPSUB.OUTPUT.MASK";
    219227        $weight_name = "PPSUB.OUTPUT.VARIANCE";
     228        $cmf_name    = "PPSUB.OUTPUT.SOURCES";
     229        $psf_name     = "PSPHOT.PSF.SKY.SAVE";
    220230        $base_name   = "path_base";
    221231    } elsif ($img_type eq "stack") {
     
    228238        $mask_name   = "PPSTACK.OUTPUT.MASK";
    229239        $weight_name = "PPSTACK.OUTPUT.VARIANCE";
     240        # this is wrong but gets the right answer. Need to figure out how to find the
     241        # rule properly
     242        #$cmf_name    = "PSPHOT.OUTPUT";    # this puts .fpa. in the name
     243        $cmf_name     = "PSWARP.OUTPUT.SOURCES";
     244        $psf_name    = "PPSTACK.TARGET.PSF";
    230245        $base_name   = "path_base";
    231246    } else {
     
    340355        $out->{image_db} = $image_db;
    341356
    342         # find the mask and weight images
    343357        if ($base) {
    344358            $out->{image}  = $ipprc->filename($image_name,  $base, $class_id) if $image_name;
    345359            $out->{mask}   = $ipprc->filename($mask_name,   $base, $class_id) if $mask_name;
    346360            $out->{weight} = $ipprc->filename($weight_name, $base, $class_id) if $weight_name;
     361            $out->{cmf}    = $ipprc->filename($cmf_name, $base, $class_id) if $cmf_name;
     362            $out->{psf}    = $ipprc->filename($psf_name, $base, $class_id) if $psf_name;
     363            $out->{backmdl}= $ipprc->filename($backmdl_name, $base, $class_id) if $backmdl_name;
    347364        }
    348365        $out->{astrom} = find_astrometry($ipprc, $image_db, $image, $verbose) if $want_astrom;
Note: See TracChangeset for help on using the changeset viewer.