IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9050


Ignore:
Timestamp:
Sep 28, 2006, 4:56:08 PM (20 years ago)
Author:
Paul Price
Message:

Removed excess step (detrend_poststack_imfile.pl) by having everything
go through normalisation, and having the normalisation application also
do binning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/ipptools/dettool.txt

    r9042 r9050  
    6060to detProcessedImfiles:
    6161
    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>
     62        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> -b1_uri <binned1_uri> -b2_uri <binned2_uri>
    6363
    6464In practise, the above "ppImage" and "dettool -addprocessed" commands
     
    8585the imfile statistics) is added into the database for the exposure:
    8686
    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>
     87        dettool -addprocessedexp -exp_id <exp_id> -bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat> -uri <jpeg_uri> -jpeg_uri <jpeg_uri>
    8888
    8989In practise, the above "dettool -processed", "ppImage" and "dettool
     
    125125
    126126Once the stack has been completed, "dettool -addstacked" adds a
    127 stacked class_id and and optionally marks it for normalization:
    128 
    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>
    130 
    131 The "-pleasenormalize" flag indicates that the normalisation steps are
    132 to be performed (in the case of flat-fields); if this flag is missing,
    133 then the normalisation steps are to be skipped and the stacked imfiles
    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.
     127stacked class_id:
     128
     129        dettool -addstacked -det_id <det_id> -iter <iter> -class_id <class_id> -recip <recipe> -uri <stacked_uri> -bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat>
    137130
    138131In practise, the above three commands ("dettool -processed", "ppMerge"
     
    155148
    156149This returns the complete list of processed imfiles for the specified
    157 det_id, providing exposure id, class id, statistic, which we use in
    158 the normalisation:
     150det_id, providing exposure id, class id, statistic, detrend type,
     151which we use in the normalisation:
    159152
    160153        ppNormCalc INPUT.mdc
     
    175168"ppNorm" and "dettool -addnormstat") will be performed by a Perl
    176169script, "detrend_norm_calc.pl".
     170
     171If the detrend type is not suitable for normalisation, then
     172normalisation values of unity will be generated without solving the
     173matrix with ppNormCalc.
    177174
    178175*** To do: possible upgrade path is to have "dettool -addnormstat"
     
    193190detNormalizedImfile.
    194191
    195 For each imfile, we apply the normalisation:
    196 
    197         ppArith -file1 <in_uri> -operation * -constant <normalisation> -out <out_uri>
     192For each imfile, we apply the normalisation, generate binned images
     193and statistics:
     194
     195        ppNormApply -file <in_uri> <out_uri> -norm <normalisation> -stat <statictics_file>
    198196
    199197The normalised imfile is then inserted into detNormalizedImfile:
    200198
    201         dettool -addnormalizedimfile -det_id <det_id> -iter <iter> -class_id <class_id> -uri <out_uri>
     199        dettool -addnormalizedimfile -det_id <det_id> -iter <iter> -class_id <class_id> -uri <out_uri> -b1_uri <b1_uri> -b2_uri <b2_uri> -bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat>
    202200
    203201In practise, the above two commands ("ppArith" and "dettool
     
    208206--------------------------------------------------------------------------------
    209207
    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
     208Pan-Tasks regularly runs:
     209
     210        dettool -normexp
    240211
    241212which returns a list of stack exposures which have had normalised
     
    244215For each exposure, we get the list of component imfiles:
    245216
    246         dettool -stackimfile -exp_id <exp_id>
     217        dettool -normimfile -exp_id <exp_id>
    247218
    248219This includes the statistics (bg, bg_stdev, bg_mean_stdev) and the
     
    254225The statistics and JPEG uri are pushed into the database:
    255226
    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>
     227        dettool -addnormexp -exp_id <exp_id> -j1_uri <jpeg1_uri> -j2_uri <jpeg2_uri> -bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat>
    257228
    258229In practise, the above three commands ("dettool -stackimfile",
    259 "ppImage" and "dettool -addnormexpsummary") will be performed by a
    260 Perl script, "detrend_poststack_exp.pl".
     230"ppImage" and "dettool -addnormexp") will be performed by a
     231Perl script, "detrend_norm_exp.pl".
    261232
    262233--------------------------------------------------------------------------------
     
    278249The residual is then inserted into the database:
    279250
    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>
     251        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>
    281252
    282253In practise, the above two commands ("ppImage" and "dettool
     
    313284problems; these could be removed by other means):
    314285
    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]
     286        dettool -addresidexp -det_id <det_id> -iter <iter> -exp_id <exp_id> -recip <recipe> -j1_uri <uri_jpeg1> -j2_uri <uri_jpeg2> -bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat> [-reject]
    316287
    317288where the "-reject" flag indicates that the exposure is not to be
     
    350321iteration as a whole we can run:
    351322
    352         dettool -adddetrunsummary -det_id <det_id> -iter <iter> -det_bg <stat> -det_bg_stdev <stat> -det_bg_mean_stdev <stat> [-accept]
     323        dettool -adddetrunsummary -det_id <det_id> -iter <iter> -bg <stat> -bg_stdev <stat> -bg_mean_stdev <stat> [-accept]
    353324
    354325Which allows per detrend run iteration summary statics to be
Note: See TracChangeset for help on using the changeset viewer.