IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38097 for trunk/ippScripts


Ignore:
Timestamp:
Apr 8, 2015, 6:10:11 PM (11 years ago)
Author:
watersc1
Message:

Final edits to diff prep code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/sc_prepare_diff.pl

    r38079 r38097  
    5959my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
    6060
    61 my @return_component_list = ("DBINFO.EXP", "PPSUB.CONFIG", "LOG.EXP",
     61my @return_component_list = ("DBINFO.EXP", "PPSUB.CONFIG", "LOG.EXP","TRACE.EXP","SKYCELL.STATS","PPSUB.OUTPUT.KERNELS",
    6262                             "PPSUB.OUTPUT.SOURCES", "PPSUB.INVERSE.SOURCES",
    6363                             "PSPHOT.BACKMDL.MEF", "PSPHOT.PSF.SKY.SAVE");
     
    145145
    146146
    147     my $recipe_ppSub = $ipprc->reduction($reduction, 'DIFF_PPSUB');
    148     my $recipe_psphot= $ipprc->reduction($reduction, 'DIFF_PSPHOT');
     147#    my $recipe_ppSub = $ipprc->reduction($reduction, 'DIFF_PPSUB');
     148#    my $recipe_psphot= $ipprc->reduction($reduction, 'DIFF_PSPHOT');
    149149#    my $recipe_ppstats= 'DIFFSTATS';
    150     &my_die("Unable to find recipes for reduction $reduction",
    151             $remote_id, $diff_id, $PS_EXIT_CONFIG_ERROR, $fail_state)
    152         unless ((defined($recipe_ppSub))&&(defined($recipe_psphot)));
     150#     &my_die("Unable to find recipes for reduction $reduction",
     151#           $remote_id, $diff_id, $PS_EXIT_CONFIG_ERROR, $fail_state)
     152#       unless ((defined($recipe_ppSub))&&(defined($recipe_psphot)));
    153153
    154154
     
    197197        my $remote_templwt    = &uri_local_to_remote($ipp_templwt);
    198198        my $remote_templsourc = &uri_local_to_remote($ipp_templsourc);
    199 
    200 
    201         # Conver these here
     199       
     200        my $pre_command     = " sc_check_diff.pl --diff_id ${diff_id} --skycell_id ${skycell_id} --dbname ${dbname} --out_path_base ${remote_outroot} $remote_inimage $remote_inmask $remote_inwt $remote_insourc $remote_templimage $remote_templmask $remote_templwt $remote_templsourc ";
     201
     202        # make any directory we may need
     203        my $remote_outroot_dir = dirname($remote_outroot);
     204        my $dir_command =  "mkdir -p $remote_outroot_dir";
     205
     206
     207        # Convert these here
    202208        my $psdiff_command  = " ppSub ${remote_outroot} ";
    203209        $psdiff_command    .= " -inimage $remote_inimage -refimage $remote_templimage ";
     
    208214        $psdiff_command    .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF ";
    209215        $psdiff_command    .= " -F PSPHOT.BACKMDL PSPHOT.BACKMDL.MEF ";
    210         $psdiff_command    .= " -recipe PPSUB $recipe_ppSub ";
    211         $psdiff_command    .= " -recipe PSPHOT $recipe_psphot ";
     216        $psdiff_command    .= " -recipe PPSUB WARPSTACK_PV3 ";
     217        $psdiff_command    .= " -recipe PSPHOT DIFF_PV3 ";
    212218        $psdiff_command    .= " -recipe PPSTATS DIFFSTATS ";
    213219        $psdiff_command    .= " -tracedest ${remote_outroot}.trace -log ${remote_outroot}.log ";
     
    215221        $psdiff_command    .= " -recipe PPSTATS DIFFSTATS ";
    216222        $psdiff_command    .= " -dumpconfig ${remote_outroot}.ppSub.mdc -stats ${remote_outroot}.stats ";
    217         $psdiff_command    .= " -save-inconv "; # I guess?
     223#       $psdiff_command    .= " -save-inconv "; # I guess? Nope.  It makes images we don't plan to transfer back.
    218224        $psdiff_command    .= " -photometry -inverse ";
    219225        $psdiff_command    .= " -image_id $diff_skyfile_id "; # I have no clue what this does.
     
    228234        my $post_cmd_SfM  = " ppStatsFromMetadata ${remote_outroot}.stats - DIFF_SKYCELL >> ${remote_outroot}.dbinfo ";
    229235
    230         print CONFIG " ${psdiff_command} && ${post_cmd_echo} && ${post_cmd_SfM} ";
     236        print CONFIG " ${dir_command} && ${pre_command} && ${psdiff_command} && ${post_cmd_echo} && ${post_cmd_SfM} ";
    231237        $job_index++;
    232238
Note: See TracChangeset for help on using the changeset viewer.