Index: trunk/ppImage/src/ppImage.h
===================================================================
--- trunk/ppImage/src/ppImage.h	(revision 25930)
+++ trunk/ppImage/src/ppImage.h	(revision 26895)
@@ -38,5 +38,6 @@
     bool doShutter;                     // Shutter correction
     bool doFlat;                        // Flat-field normalisation
-    bool doPattern;                     // Pattern noise subtraction
+    bool doPatternRow;                  // Row pattern correction
+    bool doPatternCell;                 // Cell pattern correction
     bool doFringe;                      // Fringe subtraction
     bool doPhotom;                      // Source identification and photometry
@@ -95,11 +96,13 @@
     float fringeKeep;                   // Fringe keep fraction
 
-    // Pattern noise subtraction
-    int patternOrder;                   // Polynomial order
-    int patternIter;                    // Clipping iterations
-    float patternRej;                   // Clipping threshold
-    float patternThresh;                // Ignore threshold
-    psStatsOptions patternMean;         // Statistic for mean
-    psStatsOptions patternStdev;        // Statistic for stdev
+    // Pattern correction
+    int patternRowOrder;                   // Polynomial order
+    int patternRowIter;                    // Clipping iterations
+    float patternRowRej;                   // Clipping threshold
+    float patternRowThresh;                // Ignore threshold
+    psStatsOptions patternRowMean;         // Statistic for mean
+    psStatsOptions patternRowStdev;        // Statistic for stdev
+    psStatsOptions patternCellBG;          // statistic for background
+    psStatsOptions patternCellMean;        // Statistic for mean
 
     int remnanceSize;                   // Size for remnance detection
