Changeset 9042
- Timestamp:
- Sep 28, 2006, 3:08:01 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/doc/ipptools/dettool.txt (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/ipptools/dettool.txt
r8613 r9042 55 55 ppImage -file <imfile_uri> <processed_uri> -recipe PPIMAGE <ppImage_recipe> -stat <temporary_statistics_file> 56 56 57 One processing has been performed, "dettool -addprocessed" adds an 58 imfile to detProcessedImfiles: 59 60 dettool -addprocessed -det_id <det_id> -exp_id <exp_id> -class_id <class_id> -uri <processed_uri> -recip <ppImage_recipe> -bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat> 57 In addition to removing the nominated instrumental signatures, this 58 also generates binned images to create a JPEG in the next step. Once 59 processing has been performed, "dettool -addprocessed" adds an imfile 60 to detProcessedImfiles: 61 62 dettool -addprocessed -det_id <det_id> -exp_id <exp_id> -class_id <class_id> -uri <processed_uri> -recip <ppImage_recipe> -proc_bg <stat> -proc_bg_stdev <stat> -proc_bg_mean_stdev <stat> -b1_uri <binned1_uri> -b2_uri <binned2_uri> 61 63 62 64 In practise, the above "ppImage" and "dettool -addprocessed" commands 63 will be performed by a script, "detrend_process.pl". 65 will be performed by a script, "detrend_process_imfile.pl". 66 67 -------------------------------------------------------------------------------- 68 69 Pan-Tasks regularly runs: 70 71 dettool -processedexp 72 73 This command returns a list of exposures that have had all imfiles 74 processed. This list includes the exposure id. Using this exposure 75 id, a list of imfiles may be gathered using: 76 77 dettool -processed -exp_id <exp_id> 78 79 The output includes b1_uri, b2_uri, bg, bg_stdev and bg_mean_stdev for 80 the processed imfiles. These are combined into a JPEG by: 81 82 ppImage -list <file_list> <output_uri> -recipe PPIMAGE PPIMAGE_J 83 84 The resultant image, along with summary statistics (calculated from 85 the imfile statistics) is added into the database for the exposure: 86 87 dettool -addprocessedexp -exp_id <exp_id> -proc_bg <stat> -proc_bg_stdev <stat> -proc_bg_mean_stdev <stat> -uri <jpeg_uri> -jpeg_uri <jpeg_uri> 88 89 In practise, the above "dettool -processed", "ppImage" and "dettool 90 -addprocessedexp" commands will be performed by a script, 91 "detrend_process_exp.pl". 64 92 65 93 -------------------------------------------------------------------------------- … … 99 127 stacked class_id and and optionally marks it for normalization: 100 128 101 dettool -addstacked [-pleasenormalize] -det_id <det_id> -iter <iter> -class_id <class_id> -recip <recipe> -uri <stacked_uri> - bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat>129 dettool -addstacked [-pleasenormalize] -det_id <det_id> -iter <iter> -class_id <class_id> -recip <recipe> -uri <stacked_uri> -norm_bg <stat> -norm_bg_stdev <stat> -norm_bg_mean_stdev <stat> 102 130 103 131 The "-pleasenormalize" flag indicates that the normalisation steps are 104 132 to be performed (in the case of flat-fields); if this flag is missing, 105 133 then the normalisation steps are to be skipped and the stacked imfiles 106 are inserted in table of normalised imfiles. 107 108 In practise, the above three commands ("dettool -processed 109 -wholestack", "ppMerge" and "dettool -addstacked") will be performed 110 by a Perl script, "detrend_stack.pl". 134 are inserted in table of normalised imfiles. The statistics fields 135 have "norm" since these statistics will be used to determine the 136 normalisations. 137 138 In practise, the above three commands ("dettool -processed", "ppMerge" 139 and "dettool -addstacked") will be performed by a Perl script, 140 "detrend_stack.pl". 111 141 112 142 … … 144 174 In practise, the above three commands ("dettool -processed -unmask", 145 175 "ppNorm" and "dettool -addnormstat") will be performed by a Perl 146 script, "detrend_ calc_norm.pl".176 script, "detrend_norm_calc.pl". 147 177 148 178 *** To do: possible upgrade path is to have "dettool -addnormstat" … … 165 195 For each imfile, we apply the normalisation: 166 196 167 pp NormApply -file <in_uri> <out_uri> -norm <normalisation>197 ppArith -file1 <in_uri> -operation * -constant <normalisation> -out <out_uri> 168 198 169 199 The normalised imfile is then inserted into detNormalizedImfile: … … 171 201 dettool -addnormalizedimfile -det_id <det_id> -iter <iter> -class_id <class_id> -uri <out_uri> 172 202 173 In practise, the above two commands ("pp NormApply" and "dettool203 In practise, the above two commands ("ppArith" and "dettool 174 204 -addnormalizedimfile") will be performed by a Perl script, 175 "detrend_apply_norm.pl". 176 205 "detrend_norm_apply.pl". 206 207 208 -------------------------------------------------------------------------------- 209 210 <<< Normalisation has completed. The skip introduced >>> 211 <<< by leaving out -pleasenormalize lands here. >>> 212 213 -------------------------------------------------------------------------------- 214 215 Pan-Tasks regularly runs: 216 217 dettool -stackedimfile 218 219 which returns a list of stack imfiles which have been normalised (or 220 had normalisation skipped). This includes the exposure id, class id 221 and uri. 222 223 For each imfile, we measure statistics and bin the images: 224 225 ppImage -file <in_uri> <out_uri> -recipe PPIMAGE PPIMAGE_BIN -stat <stats_file> 226 227 The resultant statistics and the binned images are pushed into the database: 228 229 dettool -addstackimfilesummary -exp_id <exp_id> -class_id <class_id> -b1_uri <b1_uri> -b2_uri <b2_uri> -stack_bg <stat> -stack_bg_stdev <stat> -stack_bg_mean_stdev <stat> 230 231 In practise, the above commands ("ppImage" and "dettool 232 -addnormimfilesummary") will be performed by a Perl script, 233 "detrend_poststack_imfile.pl". 234 235 -------------------------------------------------------------------------------- 236 237 Pan-Tasks regularly runs: 238 239 dettool -normalizedexp 240 241 which returns a list of stack exposures which have had normalised 242 imfile summaries added. This includes the exposure id. 243 244 For each exposure, we get the list of component imfiles: 245 246 dettool -stackimfile -exp_id <exp_id> 247 248 This includes the statistics (bg, bg_stdev, bg_mean_stdev) and the 249 URIs for the binned images. From these, we generate summary 250 statistics for the exposure, and produce a JPEG: 251 252 ppImage -list <input_list> <out_uri> -recipe PPIMAGE PPIMAGE_J 253 254 The statistics and JPEG uri are pushed into the database: 255 256 dettool -addstackexpsummary -exp_id <exp_id> -jpeg1_uri <jpeg1_uri> -jpeg2_uri <jpeg2_uri> -norm_bg <stat> -norm_bg_stdev <stat> -norm_bg_mean_stdev <stat> 257 258 In practise, the above three commands ("dettool -stackimfile", 259 "ppImage" and "dettool -addnormexpsummary") will be performed by a 260 Perl script, "detrend_poststack_exp.pl". 177 261 178 262 -------------------------------------------------------------------------------- … … 194 278 The residual is then inserted into the database: 195 279 196 dettool -addresidimfile -det_id <det_id> -exp_id <exp_id> -class_id <class_id> -recip <recipe> - bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat> -b1_uri <b1_fits> -b2_uri <b2_fits>280 dettool -addresidimfile -det_id <det_id> -exp_id <exp_id> -class_id <class_id> -recip <recipe> -resid_bg <stat> -resid_bg_stdev <stat> -resid_bg_mean_stdev <stat> -b1_uri <b1_fits> -b2_uri <b2_fits> 197 281 198 282 In practise, the above two commands ("ppImage" and "dettool 199 283 -addresidimfile") will be performed by a Perl script, 200 "detrend_ create_resid.pl".284 "detrend_resid.pl". 201 285 202 286 -------------------------------------------------------------------------------- … … 229 313 problems; these could be removed by other means): 230 314 231 dettool -addresidexp -det_id <det_id> -iter <iter> -exp_id <exp_id> -recip <recipe> -b1_uri <uri_jpeg1> -b2_uri <uri_jpeg2> - bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat> [-reject]315 dettool -addresidexp -det_id <det_id> -iter <iter> -exp_id <exp_id> -recip <recipe> -b1_uri <uri_jpeg1> -b2_uri <uri_jpeg2> -resid_bg <stat> -resid_bg_stdev <stat> -resid_bg_mean_stdev <stat> [-reject] 232 316 233 317 where the "-reject" flag indicates that the exposure is not to be … … 266 350 iteration as a whole we can run: 267 351 268 dettool -adddetrunsummary -det_id <det_id> -iter <iter> -bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat> [-reject] 269 270 Which allows per detrend run iteration summary statics to be registered and 271 can flag the iteration's results as being acceptable for use as a master. 352 dettool -adddetrunsummary -det_id <det_id> -iter <iter> -det_bg <stat> -det_bg_stdev <stat> -det_bg_mean_stdev <stat> [-accept] 353 354 Which allows per detrend run iteration summary statics to be 355 registered and can flag the iteration's results as being acceptable 356 for use as a master (if -accept is indicated). 272 357 273 358 Once this has been done, a decision is made whether to make another
Note:
See TracChangeset
for help on using the changeset viewer.
