Changeset 11355 for trunk/ippScripts/scripts/phase3.pl
- Timestamp:
- Jan 27, 2007, 5:32:31 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase3.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase3.pl
r11333 r11355 53 53 my $p3tool = can_run('p3tool') or (warn "Can't find p3tool" and $missing_tools = 1); 54 54 my $ppImage = can_run('ppImage') or (warn "Can't find ppImage" and $missing_tools = 1); 55 56 # test for addstar and psastro: 57 my $psastro = can_run('psastro') or (warn "Can't find psastro" and $missing_tools = 1); 58 my $addstar = can_run('addstar') or (warn "Can't find addstar" and $missing_tools = 1); 59 55 60 if ($missing_tools) { 56 61 warn("Can't find required tools."); … … 76 81 &my_die("Unable to parse metadata list", $exp_tag, $PS_EXIT_PROG_ERROR); 77 82 } 78 79 # XXX need to add the psastro +mosastro step here80 # XXX need to add the addstar step here81 83 82 84 # Gather the statistics … … 121 123 } 122 124 125 # make this a function which generates a specific list file for a specific filename 126 123 127 # Generate the file list, and get the statistics 124 128 my $outputRoot = $exp_tag . '.p3'; # Root output name … … 131 135 open my $list2File, '>' . $list2Name; 132 136 foreach my $file (@$files) { 133 print $list1File ($ipprc->convert_filename_absolute($file->{b1_uri}) . "\n"); 134 print $list2File ($ipprc->convert_filename_absolute($file->{b2_uri}) . "\n"); 137 # use the b1_uri as OUTPUT root and convert the filenames 138 # with ipprc->filename: 139 my $classID = $file->{class_id}; 140 my $fileRoot = $file->{b1_uri}; 141 print $list1File $ipprc->filename("PPIMAGE.BIN1", $file->{b1_uri}, $classID); 142 print $list2File $ipprc->filename("PPIMAGE.BIN2", $file->{b1_uri}, $classID); 143 print $list1File $ipprc->filename("PSPHOT.OUTPUT", $file->{b1_uri}, $classID); 144 print $list1File $ipprc->filename("PSASTRO.OUTPUT", $file->{b1_uri}, $classID); 145 # XXX PSASTRO.OUTPUT is explicitly a CHIP output file 146 # XXX below the PSASTRO.OUTPUT must be an FPA output file 147 # print $list1File ($ipprc->convert_filename_absolute($file->{b1_uri}) . "\n"); 148 # print $list2File ($ipprc->convert_filename_absolute($file->{b2_uri}) . "\n"); 135 149 push @means, $file->{bg}; 136 150 push @stdevs, $file->{bg_stdev}; … … 142 156 my $jpeg1 = $ipprc->filename("PPIMAGE.JPEG1", $outputRoot); # Binned JPEG #1 143 157 my $jpeg2 = $ipprc->filename("PPIMAGE.JPEG2", $outputRoot); # Binned JPEG #2 158 my $objects = $ipprc->filename("PSASTRO.OUTPUT", $outputRoot); # MEF psastro output 159 160 # if file == CHIP 161 # run psastro +mosastro on PSASTRO.OUTPUT.CHIP 162 # run addstar on PSASTRO.OUTPUT.FPA 163 164 # if file == FPA 165 # run addstar on PSASTRO.OUTPUT.CHIP 144 166 145 167 # Make the jpeg for binning 1 … … 167 189 } 168 190 169 191 # XXX keep the same outroot as the input 170 192 # Add the result into the database 171 193 $outputRoot = $ipprc->convert_filename_relative($outputRoot);
Note:
See TracChangeset
for help on using the changeset viewer.
