Changeset 38097 for trunk/ippScripts
- Timestamp:
- Apr 8, 2015, 6:10:11 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/sc_prepare_diff.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/sc_prepare_diff.pl
r38079 r38097 59 59 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files 60 60 61 my @return_component_list = ("DBINFO.EXP", "PPSUB.CONFIG", "LOG.EXP", 61 my @return_component_list = ("DBINFO.EXP", "PPSUB.CONFIG", "LOG.EXP","TRACE.EXP","SKYCELL.STATS","PPSUB.OUTPUT.KERNELS", 62 62 "PPSUB.OUTPUT.SOURCES", "PPSUB.INVERSE.SOURCES", 63 63 "PSPHOT.BACKMDL.MEF", "PSPHOT.PSF.SKY.SAVE"); … … 145 145 146 146 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'); 149 149 # 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))); 153 153 154 154 … … 197 197 my $remote_templwt = &uri_local_to_remote($ipp_templwt); 198 198 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 202 208 my $psdiff_command = " ppSub ${remote_outroot} "; 203 209 $psdiff_command .= " -inimage $remote_inimage -refimage $remote_templimage "; … … 208 214 $psdiff_command .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF "; 209 215 $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 "; 212 218 $psdiff_command .= " -recipe PPSTATS DIFFSTATS "; 213 219 $psdiff_command .= " -tracedest ${remote_outroot}.trace -log ${remote_outroot}.log "; … … 215 221 $psdiff_command .= " -recipe PPSTATS DIFFSTATS "; 216 222 $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. 218 224 $psdiff_command .= " -photometry -inverse "; 219 225 $psdiff_command .= " -image_id $diff_skyfile_id "; # I have no clue what this does. … … 228 234 my $post_cmd_SfM = " ppStatsFromMetadata ${remote_outroot}.stats - DIFF_SKYCELL >> ${remote_outroot}.dbinfo "; 229 235 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} "; 231 237 $job_index++; 232 238
Note:
See TracChangeset
for help on using the changeset viewer.
