Index: /trunk/doc/config/config.tex
===================================================================
--- /trunk/doc/config/config.tex	(revision 11569)
+++ /trunk/doc/config/config.tex	(revision 11570)
@@ -1,3 +1,3 @@
-%%% $Id: config.tex,v 1.5 2007-02-02 04:46:06 price Exp $
+%%% $Id: config.tex,v 1.6 2007-02-02 04:55:38 price Exp $
 \documentclass[panstarrs,spec]{panstarrs}
 
@@ -247,9 +247,9 @@
 
 The Focal Plane hierarchy (\code{pmFPA, pmChip, pmCell, pmReadout}) is
-explained in more detail in \S\ref{sec:focalplane}.  The top level, an
-FPA, contains one or more chips, which correspond to a contiguous piece
-of silicon.  A chip contains one or more cells, which correspond to a
-single amplifier.  A cell contains one or more readouts, which
-correspond to individual reads of the detector.
+explained in more detail in the psModules SDRS (PSDC-430-012).  The
+top level, an FPA, contains one or more chips, which correspond to a
+contiguous piece of silicon.  A chip contains one or more cells, which
+correspond to a single amplifier.  A cell contains one or more
+readouts, which correspond to individual reads of the detector.
 
 The purpose of the camera configuration is to define the contents of
@@ -1527,4 +1527,11 @@
   \item \code{SCALE.MAX(F32)} specifies the maximum scale.
   \end{itemize}
+\item \code{DETREND.CONSTRAINTS(METADATA)} contains constraints for
+  the detrend lookup as a function of type.  Each type is a
+  \code{METADATA} with the constraints to be used.  Supported
+  constraint names are: \code{FILTER}, \code{EXPTIME} and
+  \code{AIRMASS}.  Each is of type \code{STR} and the value is a
+  string specifying a concept that will provide the constraint value.
+  \label{sec:detrend-database}
 \end{itemize}
 
@@ -1599,4 +1606,23 @@
 
 PHOTCODE.RULE           STR     {CAMERA}.{FILTER.ID}.{CHIP.N}
+  
+DETREND.CONSTRAINTS  METADATA
+  BIAS METADATA
+  # NONE
+  END
+  DARK METADATA
+    EXPTIME STR FPA.EXPTIME
+  END
+  FLAT METADATA
+    FILTER  STR FPA.FILTERID
+  END
+  FRINGE METADATA
+    FILTER   STR FPA.FILTERID
+    AIRMASS  STR FPA.AIRMASS
+  END
+  SHUTTER METADATA
+  # NONE
+  END	
+END
 \end{verbatim}
 
