IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9042


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

Adding modes for JPG creation (processed and stacked exposures).
Renaming the statistics triplets to make clear that they are
different at different stages.

File:
1 edited

Legend:

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

    r8613 r9042  
    5555        ppImage -file <imfile_uri> <processed_uri> -recipe PPIMAGE <ppImage_recipe> -stat <temporary_statistics_file>
    5656
    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>
     57In addition to removing the nominated instrumental signatures, this
     58also generates binned images to create a JPEG in the next step.  Once
     59processing has been performed, "dettool -addprocessed" adds an imfile
     60to 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>
    6163
    6264In practise, the above "ppImage" and "dettool -addprocessed" commands
    63 will be performed by a script, "detrend_process.pl".
     65will be performed by a script, "detrend_process_imfile.pl".
     66
     67--------------------------------------------------------------------------------
     68
     69Pan-Tasks regularly runs:
     70
     71        dettool -processedexp
     72
     73This command returns a list of exposures that have had all imfiles
     74processed.  This list includes the exposure id.  Using this exposure
     75id, a list of imfiles may be gathered using:
     76
     77        dettool -processed -exp_id <exp_id>
     78
     79The output includes b1_uri, b2_uri, bg, bg_stdev and bg_mean_stdev for
     80the processed imfiles.  These are combined into a JPEG by:
     81
     82        ppImage -list <file_list> <output_uri> -recipe PPIMAGE PPIMAGE_J
     83
     84The resultant image, along with summary statistics (calculated from
     85the 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
     89In practise, the above "dettool -processed", "ppImage" and "dettool
     90-addprocessedexp" commands will be performed by a script,
     91"detrend_process_exp.pl".
    6492
    6593--------------------------------------------------------------------------------
     
    99127stacked class_id and and optionally marks it for normalization:
    100128
    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>
    102130
    103131The "-pleasenormalize" flag indicates that the normalisation steps are
    104132to be performed (in the case of flat-fields); if this flag is missing,
    105133then 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".
     134are inserted in table of normalised imfiles.  The statistics fields
     135have "norm" since these statistics will be used to determine the
     136normalisations.
     137
     138In practise, the above three commands ("dettool -processed", "ppMerge"
     139and "dettool -addstacked") will be performed by a Perl script,
     140"detrend_stack.pl".
    111141
    112142
     
    144174In practise, the above three commands ("dettool -processed -unmask",
    145175"ppNorm" and "dettool -addnormstat") will be performed by a Perl
    146 script, "detrend_calc_norm.pl".
     176script, "detrend_norm_calc.pl".
    147177
    148178*** To do: possible upgrade path is to have "dettool -addnormstat"
     
    165195For each imfile, we apply the normalisation:
    166196
    167         ppNormApply -file <in_uri> <out_uri> -norm <normalisation>
     197        ppArith -file1 <in_uri> -operation * -constant <normalisation> -out <out_uri>
    168198
    169199The normalised imfile is then inserted into detNormalizedImfile:
     
    171201        dettool -addnormalizedimfile -det_id <det_id> -iter <iter> -class_id <class_id> -uri <out_uri>
    172202
    173 In practise, the above two commands ("ppNormApply" and "dettool
     203In practise, the above two commands ("ppArith" and "dettool
    174204-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
     215Pan-Tasks regularly runs:
     216
     217        dettool -stackedimfile
     218
     219which returns a list of stack imfiles which have been normalised (or
     220had normalisation skipped).  This includes the exposure id, class id
     221and uri.
     222
     223For 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
     227The 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
     231In practise, the above commands ("ppImage" and "dettool
     232-addnormimfilesummary") will be performed by a Perl script,
     233"detrend_poststack_imfile.pl".
     234
     235--------------------------------------------------------------------------------
     236
     237Pan-Tasks regularly runs:
     238
     239        dettool -normalizedexp
     240
     241which returns a list of stack exposures which have had normalised
     242imfile summaries added.  This includes the exposure id.
     243
     244For each exposure, we get the list of component imfiles:
     245
     246        dettool -stackimfile -exp_id <exp_id>
     247
     248This includes the statistics (bg, bg_stdev, bg_mean_stdev) and the
     249URIs for the binned images.  From these, we generate summary
     250statistics for the exposure, and produce a JPEG:
     251
     252        ppImage -list <input_list> <out_uri> -recipe PPIMAGE PPIMAGE_J
     253
     254The 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
     258In practise, the above three commands ("dettool -stackimfile",
     259"ppImage" and "dettool -addnormexpsummary") will be performed by a
     260Perl script, "detrend_poststack_exp.pl".
    177261
    178262--------------------------------------------------------------------------------
     
    194278The residual is then inserted into the database:
    195279
    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>
    197281
    198282In practise, the above two commands ("ppImage" and "dettool
    199283-addresidimfile") will be performed by a Perl script,
    200 "detrend_create_resid.pl".
     284"detrend_resid.pl".
    201285
    202286--------------------------------------------------------------------------------
     
    229313problems; these could be removed by other means):
    230314
    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]
    232316
    233317where the "-reject" flag indicates that the exposure is not to be
     
    266350iteration as a whole we can run:
    267351
    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
     354Which allows per detrend run iteration summary statics to be
     355registered and can flag the iteration's results as being acceptable
     356for use as a master (if -accept is indicated).
    272357
    273358Once this has been done, a decision is made whether to make another
Note: See TracChangeset for help on using the changeset viewer.