This page explains the steps needed to add a new detrend type to the system (CTE Mask as an example)

* define the analysis needed to produce the 'processed' images:

in this case, I have created a new ppImage recipe option 'CHECK.CTE', which replaces the image with a measurement of the variance in a superpixel divided by the cell median value.

* add the new detrend type to the tables listed in ** detrend_process_imfile.pl -- $FILERULES ** detrend_stack.pl -- $FILERULES and $STATRECIPES ** detrend_resid_imfile.pl -- DETRENDS and $FILERULES ** detrend_norm_calc.pl -- NORMALIZE ** detrend_norm_apply.pl -- DETTYPE

* add detrend type to reduction classes

* create a ppMerge recipe for the detrend type (and modify ppMerge if needed!)

* create a jpeg recipe as needed