Index: trunk/ppTranslate/documentation/ICD/PSDC-940-005.tex
===================================================================
--- trunk/ppTranslate/documentation/ICD/PSDC-940-005.tex	(revision 34688)
+++ trunk/ppTranslate/documentation/ICD/PSDC-940-005.tex	(revision 34695)
@@ -2,7 +2,6 @@
 \documentclass[panstarrs,spec]{panstarrs}
 \usepackage{nonfloat}
-
-\newcommand{\sccomment}[1]{%
-  \textcolor{green}{SC: #1}}
+\usepackage{caption}
+
 \newcommand{\outformatversion}{%
   \texttt{PS1\_DV3}}
@@ -12,5 +11,5 @@
 \subtitle{Pan-STARRS IPP-MOPS ICD for PS-1}
 \shorttitle{IPP-MOPS ICD}
-\author{Eugene Magnier, Larry Denneau, Jr., Robert Jedicke}
+\author{\parbox{3in}{Serge Chastel; Larry Denneau, Jr.; Denver Green; Robert Jedicke; Eugene Magnier}}
 \audience{Pan-STARRS PMO}
 \group{Pan-STARRS IPP \& MOPS}
@@ -26,11 +25,13 @@
 \RevisionsStart
 % version  Date            Description
-03 & 2012 Oct 04 & \texttt{PS1\_DV3}: Fitted trails, new parameters\\ 
-\hline
-02 & 2011 Apr 19 & Synchronization with "ICD Lite" wiki page \\ 
-\hline
-01 & 2010 Oct 27 & New CMF Parameters \\ 
-\hline
-00 & 2006 Mar 01 & Initial version \\ \hline
+04 & 2012 Nov 20  & Answers to DG comments/questions \\ 
+\hline
+03 & 2012 Oct 04  & \texttt{PS1\_DV3}: Fitted trails, new parameters\\ 
+\hline
+02 & 2011 Apr 19  & Synchronization with "ICD Lite" wiki page \\ 
+\hline
+01 & 2010 Oct 27  & New CMF Parameters \\ 
+\hline
+00 & 2006 Mar 01  & Initial version \\ \hline
 \RevisionsEnd
 
@@ -116,4 +117,24 @@
 \DocumentsEnd
 
+\subsection{Acronyms}
+
+\begin{table}
+  \small
+  \caption{Acronyms used in this document\label{table-acronyms}}
+  \begin{tabular}{ll}
+    \hline
+    {\bf Acronym}            & {\bf Definition} \\
+    \hline
+    ADU & Analog to Digital Units (counts in an image) \\
+    ICRS  & International Celestial Reference System \\
+    IPP   & Pan-STARRS Image Processing Pipeline \\
+    FPA   & Focal Plane Array \\
+    MOPS  & Pan-STARRS Moving Object Processing System \\
+    MPC   & Center for Astrophysics Minor Planet Center \\
+    TTI   & Transient-Time Interval (about 60 minutes) \\
+    \hline
+  \end{tabular}
+\end{table}
+
 \section{Interface Overview}
 
@@ -144,10 +165,10 @@
 
 This document discusses the software interface between IPP and MOPS.
-IPP must send transient detection descriptions to the MOPS; MOPS
-must be able to query the IPP regarding whether a particular (RA,
-Dec) pair could have been detected in a particular focal plane array (FPA).  This document
-defines the data to be transferred between IPP and MOPS and the
-mechanisms to be used for that interchange.  These interfaces are
-identified as \#005 in Figure~\ref{fig:overview}.  The Interfaces
+IPP must send transient detection descriptions to the MOPS; MOPS must
+be able to query the IPP regarding whether a particular (RA, Dec) pair
+could have been detected in a particular focal plane array (FPA).
+This document defines the data to be transferred between IPP and MOPS
+and the mechanisms to be used for that interchange.  These interfaces
+are identified as \#005 in Figure~\ref{fig:overview}.  The Interfaces
 addressed by this document are marked in the table.
 
@@ -235,5 +256,9 @@
 Though efforts have been made to avoid this from occurring, where
 header keyword names are longer than the usual 8 character maximum,
-the HIERARCH convention will be used.
+the HIERARCH convention will be used (see the NASA webpages:
+\htmladdnormallink{Registered FITS
+  Convention}{http://fits.gsfc.nasa.gov/registry/hierarch_keyword.html}
+and \htmladdnormallink{4.12.4 HIERARCH Convention for Extended Keyword
+  Names}{http://heasarc.nasa.gov/docs/software/fitsio/c/f_user/node28.html}).
 
 \subsection{IPP-MOPS Exchange}
@@ -241,8 +266,10 @@
 MOPS requires from the IPP a stream of transient detections and their
 FPA metadata obtained from processing of difference images acquired by
-the PS-1 camera.  IPP is additionally required by MOPS to be able to
-indicate whether a set of detections (with RA, Dec, flux, length,
-orientation, etc.) on a previously acquired FPA was detectable by the
-PS-1 telescope.
+the PS-1 camera. 
+
+IPP is additionally required by MOPS to be able to indicate whether a
+set of detections (with RA, Dec, flux, length, orientation, etc.) on a
+previously acquired FPA was detectable by the PS-1 telescope. This
+functionality is provided through the detectability server.
 
 \subsubsection{Conventions}
@@ -305,8 +332,9 @@
 
 \begin{itemize}
-\item{EXTNAME} - Giving a unique name for the metadata table. Such a
-  name shall contain only the characters a-z, and ``\_''.
-\item{CMFVERSION} - A string specifying the version of the table
-  description file for this table.
+\item{EXTNAME} - A \emph{string} giving a unique name for the metadata
+  table. Such a name shall contain only the characters a-z, A-Z, and
+  ``\_''.
+\item{CMFVERSION} - A \emph{string} specifying the version of the
+  table description file for this table.
 \end{itemize}
 
@@ -389,259 +417,348 @@
 exposure.
 
-In addition to the required BINTABLE extension header keywords
-described above, the FITS header shall include the keywords shown in
-table \ref{trans-keywords}.  The subsequent FITS table, with EXTNAME
-of \code{MOPS_TRANSIENT_DETECTIONS}, shall include columns whose
-definitions are listed in table \ref{trans-table}.
-
 {\centering%
-  \tabcaption{IPP-MOPS Transient Detection Keywords\label{trans-keywords}}
-  \begin{longtable}{|lcp{0.5in}p{3in}|}
-    \hline \hline {\bf FITS Keyword}
-    & \parbox{0.5in}{\textbf{Version}}
-    & {\bf Precision} & {\bf Description}\\
-    \hline \hline
-    \multicolumn{4}{|l|}{\null\hspace{10mm}\textbf{Version Information}}\\
-    \hline
-    SWSOURCE & 1+ & string & source of software (e.g., "60eb6cdc-a59c-4636-a4e0-dba66a9721fd")\\
-    \hline
-    SWVERSN & 1+ & string & version of software (e.g., "trunk/ppMops@24658")\\
-    \hline
-    HIERARCH\_CMFVERSION & 2+ & char(7) & PS1\_DV1 or PS1\_DV2 or PS1\_DV3 \\
-    \hline
-    \multicolumn{4}{|l|}{\null\hspace{10mm}\textbf{Provenance Information}}\\
-    \hline
-    EXP\_NAME & 1+ & string & Exposure name (e.g., "o1234g5678")\\
-    \hline
-    EXP\_ID & 1+ & S64 & Exposure identifier \\
-    \hline
-    CHIP\_ID & 1+ & S64 & Chip stage identifier \\
-    \hline
-    CAM\_ID & 1+ & S64 & Camera stage identifier \\
-    \hline
-    FAKE\_ID & 1+ & S64 & Fake stage identifier \\
-    \hline
-    WARP\_ID  & 1+ & S64 & Warp stage identifier \\
-    \hline
-    DIFF\_ID & 1+ & S64 & Diff stage \\
-    \hline
-    DIFF\_POS & 1+ & boolean & Sense of subtraction; T for forward, F for backward\\
-    \hline
-    \multicolumn{4}{|l|}{\null\hspace{10mm}\textbf{Exposure Details}}\\
-    \hline MJD-OBS & 0+
-    & F64 & midpoint time of the exposure as a MJD and day fraction \\
-    \hline
-    RA & 0+
-    & {\tiny HH:MM:SS.SSS} & field center RA at exposure midpoint, string \\
-    \hline
-    DEC & 0+ &
-    {\tiny sDD:MM:SS}& (s is + or -) field center declination at exposure midpoint, string \\
-    \hline
-    EXPTIME & 0+
-    & F64 & exposure time in seconds \\
-    \hline
-    ROTANGLE & 0+
-    & F64 & image rotation of the y-axis in degrees, from local N toward E \\
-    \hline
-    FILTER & 0+ & char(3) & effective filter used for the exposure,
-    one of g, r, i, z, y, B, V, w
-    appended with '.00000'\\
-    \hline
-    AIRMASS & 0+ & F64
-    & airmass at exposure midpoint \\
-    \hline
-    OBSCODE & 0+ & char(5) & MPC three-character observatory code \\
-    \hline
-    TEL\_ALT & 0+ & F64 & telescope altitude at exposure midpoint, in degrees \\
-    \hline
-    TEL\_AZ & 0+ & F64 & telescope azimuth at exposure midpoint, in degrees \\
-    \hline
-    SEEING & 1+ & F32 & Measured seeing at diff stage, arcsec \\
-    \hline
-    MAGZP & 1+ & F32 & Magnitude zero point \\
-    \hline
-    MAGZPERR & 1+ & F32 & Error in magnitude zero point \\
-    \hline
-    ASTRORMS & 1+ & F32 & RMS of astrometric fit, arcsec \\
-    \hline
-    COMMENT & 3+ & String & Comment associated to the exposure\\
-    \hline
-    OBS\_MODE & 3+ & String & Observation mode (e.g. MD, 3PI...)\\
-    \hline
-    DIFFTYPE & 3+ & String & Difference type: WW (Warp-Warp Difference), WS (Warp-Stack Difference)\\
-    \hline
-    SKY  & 3+ & F64 & Exposure average sky background \\
-    \hline
-    SHUTOUTC & 3+ & String & Camera exposure shutter open (UTC) \\
-    \hline
+  \tabcaption{IPP-MOPS Data Types Definition\label{table-datatypes}}
+  \begin{longtable}{|cp{5in}|}
+    \hline
+    \textbf{Alias} & \textbf{Description} \\
+    \texttt{bool} & (Not a FITS type) An enumerated type defining a Boolean
+    value, either \texttt{true} or \texttt{false}\\
+    \texttt{char($n$)} & (Not a FITS type) A sequence of exactly $n$ bytes that
+    can be interpreted
+    as a sequence of ASCII characters\\
+    \texttt{HH:MM:SS.sss} & (Not a FITS type) a \texttt{char(12)} encoding
+    a time or an angle: (1) the hours \texttt{HH} are encoded with two
+    decimal figures; (2) a separator \texttt{:} between the hours and
+    the minutes; (3) the minutes \texttt{MM} are encoded with two
+    decimal figures; (4) a separator \texttt{:} between the minutes
+    and the seconds; (5) the seconds \texttt{SS} are encoded with two
+    decimal figures; (6) a separator \texttt{.} between the seconds
+    and the milli(arc)seconds; (7)
+    the milli(arc)seconds \texttt{ss} are encoded with three decimal figures; \\
+    \texttt{sDD:MM:SS} & (Not a FITS type) a \texttt{char(9)} encoding an
+    angle. (1) \texttt{s} is either the \texttt{+} or \texttt{-} sign;
+    (2) \texttt{DD} is the number of degrees encoded with two decimal
+    figures; (3) a separator \texttt{:} between the degrees and the
+    minutes; (4) the minutes \texttt{MM} are encoded with two decimal
+    figures; (5) a separator \texttt{:} between the minutes and the
+    seconds; (6) the
+    seconds \texttt{SS} are encoded with two decimal figures;\\
+    \texttt{enum} & (Not a FITS type) a \texttt{string} having a fixed number of
+    different values. The explicit set of values shall be expressed in
+    this ICD.\\
+    \texttt{F32} & (FITS type) IEEE 32-bit single precision floating point real numbers \\
+    \texttt{F64} & (FITS type) IEEE 64-bit double precision floating point real numbers \\
+    \texttt{S16} & (FITS type) 16-bit signed integer \\
+    \texttt{S32} & (FITS type) 32-bit signed integer \\
+    \texttt{S64} & (FITS type) 64-bit signed integer \\
+    \texttt{string} & (Not a FITS type) Sequence of bytes of arbitrary length 
+    usually interpreted as a sequence of ASCII characters \\
+    \texttt{U16} & (FITS type) 16-bit unsigned integer \\
+    \texttt{U32} & (FITS type) 32-bit unsigned integer \\
     \hline
   \end{longtable}
 }
 
-{\centering
-  \tabcaption{IPP-MOPS Transient Detection Table Columns\label{trans-table}}
-  \begin{longtable}{|lclp{3.5in}|}
+In addition to the required BINTABLE extension header keywords
+described above (TODO: Where? What?), the FITS header shall include the
+keywords shown in tables relative to versioning
+\ref{table-keywords-versioning}, data provenance
+\ref{table-keywords-provenance}, and exposure
+\ref{table-keywords-exposure}. The subsequent FITS table, with EXTNAME
+of \code{MOPS_TRANSIENT_DETECTIONS}, shall include columns whose
+definitions are listed in table \ref{table-detections} and, when trail
+fitting has been succesfully performed, \ref{table-detections-ext}.
+
+\begin{center}
+  \begin{longtable}{|lcp{0.5in}p{3in}|}
+    \caption{IPP-MOPS Transient Detection Keywords:\\ Version Information}\label{table-keywords-versioning}\\
+    \hline\hline
+    \multicolumn{4}{|l|}{\null\hspace*{1in}\textbf{Version Information}}\\
+    \hline\hline
+    {\bf FITS Keyword}
+    & \parbox{0.5in}{\textbf{Version}}
+    & {\bf Precision}
+    & {\bf Description} \\
+    \hline
+    SWSOURCE & 1+ & \texttt{string} & source of software (e.g., "60eb6cdc-a59c-4636-a4e0-dba66a9721fd") \\
+    \hline
+    SWVERSN & 1+ & \texttt{string} & version of software (e.g., "trunk/ppMops@24658") \\
+    \hline
+    HIERARCH CMFVERSION & 2+ & \texttt{enum} & \texttt{PS1\_DV3} \\
+    \hline\hline
+  \end{longtable}
+\end{center}
+
+\begin{center}
+  \begin{longtable}{|lcp{0.5in}p{3in}|}
+    \caption{IPP-MOPS Transient Detection Keywords:\\ Provenance Information}\label{table-keywords-provenance}\\
+    \hline\hline
+    \multicolumn{4}{|l|}{\null\hspace{10mm}\textbf{Provenance Information}}\\
     \hline \hline
-    {\bf Column} & \textbf{Version} & {\bf Precision} & {\bf Description} \\
-    \hline 
-    RA & 1+ & F64 & detection center coordinates in degrees\\
-    \hline
-    RA\_ERR & 1+ & F64 & error in the detection center, in degrees \\
-    \hline
-    DEC & 1+  & F64 & detection center coordinates in degrees \\
-    \hline
-    DEC\_ERR & 1+ & F64 & error in the detection center, in degrees \\
-    \hline
-    MAG & 1+ & F32 & Magnitude \\
-    \hline
-    MAG\_ERR & 1+ & F32 & Magnitude error \\
-    \hline
-    PSF\_CHI2 & 1+ & F32 & $\chi^2$ of PSF fit \\
-    \hline
-    PSF\_DOF & 1+ & S32 & Degrees of freedom of PSF fit \\
-    \hline
-    CR\_SIGNIFICANCE & 1+ & F32 & Significance of Cosmic Ray \\
-    \hline
-    EXT\_SIGNIFICANCE & 1+ & F32 & Significance of extendedness \\
-    \hline
-    PSF\_MAJOR & 1+ & F32 & PSF major axis (pixels) \\
-    \hline
-    PSF\_MINOR & 1+ & F32 & PSF minor axis (pixels) \\
-    \hline
-    PSF\_THETA & 1+ & F32 & PSF position angle (deg on chip) \\
-    \hline
-    PSF\_QUALITY & 1+ & F32 & PSF quality factor \\
-    \hline
-    PSF\_NPIX & 1+ & S32 & Number of pixels in PSF \\
-    \hline
-    MOMENTS\_XX & 1+ & F32 & xx moment \\
-    \hline
-    MOMENTS\_XY & 1+ & F32 & xy moment \\
-    \hline
-    MOMENTS\_YY & 1+ & F32 & yy moment \\
-    \hline
-    N\_POS & 1+ & S32 & Number of positive pixels \\
-    \hline
-    F\_POS & 1+ & F32 & Fraction of positive pixels \\
-    \hline
-    RATIO\_BAD & 1+ & F32 & Ratio of positive pixels to negative \\
-    \hline
-    RATIO\_MASK & 1+ & F32 & Ratio of positive pixels to masked \\
-    \hline
-    RATIO\_ALL & 1+ & F32 & Ratio of positive pixels to all \\
-    \hline
-    FLAGS & 1+ & U32 & Detection bit flags\footnote{See \htmladdnormallink{http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PSPSFlags\#StackDetectionFull.infoFlagsFLAGS232FLAGS}{http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PSPSFlags\#StackDetectionFull.infoFlagsFLAGS232FLAGS} for the meaning of each bit}\\
-    \hline
-    DIFF\_SKYFILE\_ID & 1+ & S64 & Identifier for diff skyfile. A
-    diff\_id (for Warp-Warp difference) or a stack\_id
-    (for Warp-Stack difference) \\
-    \hline
-    IPP\_IDET & 2+ & U32 & IPP detection identifier index \\
-    \hline
-    PSF\_INST\_FLUX & 2+ & F32 & PSF fit instrumental magnitude \\
-    \hline
-    PSF\_INST\_FLUX\_SIG & 2+ & F32 & Sigma of PSF instrumental magnitude \\
-    \hline
-    AP\_MAG & 2+ & F32 & magnitude in standard aperture \\
-    \hline
-    AP\_MAG\_RAW & 2+ & F32 & magnitude in real aperture \\
-    \hline
-    AP\_MAG\_RADIUS & 2+ & F32 & radius used for aperture mags \\
-    \hline
-    AP\_FLUX & 2+ & F32 & instrumental flux in standard aperture \\
-    \hline
-    AP\_FLUX\_SIG & 2+ & F32 & aperture flux error \\
-    \hline
-    PEAK\_FLUX\_AS\_MAG & 2+ & F32 & Peak flux expressed as magnitude \\
-    \hline
-    CAL\_PSF\_MAG & 2+ & F32 & PSF Magnitude using supplied calibration \\
-    \hline
-    CAL\_PSF\_MAG\_SIG & 2+ & F32 & measured scatter of zero point calibration \\
-    \hline
-    SKY & 2+ & F32 & Sky level \\
-    \hline
-    SKY\_SIGMA & 2+ & F32 & Sigma of sky level \\
-    \hline
-    PSF\_QF\_PERFECT & 2+ & F32 & PSF coverage/quality factor (poor) \\
-    \hline
-    MOMENTS\_R1 & 2+ & F32 & first radial moment \\
-    \hline
-    MOMENTS\_RH & 2+ & F32 & half radial moment \\
-    \hline
-    KRON\_FLUX & 2+ & F32 & Kron Flux (in 2.5 R1) \\
-    \hline
-    KRON\_FLUX\_ERR & 2+ & F32 & Kron Flux Error \\
-    \hline
-    KRON\_FLUX\_INNER & 2+ & F32 & Kron Flux (in 1.0 R1) \\
-    \hline
-    KRON\_FLUX\_OUTER & 2+ & F32 & Kron Flux (in 4.0 R1) \\
-    \hline
-    DIFF\_R\_P & 2+ & F32 & distance to positive match source \\
-    \hline
-    DIFF\_SN\_P & 2+ & F32 & signal-to-noise of pos match src \\
-    \hline
-    DIFF\_R\_M & 2+ & F32 & distance to negative match source \\
-    \hline
-    DIFF\_SN\_M & 2+ & F32 & signal-to-noise of neg match src \\
+    {\bf FITS Keyword}
+    & \parbox{0.5in}{\textbf{Version}}
+    & {\bf Precision}
+    & {\bf Description} \\
+    \hline
+    EXP\_NAME & 1+ & \texttt{string} & Exposure name (e.g., "o1234g5678")\\
+    \hline
+    EXP\_ID & 1+ & \texttt{S64} & Exposure identifier \\
+    \hline
+    CHIP\_ID & 1+ & \texttt{S64} & Chip stage identifier \\
+    \hline
+    CAM\_ID & 1+ & \texttt{S64} & Camera stage identifier \\
+    \hline
+    FAKE\_ID & 1+ & \texttt{S64} & Fake stage identifier \\
+    \hline
+    WARP\_ID  & 1+ & \texttt{S64} & Warp stage identifier \\
+    \hline
+    DIFF\_ID & 1+ & \texttt{S64} & Diff stage \\
+    \hline
+    DIFF\_POS & 1+ & \texttt{bool} & Sense of subtraction; \texttt{true} for forward, 
+    \texttt{false} for backward\\
+    \hline
+  \end{longtable}
+\end{center}
+  
+\begin{center}
+  \begin{longtable}{|lcp{0.5in}p{3in}c|}
+    \caption{IPP-MOPS Transient Detection Keywords:\\ Exposure Details}\label{table-keywords-exposure}\\
+    \hline \hline
+    \multicolumn{5}{|l|}{\null\hspace{10mm}\textbf{Exposure Details}}\\
+    \hline \hline {\bf FITS Keyword}
+    & \parbox{0.5in}{\textbf{Version}} & {\bf Precision} & {\bf
+      Description}
+    & \textbf{Units}\\
+    \hline MJD-OBS & 0+ & \texttt{F64} & midpoint time of the exposure
+    as a MJD and day fraction
+    & N/A\\
+    \hline RA & 0+ & {\tiny \texttt{HH:MM:SS.SSS}}
+    & Field center RA at exposure midpoint & N/A \\
+    \hline DEC & 0+ & {\tiny \texttt{sDD:MM:SS}} &
+    (s is + or -) Field center declination at exposure midpoint & N/A \\
+    \hline EXPTIME & 0+ & \texttt{F64}
+    & Exposure time & seconds \\
+    \hline ROTANGLE & 0+ & \texttt{F64}
+    & Image rotation of the y-axis from local N toward E & degrees \\
+    \hline FILTER & 0+ & \texttt{char(7)} & Effective filter used for
+    the exposure, one of \texttt{g}, \texttt{r}, \texttt{i},
+    \texttt{z}, \texttt{y}, \texttt{B},
+    \texttt{V}, \texttt{w} appended with '.00000' & N/A \\
+    \hline AIRMASS & 0+ & \texttt{F64}
+    & Airmass at exposure midpoint & N/A\\
+    \hline OBSCODE & 0+ & char(5) &
+    MPC 3-character observatory code (F51 for PS1) & N/A \\
+    \hline TEL\_ALT & 0+ & \texttt{F64} &
+    Telescope altitude at exposure midpoint & degrees \\
+    \hline TEL\_AZ & 0+ & \texttt{F64}
+    & Telescope azimuth at exposure midpoint & degrees \\
+    \hline SEEING & 1+ & \texttt{F32} &
+    Measured seeing at diff stage & arcsec \\
+    \hline MAGZP & 1+ & \texttt{F32} &
+    Magnitude zero point & N/A \\
+    \hline MAGZPERR & 1+ & \texttt{F32} &
+    Error in magnitude zero point & N/A \\
+    \hline ASTRORMS & 1+ & \texttt{F32} &
+    RMS of astrometric fit & arcsec \\
+    \hline CMMTOBS & 3+ & \texttt{string} &
+    Comment associated to the exposure & N/A\\
+    \hline OBS\_MODE & 3+ & \texttt{enum} & Observation modes list:
+    3PI, CNP, ESS, M31, MD, MSS, OSS, PI, STD (Note: The exposures
+    having the following PS1 observation modes are not used by MOPS:
+    CAL, PR201108, SAS2, SS, STS, STS2A, STS2B) & N/A\\
+    \hline DIFFTYPE & 3+ & \texttt{enum} &
+    Difference type: \texttt{WW} (Warp-Warp Difference), \texttt{WS} (Warp-Stack Difference) & N/A\\
+    \hline SKY & 3+ & \texttt{F64} &
+    Exposure average sky background & counts/pixel \\
+    \hline SHUTOUTC & 3+ & \texttt{string} &
+    Camera exposure shutter open (UTC) & N/A \\
+    \hline \hline
+  \end{longtable}
+\end{center}
+
+\begin{center}
+  \begin{longtable}{|lclp{3.5in}c|}
+    \caption{IPP-MOPS Transient Detection Table Columns:\\ Detection Details}\label{table-detections}\\
+    \hline \hline
+    \multicolumn{5}{|l|}{\null\hspace{10mm}\textbf{Detection Details}}\\
+    \hline \hline
+    {\bf Column} & \textbf{Version} & {\bf Precision} & {\bf Description} & \textbf{Units}\\
+    \hline
+    RA & 1+ & F64 & Detection center coordinates & degrees\\
+    \hline
+    RA\_ERR & 1+ & F64 & Error in the detection center & degrees \\
+    \hline
+    DEC & 1+ & F64 & Detection center coordinates & degrees \\
+    \hline
+    DEC\_ERR & 1+ & F64 & Error in the detection center & degrees \\
+    \hline
+    MAG & 1+ & F32 & Filter magnitude & N/A \\
+    \hline
+    MAG\_ERR & 1+ & F32 & Filter magnitude error & N/A  \\
+    \hline
+    PSF\_CHI2 & 1+ & F32 & $\chi^2$ of PSF fit & N/A \\
+    \hline
+    PSF\_DOF & 1+ & S32 & Degrees of freedom of PSF fit & N/A  \\
+    \hline
+    CR\_SIGNIFICANCE & 1+ & F32 & Significance of cosmic ray (source: \emph{src/psphot/psphotSourceSize.c}) & N/A  \\
+    \hline
+    EXT\_SIGNIFICANCE & 1+ & F32 & Significance of extendedness (source: \emph{src/psphot/psphotSourceSize.c}) & N/A  \\
+    \hline
+    PSF\_MAJOR & 1+ & F32 & PSF major axis & pixels \\
+    \hline
+    PSF\_MINOR & 1+ & F32 & PSF minor axis & pixels \\
+    \hline
+    PSF\_THETA & 1+ & F32 & PSF position angle on chip & degrees \\
+    \hline
+    PSF\_QUALITY & 1+ & F32 & PSF quality factor & N/A \\
+    \hline
+    PSF\_NPIX & 1+ & S32 & Number of pixels in PSF & N/A \\
+    \hline
+    MOMENTS\_XX & 1+ & F32 & xx moment & N/A \\
+    \hline
+    MOMENTS\_XY & 1+ & F32 & xy moment & N/A \\
+    \hline
+    MOMENTS\_YY & 1+ & F32 & yy moment & N/A \\
+    \hline
+    N\_POS & 1+ & S32 & Number of positive pixels & N/A \\
+    \hline
+    F\_POS & 1+ & F32 & Fraction of positive pixels & N/A \\
+    \hline
+    RATIO\_BAD & 1+ & F32 & Ratio of positive pixels to negative & N/A \\
+    \hline
+    RATIO\_MASK & 1+ & F32 & Ratio of positive pixels to masked & N/A \\
+    \hline
+    RATIO\_ALL & 1+ & F32 & Ratio of positive pixels to all & N/A \\
+    \hline
+    FLAGS & 1+ & U32 & Detection bit flags\footnote{See \htmladdnormallink{http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PSPSFlags\#StackDetectionFull.infoFlagsFLAGS232FLAGS}{http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PSPSFlags\#StackDetectionFull.infoFlagsFLAGS232FLAGS} for the meaning of each bit}. The PM\_SOURCE\_MODE\_EXTENDED\_FIT flag (at position 0x00800000) is set when the Trail Fitting is attempted. It does not mean that the Trail Fitting is successful. \\
+    \hline DIFF\_SKYFILE\_ID & 1+ & S64 & Identifier for diff
+    skyfile. Either a diff\_id (for Warp-Warp difference) or a
+    stack\_id
+    (for Warp-Stack difference) & N/A \\
+    \hline
+    IPP\_IDET & 2+ & U32 & IPP detection identifier index & N/A \\
+    \hline
+    PSF\_INST\_FLUX & 2+ & F32 & PSF fit instrumental magnitude & N/A \\
+    \hline
+    PSF\_INST\_FLUX\_SIG & 2+ & F32 & Sigma of PSF instrumental magnitude & N/A \\
+    \hline
+    AP\_MAG & 2+ & F32 & magnitude in standard aperture (i.e. 25 pixels radius) & N/A \\
+    \hline
+    AP\_MAG\_RAW & 2+ & F32 & magnitude in real aperture & N/A \\
+    \hline
+    AP\_MAG\_RADIUS & 2+ & F32 & radius used for aperture mags & pixels \\
+    \hline
+    AP\_FLUX & 2+ & F32 & instrumental flux in standard aperture & ADU \\
+    \hline
+    AP\_FLUX\_SIG & 2+ & F32 & aperture flux error & N/A \\
+    \hline
+    PEAK\_FLUX\_AS\_MAG & 2+ & F32 & Peak flux expressed as magnitude & N/A \\
+    \hline
+    CAL\_PSF\_MAG & 2+ & F32 & PSF Magnitude using supplied calibration & N/A \\
+    \hline
+    CAL\_PSF\_MAG\_SIG & 2+ & F32 & Measured standard-deviation of zero point calibration & N/A \\
+    \hline
+    SKY & 2+ & F32 & Sky level & counts/pixel \\
+    \hline
+    SKY\_SIGMA & 2+ & F32 & Sigma of sky level  & counts/pixel\\
+    \hline PSF\_QF\_PERFECT & 2+ & F32 & PSF coverage/quality factor
+    (poor): PSF value weighted by unmasked pixels
+    (source: psmodules/src/objects/pmSourcePhotometry.c) & N/A \\
+    \hline
+    MOMENTS\_R1 & 2+ & F32 & first radial moment & N/A \\
+    \hline
+    MOMENTS\_RH & 2+ & F32 & half radial moment & N/A \\
+    \hline
+    KRON\_FLUX & 2+ & F32 & Kron Flux (that is, flux in 2.5 $\times$ first radial moment) & N/A \\
+    \hline
+    KRON\_FLUX\_ERR & 2+ & F32 & Kron Flux Error & N/A \\
+    \hline
+    KRON\_FLUX\_INNER & 2+ & F32 & Inner Kron Flux (that is, flux in 1.0 $\times$ first radial moment) & N/A \\
+    \hline
+    KRON\_FLUX\_OUTER & 2+ & F32 & Outer Kron Flux (that is, flux in 4.0 $\times$ first radial moment) & N/A \\
+    \hline
+    DIFF\_R\_P & 2+ & F32 & distance from detection to positive matching source & pixels \\
+    \hline
+    DIFF\_SN\_P & 2+ & F32 & signal-to-noise of pos match src & N/A \\
+    \hline
+    DIFF\_R\_M & 2+ & F32 & distance from detectionto negative match source & pixels \\
+    \hline
+    DIFF\_SN\_M & 2+ & F32 & signal-to-noise of neg match src & N/A \\
     \hline
     FLAGS2 & 2+ & U32 & psphot analysis flags (group 2)\footnote{See \htmladdnormallink{http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PSPSFlags\#StackDetectionFull.infoFlagsFLAGS232FLAGS}{http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PSPSFlags\#StackDetectionFull.infoFlagsFLAGS232FLAGS} for the meaning of each bit}\\
     \hline
-    N\_FRAMES & 2+ & U16 & Number of frames overlapping source center \\
+    N\_FRAMES & 2+ & U16 & Number of exposures overlapping source center \\
     \hline
     PADDING & 2+ & S16 & padding \\
-    \hline
-    \multicolumn{4}{|c|}{\textbf{Extended (trail fitting) parameters}}\\
-    \multicolumn{4}{|c|}{Values like \texttt{NaN} mean that the extended parameters are undefined for the detection}\\
-    \hline
-    X\_EXT & 2+ & F32 & Extended model X coordinate \\
-    \hline
-    Y\_EXT & 2+ & F32 & Extended model Y coordinate \\
-    \hline
-    X\_EXT\_SIG & 2+ & F32 & Sigma in extended model X coordinate \\
-    \hline
-    Y\_EXT\_SIG & 2+ & F32 & Sigma in extended model Y coordinate \\
-    \hline
-    EXT\_INST\_MAG & 2+ & F32 & Extended fit instrumental magnitude \\
-    \hline
-    EXT\_INST\_SIG\_MAG & 2+ & F32 & Sigma of extended fit instrumental magnitude \\
-    \hline
-    NPARAMS & 2+ & F32 & Number of model parameters \\
-    \hline
-    EXT\_WIDTH\_MAJ & 2+ & F32 & EXT width (major axis), length for trail \\
-    \hline
-    EXT\_WIDTH\_MIN & 2+ & F32 & EXT width (minor axis), sigma for trail \\
-    \hline
-    EXT\_THETA & 2+ & F32 & EXT orientation angle\\
-    \hline
-    EXT\_WIDTH\_MAJ\_ERR & 2+ & F32 & EXT width error (major axis)\\
-    \hline
-    EXT\_WIDTH\_MIN\_ERR & 2+ & F32 & EXT width error (minor axis)\\
-    \hline
-    EXT\_THETA\_ERR & 2+ & F32 & EXT orientation angle (error)\\
-    \hline
-    RA\_EXT & 3+ & F32 & Fitted centroid RA \\
-    \hline
-    RA\_EXT\_SIGMA & 3+ & F32 & Fitted RA sigma \\
-    \hline
-    DEC\_EXT & 3+ & F32 & Fitted centroid DEC \\
-    \hline
-    DEC\_EXT\_SIGMA & 3+ & F32 & Fitted DEC sigma \\
-    \hline
-    POSANG\_EXT & 3+ & F32 & Fitted position angle \\
-    \hline
-    PLTSCALE\_EXT & 3+ & F32 & Plate scale at centroid \\
-    \hline
-    EXT\_FLUX & 3+ & F32 & Fitted flux \\
-    \hline
-    EXT\_CAL\_MAG & 3+ & F32 & Calibrated magnitude \\
-    \hline
-    EXT\_MAG\_SIG & 3+ & F32 & Sigma of calibrated magnitude \\
-    \hline
-    EXT\_CHISQ & 3+ & F32 & $\chi^2$ of fit \\
-    \hline
-    EXT\_NDOF & 3+ & S32 & Fit degrees of freedom \\
-    \hline
+    \hline \hline
   \end{longtable}
-}
+\end{center}
+
+\begin{center}
+  \begin{longtable}{|lclp{3.5in}c|}
+    \caption{IPP-MOPS Transient Detection Table Columns:\\ Extended (Trail Fitting) Details}\label{table-detections-ext}\\
+    \hline \hline
+    \multicolumn{5}{|c|}{\textbf{Extended (trail fitting) parameters}}\\
+    \multicolumn{5}{|c|}{Values like \texttt{NaN} mean that the extended parameters are undefined for the detection}\\
+    \hline
+    X\_EXT & 2+ & F32 & 
+    Extended model X coordinate & pixels\\
+    \hline
+    Y\_EXT & 2+ & F32 & 
+    Extended model Y coordinate & pixels \\
+    \hline
+    X\_EXT\_SIG & 2+ & F32 & 
+    Sigma in extended model X coordinate & pixels \\
+    \hline
+    Y\_EXT\_SIG & 2+ & F32 & 
+    Sigma in extended model Y coordinate & pixels \\
+    \hline
+    EXT\_INST\_MAG & 2+ & F32 & 
+    Extended fit instrumental magnitude & N/A \\
+    \hline
+    EXT\_INST\_SIG\_MAG & 2+ & F32 & 
+    Sigma of extended fit instrumental magnitude & N/A \\
+    \hline
+    NPARAMS & 2+ & S32 & 
+    Number of model parameters (TODO: Reference to PV paper for details) & N/A \\
+    \hline
+    EXT\_WIDTH\_MAJ & 2+ & F32 & % The name is weird but it's because of normalization
+    Length of trail & pixels \\  % in the IPP: Check if MOPS want to change it
+    \hline
+    EXT\_WIDTH\_MIN & 2+ & F32 &  % The name is weird but it's because of normalization
+    Sigma of trail & pixels \\    % in the IPP: Check if MOPS want to change it
+    \hline
+    EXT\_THETA & 2+ & F32 & EXT orientation angle & radians \\
+    \hline
+    EXT\_WIDTH\_MAJ\_ERR & 2+ & F32 & EXT width error (major axis) & pixels \\
+    \hline
+    EXT\_WIDTH\_MIN\_ERR & 2+ & F32 & EXT width error (minor axis) & pixels \\
+    \hline
+    EXT\_THETA\_ERR & 2+ & F32 & EXT orientation angle (error) & radians \\
+    \hline
+    RA\_EXT & 3+ & F32 & Fitted centroid RA & degrees \\
+    \hline
+    RA\_EXT\_SIGMA & 3+ & F32 & Fitted RA sigma & degrees? \\
+    \hline
+    DEC\_EXT & 3+ & F32 & Fitted centroid DEC & degrees \\
+    \hline
+    DEC\_EXT\_SIGMA & 3+ & F32 & Fitted DEC sigma & degrees? \\
+    \hline
+    POSANG\_EXT & 3+ & F32 & Fitted position angle & degrees \\
+    \hline
+    PLTSCALE\_EXT & 3+ & F32 & Plate scale at centroid & arcsec/pixel \\
+    \hline
+    EXT\_FLUX & 3+ & F32 & Fitted flux & ADU \\
+    \hline
+    EXT\_CAL\_MAG & 3+ & F32 & Calibrated magnitude & N/A \\
+    \hline
+    EXT\_MAG\_SIG & 3+ & F32 & Sigma of calibrated magnitude & N/A \\
+    \hline
+    EXT\_CHISQ & 3+ & F32 & $\chi^2$ of fit & N/A \\
+    \hline
+    EXT\_NDOF & 3+ & S32 & Fit degrees of freedom & N/A \\
+    \hline
+  \end{longtable}
+\end{center}
 
 \subsection{MOPS Detectability Query}
@@ -764,7 +881,120 @@
 
 \pagebreak
+
+\section{Changes}
+
+\subsection{Changes in PS1\_DV3 from PS1\_DV2}
+
+\subsubsection{New Keywords}
+
+\paragraph{Per Exposure (in FITS header)}
+\begin{itemize}
+\item CMMTOBS
+\item OBS\_MODE
+\item DIFFTYPE
+\item SKY
+\item SHUTOUTC
+\end{itemize}
+
+\paragraph{Per Detection (in FITS extension)}
+\begin{itemize}
+\item RA\_EXT
+\item RA\_EXT\_SIGMA
+\item DEC\_EXT
+\item DEC\_EXT\_SIGMA
+\item POSANG\_EXT
+\item PLTSCALE\_EXT
+\item EXT\_FLUX
+\item EXT\_CAL\_MAG
+\item EXT\_MAG\_SIG
+\item EXT\_CHISQ
+\item EXT\_NDOF
+\end{itemize}
+
+\subsubsection{Removed Keywords}
+
+None
+
+\subsubsection{Datatypes}
+\begin{itemize}
+\item NPARAMS is now a S32 and no more a F32.
+\end{itemize}
+
+\subsubsection{Known Bugs and Associated Fix}
+
+\begin{itemize}
+\item None
+\end{itemize}
+
+\newpage
+
 \appendix
 
-\section{Appendix}
+\section{The IPP Data Workflow}
+
+The objective of this section is to provide some details about the IPP
+Workflow. It is intentionnally MOPS oriented in the sense that some
+details have been voluntarily omitted.
+
+\begin{minipage}{0.65\linewidth}
+  The IPP receives "exposures" from the telescope. An "exposure" is an
+  image of 60 OTAs (see figure~\ref{fig-exposure-otas}) taken by the
+  GPC1 camera and its associated metadata. All science exposures
+  (which are interesting MOPS) are processed in the IPP according to
+  the following stages.
+
+  The first stage is the CHIP stage. Detrending and objects detections
+  are performed on each OTA at this stage.
+
+  The second stage is the CAMERA stage. Calibration and astrometry are
+  performed on the exposure at this stage.
+
+  The third stage is the WARP stage\footnote{For simplicity and since
+    nothing is performed in this stage, the FAKE stage has been
+    ommitted.}. The image pixels are warped to fit a predefined sky
+  tessellation (it is actually a covering). Cells of the tessellation
+  are called \emph{skycells} and each pixel in a skycell has a size of
+  $0.25" \times 0.25"$. The skycell is oriented so that increasing X
+  (wrt Y) pixel coordinate corresponds to a move toward the West (wrt
+  North).
+
+  The fourth stage is the DIFF stage. The difference between two
+  skycells having the same spatial coordinates but being distant in
+  time (by less than the TTI) is computed. To avoid deconvolution,
+  the image difference can be performed in bothways When the newer
+  image is diffed with the older image, the difference image is called
+  the \emph{positive} image. When the older image is diffed with the
+  newer image, the difference image is called the \emph{negative}
+  image.
+
+  Another stage is executed in parallel of the fourth stage: the STACK
+  stage. Its products (the stacks, that is, "average" observations in
+  a skycell) can be used in the DIFF stage to compute WARP-STACK
+  differences (e.g for MD observations). STACK-WARP are not computed
+  (so far).
+
+  The fifth and last stage is the PPMOPS stage. The exposure is
+  rebuilt from the differences obtained in each skycell of the DIFF
+  stage. For detections falling in areas covered by two or more
+  skycells, the data of the detection being the nearest to a skycell
+  center are taken.
+\end{minipage}\hfill\begin{minipage}{0.3\linewidth}
+  \begin{center}
+    \includegraphics[width=\linewidth]{figures/ipp_workflow.eps}
+    \captionof{figure}{Caption for figure}
+    \label{fig-ipp-workflow}
+  \end{center}
+\end{minipage}
+
+\begin{center}
+  \includegraphics[width=4in]{figures/exposure_ota.eps}
+  \captionof{figure}{Exposure / OTA TODO + Move somewhere else}
+  \label{fig-exposure-otas}
+\end{center}
+
+\newpage
+\section{Obsolete Stuff?}
+
+TODO (SC): The following stuff seems obsolete. Tell me if I can remove it.
 
 \subsection{IPP to MOPS}
@@ -797,24 +1027,4 @@
 \hline
 Detectability Query         & \code{MOPS_DETECTABILITY_QUERY} & table of detectability query tuples (RA, Dec, FPA) \\
-\end{tabular}
-\end{center}
-\end{table}
-
-\subsection{Acronyms}
-
-\begin{table}[htbp]
-\begin{center}
-\small
-\caption{Acronyms used in this document\label{table-acronyms}}
-\begin{tabular}{ll}
-\hline
-\hline
-{\bf Acronym}            & {\bf Definition} \\
-\hline
-MOPS     & Pan-STARRS Moving Object Processing System \\
-IPP      & Pan-STARRS Image Processing Pipeline \\
-FPA      & Focal plane array \\
-MPC      & Center for Astrophysics Minor Planet Center \\
-\hline
 \end{tabular}
 \end{center}
@@ -841,101 +1051,4 @@
 \end{itemize}
 
-\subsection{Example}
-\label{sec-example}
-
-\begin{verbatim}
-XTENSION= 'BINTABLE'           / binary table extension
-BITPIX  =                    8 / 8-bit bytes
-NAXIS   =                    2 / 2-dimensional binary table
-NAXIS1  =                  120 / width of table in bytes
-NAXIS2  =                42032 / number of rows in table
-PCOUNT  =                    0 / size of special data area
-GCOUNT  =                    1 / one data group (required keyword)
-TFIELDS =                   25 / number of fields in each row
-TTYPE1  = 'RA      '           / label for field   1
-TFORM1  = '1D      '           / data format of field: 8-byte DOUBLE
-TTYPE2  = 'RA_ERR  '           / label for field   2
-TFORM2  = '1D      '           / data format of field: 8-byte DOUBLE
-TTYPE3  = 'DEC     '           / label for field   3
-TFORM3  = '1D      '           / data format of field: 8-byte DOUBLE
-TTYPE4  = 'DEC_ERR '           / label for field   4
-TFORM4  = '1D      '           / data format of field: 8-byte DOUBLE
-TTYPE5  = 'MAG     '           / label for field   5
-TFORM5  = '1E      '           / data format of field: 4-byte REAL
-TTYPE6  = 'MAG_ERR '           / label for field   6
-TFORM6  = '1E      '           / data format of field: 4-byte REAL
-TTYPE7  = 'PSF_CHI2'           / label for field   7
-TFORM7  = '1E      '           / data format of field: 4-byte REAL
-TTYPE8  = 'PSF_DOF '           / label for field   8
-TFORM8  = '1J      '           / data format of field: 4-byte INTEGER
-TTYPE9  = 'CR_SIGNIFICANCE'    / label for field   9
-TFORM9  = '1E      '           / data format of field: 4-byte REAL
-TTYPE10 = 'EXT_SIGNIFICANCE'   / label for field  10
-TFORM10 = '1E      '           / data format of field: 4-byte REAL
-TTYPE11 = 'PSF_MAJOR'          / label for field  11
-TFORM11 = '1E      '           / data format of field: 4-byte REAL
-TTYPE12 = 'PSF_MINOR'          / label for field  12
-TFORM12 = '1E      '           / data format of field: 4-byte REAL
-TTYPE13 = 'PSF_THETA'          / label for field  13
-TFORM13 = '1E      '           / data format of field: 4-byte REAL
-TTYPE14 = 'PSF_QUALITY'        / label for field  14
-TFORM14 = '1E      '           / data format of field: 4-byte REAL
-TTYPE15 = 'PSF_NPIX'           / label for field  15
-TFORM15 = '1J      '           / data format of field: 4-byte INTEGER
-TTYPE16 = 'MOMENTS_XX'         / label for field  16
-TFORM16 = '1E      '           / data format of field: 4-byte REAL
-TTYPE17 = 'MOMENTS_XY'         / label for field  17
-TFORM17 = '1E      '           / data format of field: 4-byte REAL
-TTYPE18 = 'MOMENTS_YY'         / label for field  18
-TFORM18 = '1E      '           / data format of field: 4-byte REAL
-TTYPE19 = 'N_POS   '           / label for field  19
-TFORM19 = '1J      '           / data format of field: 4-byte INTEGER
-TTYPE20 = 'F_POS   '           / label for field  20
-TFORM20 = '1E      '           / data format of field: 4-byte REAL
-TTYPE21 = 'RATIO_BAD'          / label for field  21
-TFORM21 = '1E      '           / data format of field: 4-byte REAL
-TTYPE22 = 'RATIO_MASK'         / label for field  22
-TFORM22 = '1E      '           / data format of field: 4-byte REAL
-TTYPE23 = 'RATIO_ALL'          / label for field  23
-TFORM23 = '1E      '           / data format of field: 4-byte REAL
-TTYPE24 = 'FLAGS   '           / label for field  24
-TFORM24 = '1J      '           / data format of field: 4-byte INTEGER
-TZERO24 =           2147483648 / offset for unsigned integers
-TSCAL24 =                    1 / data are not scaled
-TTYPE25 = 'DIFF_SKYFILE_ID'    / label for field  25
-TFORM25 = '1K      '           / data format of field: 8-byte INTEGER
-SWSOURCE= '60eb6cdc-a59c-4636-a4e0-dba66a9721fd' / Software source
-SWVERSN = 'branches/pap_mops/ppMops@25227' / Software version
-HISTORY ppMops at 2009-09-02T03:48:46.695783
-HISTORY psLib version: branches/pap_mops/psLib@25227
-HISTORY psLib source: 60eb6cdc-a59c-4636-a4e0-dba66a9721fd
-HISTORY ppMops version: branches/pap_mops/ppMops@25227
-HISTORY ppMops source: 60eb6cdc-a59c-4636-a4e0-dba66a9721fd
-EXP_NAME= 'o4995g0129o'        / Exposure name
-EXP_ID  =                77164 / Exposure identifier
-CHIP_ID =                24019 / Chip stage identifier
-CAM_ID  =                17726 / Cam stage identifier
-FAKE_ID =                10227 / Fake stage identifier
-WARP_ID =                 8842 / Warp stage identifier
-DIFF_ID =                19219 / Diff stage identifier
-DIFF_POS=                    F / Positive subtraction?
-MJD-OBS =     54995.4740598313 / MJD of exposure midpoint
-RA      = '18:25:01.988'       / Right Ascension of boresight
-DEC     = '-17:20:40.069'      / Declination of boresight
-TEL_ALT =            51.951873 / Telescope altitude
-TEL_AZ  =           179.483883 / Telescope azimuth
-EXPTIME =                  38. / Exposure time (sec)
-ROTANGLE=             333.1039 / Rotator position angle
-FILTER  = 'r.00000 '           / Filter name
-AIRMASS =                1.269 / Airmass of exposure
-OBSCODE = 'F51     '           / IAU Observatory code
-SEEING  =             1.678401 / Mean seeing
-MAGZP   =             28.65226 / Magnitude zero point
-MAGZPERR=             0.353063 / Error in magnitude zero point
-ASTRORMS=            0.3111496 / RMS of astrometric fit
-EXTNAME = 'MOPS_TRANSIENT_DETECTIONS'
-\end{verbatim}
-
-
 \end{document}
 
Index: trunk/ppTranslate/documentation/ICD/figures/basics.xfig
===================================================================
--- trunk/ppTranslate/documentation/ICD/figures/basics.xfig	(revision 34695)
+++ trunk/ppTranslate/documentation/ICD/figures/basics.xfig	(revision 34695)
@@ -0,0 +1,290 @@
+#FIG 3.2  Produced by xfig version 3.2.5b
+Landscape
+Center
+Metric
+A4      
+100.00
+Single
+-2
+1200 2
+0 32 #dc9d92
+0 33 #f0ebdf
+0 34 #c2c2c2
+0 35 #e1c7a7
+0 36 #e0e0e0
+0 37 #d1d1d1
+0 38 #ececec
+0 39 #d97a1a
+0 40 #f0e31a
+0 41 #877dc1
+0 42 #afa092
+0 43 #827cdc
+0 44 #d5d5d5
+0 45 #8b8ba4
+0 46 #4a4a4a
+0 47 #8b6b6b
+0 48 #636363
+0 49 #8d8d8d
+0 50 #b69a73
+0 51 #4192fe
+0 52 #be703b
+0 53 #da7700
+0 54 #d9b700
+0 55 #006400
+0 56 #5a6b3b
+0 57 #d2d2d2
+0 58 #a9a9a9
+0 59 #8d8da3
+0 60 #f2b85d
+0 61 #88986b
+0 62 #646464
+0 63 #d5d5d5
+0 64 #8b8ba4
+0 65 #5a5a5a
+0 66 #b6e5fe
+0 67 #85bfeb
+0 68 #bcbcbc
+0 69 #d29552
+0 70 #8d8d8d
+0 71 #97d1fd
+0 72 #8d8d8d
+0 73 #616161
+0 74 #adb1ad
+0 75 #717171
+0 76 #fe9900
+0 77 #d5d5d5
+0 78 #8b8ba4
+0 79 #8b6b6b
+0 80 #8b9b6b
+0 81 #f66b00
+0 82 #5a6b39
+0 83 #8b9b6b
+0 84 #d5d5d5
+0 85 #8b8ba4
+0 86 #8b6b6b
+0 87 #8b9b6b
+0 88 #f66b00
+0 89 #8b9b7b
+0 90 #184a18
+0 91 #d5d5d5
+0 92 #acacac
+0 93 #8b8ba4
+0 94 #f6bc5a
+0 95 #8b9b6b
+0 96 #636b9b
+0 97 #8b6b6b
+0 98 #f6f6f6
+0 99 #dd0000
+0 100 #8b9b6b
+0 101 #d5d5d5
+0 102 #acacac
+0 103 #8b8ba4
+0 104 #f6bc5a
+0 105 #8b9b6b
+0 106 #d5d5d5
+0 107 #acacac
+0 108 #8b8ba4
+0 109 #f6bc5a
+0 110 #8b9b6b
+0 111 #636b9b
+0 112 #526b29
+0 113 #939393
+0 114 #006300
+0 115 #8b8ba4
+0 116 #8b8ba4
+0 117 #8b8ba4
+0 118 #00634a
+0 119 #7b834a
+0 120 #e6bc7b
+0 121 #8b9b7b
+0 122 #a4b4c5
+0 123 #6b6b93
+0 124 #836b6b
+0 125 #529b4a
+0 126 #d5e6e6
+0 127 #526363
+0 128 #186b4a
+0 129 #9ba4b4
+0 130 #fe9300
+0 131 #fe9300
+0 132 #8b6b6b
+0 133 #d5d5d5
+0 134 #acacac
+0 135 #8b8ba4
+0 136 #8b6b6b
+0 137 #acacac
+0 138 #8b9b6b
+0 139 #acacac
+0 140 #d2d2d2
+0 141 #a9a9a9
+0 142 #8d8da3
+0 143 #f2b85d
+0 144 #88986b
+0 145 #d5d5d5
+0 146 #8b8ba4
+0 147 #d5d5d5
+0 148 #8b8ba4
+0 149 #8b6b6b
+0 150 #8b9b6b
+0 151 #d5d5d5
+0 152 #8b8ba4
+0 153 #8b6b6b
+0 154 #8b9b7b
+0 155 #000000
+0 156 #f63829
+0 157 #000000
+0 158 #fefe52
+0 159 #52794a
+0 160 #63995a
+0 161 #c56142
+0 162 #e66942
+0 163 #fe7952
+0 164 #dddddd
+0 165 #acacac
+0 166 #8b8ba4
+0 167 #f6bc5a
+0 168 #8b9b6b
+0 169 #636b9b
+0 170 #f6f6f6
+0 171 #d5d5d5
+0 172 #8b6b6b
+0 173 #d2d2d2
+0 174 #a9a9a9
+0 175 #8d8da3
+0 176 #f2b85d
+0 177 #88986b
+0 178 #d2d2d2
+0 179 #a9a9a9
+0 180 #8d8da3
+0 181 #f2b85d
+0 182 #88986b
+0 183 #d2d2d2
+0 184 #a9a9a9
+0 185 #8d8da3
+0 186 #f2b85d
+0 187 #88986b
+0 188 #d2d2d2
+0 189 #a9a9a9
+0 190 #8d8da3
+0 191 #f2b85d
+0 192 #88986b
+0 193 #d2d2d2
+0 194 #a9a9a9
+0 195 #8d8da3
+0 196 #f2b85d
+0 197 #88986b
+0 198 #d5d5d5
+0 199 #8b8ba4
+0 200 #d2d2d2
+0 201 #a9a9a9
+0 202 #8d8da3
+0 203 #f2b85d
+0 204 #88986b
+0 205 #d2d2d2
+0 206 #a9a9a9
+0 207 #8d8da3
+0 208 #f2b85d
+0 209 #88986b
+0 210 #d2d2d2
+0 211 #a9a9a9
+0 212 #8d8da3
+0 213 #f2b85d
+0 214 #88986b
+0 215 #d2d2d2
+0 216 #a9a9a9
+0 217 #8d8da3
+0 218 #f2b85d
+0 219 #88986b
+0 220 #d5d5d5
+0 221 #8b8ba4
+0 222 #f2edd2
+0 223 #f4ad5d
+0 224 #95cd98
+0 225 #a9a9a9
+0 226 #b4157d
+0 227 #ededed
+0 228 #838383
+0 229 #d5d5d5
+0 230 #acacac
+0 231 #8b8ba4
+0 232 #f6bc5a
+0 233 #8b9b6b
+0 234 #636b9b
+0 235 #7b7b7b
+0 236 #005a00
+0 237 #e67373
+0 238 #f6f6f6
+0 239 #dd0000
+0 240 #feca31
+0 241 #29794a
+0 242 #dd2821
+0 243 #2159c5
+0 244 #f7f7f7
+0 245 #ededed
+0 246 #e5e5e5
+0 247 #7b834a
+0 248 #d5d5d5
+0 249 #acacac
+0 250 #63737b
+0 251 #e6bc7b
+0 252 #8b9b7b
+0 253 #a4b4c5
+0 254 #6b6b93
+0 255 #836b6b
+0 256 #529b4a
+0 257 #d5e6e6
+0 258 #9ba4b4
+0 259 #21835a
+0 260 #8b8ba4
+0 261 #f6bc5a
+0 262 #8b9b6b
+0 263 #636b9b
+0 264 #d5d5d5
+0 265 #acacac
+0 266 #8b8ba4
+0 267 #f6bc5a
+0 268 #8b9b6b
+0 269 #8b6b6b
+0 270 #9b0000
+0 271 #9b0000
+0 272 #8b8b8b
+0 273 #424242
+0 274 #8b8b8b
+0 275 #424242
+0 276 #8b8b8b
+0 277 #424242
+0 278 #8b8b8b
+0 279 #424242
+0 280 #8b8b8b
+0 281 #424242
+0 282 #8b8b8b
+0 283 #424242
+0 284 #8b8b8b
+0 285 #8b8b8b
+0 286 #8b8b8b
+0 287 #8b8b8b
+0 288 #8b8b8b
+0 289 #8b8b8b
+0 290 #8b8b8b
+0 291 #8b8b8b
+0 292 #8b8b8b
+0 293 #8b8b8b
+0 294 #8b8b8b
+0 295 #8b8b8b
+0 296 #6e6e6e
+0 297 #444444
+0 298 #8d8e8d
+0 299 #8d8e8d
+0 300 #adadad
+0 301 #333333
+0 302 #939295
+0 303 #747075
+0 304 #555555
+0 305 #b2b2b2
+0 306 #c2c2c2
+0 307 #6d6d6d
+0 308 #454545
+0 309 #8d8d8d
+0 310 #8d8e8d
+1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 6975 4950 5180 5180 6975 4950 7200 10125
+1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 6975 4950 450 450 6975 4950 6975 5400
Index: trunk/ppTranslate/documentation/ICD/figures/exposure_ota.fig
===================================================================
--- trunk/ppTranslate/documentation/ICD/figures/exposure_ota.fig	(revision 34695)
+++ trunk/ppTranslate/documentation/ICD/figures/exposure_ota.fig	(revision 34695)
@@ -0,0 +1,12 @@
+#FIG 3.2  Produced by xfig version 3.2.5b
+Landscape
+Center
+Metric
+A4      
+100.00
+Single
+-2
+1200 2
+2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
+	 2295 1035 6705 1035 6705 3150 2295 3150 2295 1035
+4 0 0 50 -1 0 12 0.0000 4 165 1170 3780 1980 exposure OTAs\001
Index: trunk/ppTranslate/documentation/ICD/figures/ext_theta.fig
===================================================================
--- trunk/ppTranslate/documentation/ICD/figures/ext_theta.fig	(revision 34695)
+++ trunk/ppTranslate/documentation/ICD/figures/ext_theta.fig	(revision 34695)
@@ -0,0 +1,39 @@
+#FIG 3.2  Produced by xfig version 3.2.5b
+Landscape
+Center
+Metric
+A4      
+100.00
+Single
+-2
+1200 2
+5 1 0 2 0 7 50 -1 -1 0.000 0 1 1 0 5538.104 4894.526 5805 4320 5130 4410 4950 5130
+	3 1 1.00 60.00 120.00
+6 3870 2610 9900 5580
+1 1 0 2 0 7 50 -1 -1 0.000 1 0.4363 8135 3547 1206 424 8135 3547 9398 3395
+2 1 1 2 0 7 50 -1 -1 6.000 0 0 -1 1 0 2
+	3 1 1.00 55.77 111.55
+	 4126 5520 9592 2831
+2 1 1 2 0 7 50 -1 -1 6.000 0 0 -1 1 0 2
+	3 1 1.00 55.77 111.55
+	 8474 4317 7794 2779
+-6
+2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
+	3 1 1.00 60.00 120.00
+	 3600 7200 10575 7200
+2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 1 1 2
+	3 1 1.00 60.00 120.00
+	3 1 1.00 60.00 120.00
+	 7740 5400 9855 4447
+2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 1 1 2
+	3 1 1.00 60.00 120.00
+	3 1 1.00 60.00 120.00
+	 9850 3332 9470 2516
+2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
+	3 1 1.00 60.00 120.00
+	 5850 7650 5850 1350
+4 0 0 50 -1 0 12 0.0000 4 150 810 4725 4185 EXT_THETA\001
+4 0 0 50 -1 0 16 0.0000 4 135 90 10260 7650 W\001
+4 0 0 50 -1 0 12 0.0000 4 150 1170 8550 5490 EXT_WIDTH_MAJ\001
+4 0 0 50 -1 0 12 0.0000 4 150 1170 9675 2700 EXT_WIDTH_MIN\001
+4 0 0 50 -1 -1 16 0.0000 4 135 90 6030 1530 N\001
Index: trunk/ppTranslate/documentation/ICD/figures/ipp_workflow.fig
===================================================================
--- trunk/ppTranslate/documentation/ICD/figures/ipp_workflow.fig	(revision 34695)
+++ trunk/ppTranslate/documentation/ICD/figures/ipp_workflow.fig	(revision 34695)
@@ -0,0 +1,84 @@
+#FIG 3.2  Produced by xfig version 3.2.5b
+Landscape
+Center
+Metric
+A4      
+100.00
+Single
+-2
+1200 2
+6 2700 2700 4500 3600
+2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
+	 2700 2700 4500 2700 4500 3600 2700 3600 2700 2700
+4 0 0 50 -1 0 12 0.0000 4 135 360 3420 3217 CHIP\001
+-6
+6 2700 450 4500 1350
+1 1 0 1 0 7 50 -1 -1 0.000 1 0.0000 3600 900 900 450 3600 900 4500 1350
+4 0 0 50 -1 0 12 0.0000 4 165 900 3150 952 "exposure"\001
+-6
+6 2700 4050 4500 4950
+2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
+	 2700 4050 4500 4050 4500 4950 2700 4950 2700 4050
+4 0 0 50 -1 0 12 0.0000 4 135 540 3330 4567 CAMERA\001
+-6
+6 2700 5400 4500 6300
+2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
+	 2700 5400 4500 5400 4500 6300 2700 6300 2700 5400
+4 0 0 50 -1 0 12 0.0000 4 135 360 3420 5917 WARP\001
+-6
+6 2700 6750 4500 7650
+2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
+	 2700 6750 4500 6750 4500 7650 2700 7650 2700 6750
+4 0 0 50 -1 0 12 0.0000 4 135 360 3420 7267 DIFF\001
+-6
+6 2700 8100 4500 9000
+2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
+	 2700 8100 4500 8100 4500 9000 2700 9000 2700 8100
+4 0 0 50 -1 0 12 0.0000 4 135 540 3330 8617 PPMOPS\001
+-6
+6 5400 6525 7200 7425
+2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
+	 5400 6525 7200 6525 7200 7425 5400 7425 5400 6525
+4 0 0 50 -1 0 12 0.0000 4 135 450 6075 7042 STACK\001
+-6
+6 2700 10350 4500 11250
+1 1 0 1 0 7 50 -1 -1 0.000 1 0.0000 3600 10800 900 450 3600 10800 4500 11250
+4 0 0 50 -1 0 12 0.0000 4 165 1170 3015 10852 MOPS products\001
+-6
+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
+	1 1 1.00 60.00 120.00
+	 3600 1350 3600 2700
+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
+	1 1 1.00 60.00 120.00
+	 3600 3600 3600 4050
+2 1 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 4
+	 1800 0 1800 1800 7650 1800 7650 0
+2 2 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
+	 7650 2250 6750 2250 6750 2700 7650 2700 7650 2250
+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
+	1 1 1.00 60.00 120.00
+	 3600 4950 3600 5400
+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
+	1 1 1.00 60.00 120.00
+	 3600 6300 3600 6750
+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
+	1 1 1.00 60.00 120.00
+	 3600 7650 3600 8100
+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
+	1 1 1.00 60.00 120.00
+	 3600 6300 6300 6525
+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
+	1 1 1.00 60.00 120.00
+	 6300 7425 3600 8100
+2 2 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
+	 1800 2250 7650 2250 7650 9450 1800 9450 1800 2250
+2 1 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 4
+	 1800 11700 1800 9900 7650 9900 7650 11700
+2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2
+	1 1 1.00 60.00 120.00
+	 3600 9000 3600 10350
+4 0 0 50 -1 0 12 0.0000 4 135 1620 5400 675 Interface with the\001
+4 0 0 50 -1 0 12 0.0000 4 165 810 5400 870 telescope\001
+4 0 0 50 -1 0 12 0.0000 4 135 270 7065 2542 IPP\001
+4 0 0 50 -1 0 12 0.0000 4 135 1620 5400 10575 Interface with the\001
+4 0 0 50 -1 0 12 0.0000 4 135 360 5400 10770 MOPS\001
