Index: trunk/ppTranslate/documentation/ICD/PSDC-940-005.tex
===================================================================
--- trunk/ppTranslate/documentation/ICD/PSDC-940-005.tex	(revision 34507)
+++ trunk/ppTranslate/documentation/ICD/PSDC-940-005.tex	(revision 34509)
@@ -5,4 +5,6 @@
 \newcommand{\sccomment}[1]{%
   \textcolor{green}{SC: #1}}
+\newcommand{\outformatversion}{%
+  \texttt{PS1\_DV3}}
 
 % basic document variables
@@ -318,28 +320,26 @@
 be assigned to each keyword in the tables descriptions.
 
-To improve the readability, we will use the following conventions for
-the Version:
-\begin{itemize}
-\item X+ (where X is a software version) Means that the keyword
-  appears from software version X until the current version.
-\item X (not used): Means that the keyword appears in FITS file only
-  in software version X.
-\item Version 0 (zero) is the version in the preliminary ICD (Version
-  00 of this document). Some keywords (e.g. RA\_SIG) appear only in
-  the preliminary ICD. They were renamed in software version 1.
-% \item X-Y (not used): Means that the keyword appears from software
-%   version X until the software version Y. \sccomment{commented for future}
-\end{itemize}
+To improve the readability, keywords appearing only in the
+\outformatversion{} software version are shown. For previous releases
+of this documentation and learn about the former output format,
+checkout \htmladdnormallink{the older SVN revision
+  34506}{https://svn.pan-starrs.ifa.hawaii.edu/repo/ipp/trunk/ppTranslate/documentation/ICD}.
+
+The following conventions for the Version numbering is used: $X+$
+(where $X$ is the output format version in \texttt{PS1\_DV$X$}) means
+that the keyword appeared in software version X until the current
+version.
 
 \subsubsection{ICD/Software Versions}
 
-\begin{tabular}{|c|c|c|c|l|}
+\begin{tabular}{|c|c|c|c|p{3in}|}
   \hline
-  Version & ICD Version & Software Version & Software Tag & Comment \\
+  SW Version & ICD Version & Output Version & Software Tag & Comment \\
   \hline
   0 & 00 & 0 & n/a & Preliminary ICD. No sw tag \\
-  1 & 01 & 1 & 20100823 & First software release \\
-  2 & 01 & 2 & 20101029 & "V2" software version \\
-  3 & 02 & 2 & 20110406 & Deletion of "ICD lite" wiki page \\
+  1 & 01 & \texttt{PS1\_DV1} & 20100823 & First software release \\
+  2 & 01 & \texttt{PS1\_DV2} & 20101029 & "V2" software version \\
+  2 & 02 & \texttt{PS1\_DV2} & 20110406 & Deletion of "ICD lite" wiki page (Documentation update only)\\
+  4 & 03 & \texttt{PS1\_DV3} & \emph{No tag yet} &  Extended parameters (fitted trails), warp-stack\\
   \hline
 \end{tabular}
@@ -395,213 +395,253 @@
 definitions are listed in table \ref{trans-table}.
 
-% \begin{table}[htbp]
-%   \begin{center}
 {\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")\\
-      SWVERSN & 1+ & string & version of software (e.g., "trunk/ppMops@24658")\\
-      HIERARCH\_CMFVERSION & 2+ & char(7) & Either PS1\_DV1 or PS1\_DV2 \\
-      TABLEVER & 0+ & - & \emph{Obsolete}. Replaced by SWSOURCE, SWVERSN\footnote{This entry should be removed in ICD version 04}\\
-      \hline
-      \multicolumn{4}{|l|}{\null\hspace{10mm}\textbf{Provenance Information}}\\
-      \hline
-      EXP\_NAME & 1+ & string & Exposure name (e.g., "o1234g5678")\\
-      EXP\_ID & 1+ & S64 & Exposure identifier \\
-      CHIP\_ID & 1+ & S64 & Chip stage identifier \\
-      CAM\_ID & 1+ & S64 & Camera stage identifier \\
-      FAKE\_ID & 1+ & S64 & Fake stage identifier \\
-      WARP\_ID  & 1+ & S64 & Warp stage identifier \\
-      DIFF\_ID & 1+ & S64 & Diff stage identifier \\
-      DIFF\_POS & 1+ & boolean & Sense of subtraction; T for forward, F for backward\\
-      FPA\_ID & 0 & char(20)- & \emph{Obsolete}. IPP-assigned identifier that
-      can be used to trace back to
-      this FPA\footnote{This entry should be removed in ICD version 04} \\
-      \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 \\
-      RA & 0+
-      & {\tiny HH:MM:SS.SSS} & field center RA at exposure midpoint, string \\
-      DEC & 0+ &
-      {\tiny sDD:MM:SS}& (s is + or -) field center declination at exposure midpoint, string \\
-      EXPTIME & 0+
-      & F64 & exposure time in seconds \\
-      ROTANGLE & 0+
-      & F64 & image rotation of the y-axis in degrees, from local N toward E \\
-      FILTER & 0+ & char(3) & effective filter used for the exposure,
-      one of g, r, i, z, y, B, V, w
-      appended with '.00000'\\
-      AIRMASS & 0+ & F64
-      & airmass at exposure midpoint \\
-      OBSCODE & 0+ & char(5) & MPC three-character observatory code \\
-      TEL\_ALT & 0+ & F64 & telescope altitude at exposure midpoint, in degrees \\
-      TEL\_AZ & 0+ & F64 & telescope azimuth at exposure midpoint, in degrees \\
-      SEEING & 1+ & F32 & Measured seeing at diff stage, arcsec \\
-      MAGZP & 1+ & F32 & Magnitude zero point \\
-      MAGZPERR & 1+ & F32 & Error in magnitude zero point \\
-      ASTRORMS & 1+ & F32 & RMS of astrometric fit, arcsec \\
-      LIMITMAG & 0 & F64- & \emph{Obsolete}. limiting magnitude of detections for this FPA\footnote{This entry should be removed in ICD version 04}\\
-      % % \multicolumn{4}{l}{\sccomment{Removed?}} \\
-      % \hline
-      % DE1 through DE10 & 0 & F64 & detection efficiency coefficients \\
-      % % \multicolumn{4}{l}{\sccomment{Removed?}} \\
-      % \hline
-      % \hline
-      % \hline
-    \end{longtable}
-%   \end{center}
-% \end{table}
+  \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
+    \hline
+  \end{longtable}
 }
 
-% \begin{table}[htbp]
-%   \begin{center}
 {\centering
-    \tabcaption{IPP-MOPS Transient Detection Table Columns\label{trans-table}}
-    \begin{longtable}{|lclp{3.5in}|}
-      \hline \hline
-      {\bf Column} & \textbf{Version} & {\bf Precision} & {\bf Description} \\
-      \hline
-      RA\_DEG & 0 & F64 & \emph{Obsolete}. Detection center 
-      coordinates in degrees\footnote{This entry should be removed in ICD version 04}\\
-      RA & 1+ & F64 & detection center coordinates in degrees\\
-      \hline
-      RA\_SIG & 0 & F64 & \emph{Obsolete}. Error in the detection center, in 
-      degrees\footnote{This entry should be removed in ICD version 04}\\
-      RA\_ERR & 1+ & F64 & error in the detection center, in degrees \\
-      \hline
-      DEC\_DEG & 0 & F64 & \emph{Obsolete}. Detection center coordinates in 
-      degrees\footnote{This entry should be removed in ICD version 04} \\
-      DEC & 1+  & F64 & detection center coordinates in degrees \\
-      \hline
-      DEC\_SIG & 0 & F64 & error in the detection center, in degrees \\
-      DEC\_ERR & 1+ & F64 & error in the detection center, in degrees \\
-      \hline
-      MAG & 1+ & F32 & Magnitude \\
-      \hline
-      MAG\_ERR & 1+ & F32 & Magnitude error \\
-      \hline
-      FLUX & 0 & F64 & flux \\
-      \hline
-      FLUX\_SIG & 0 & F64 & error in the flux value \\
-      \hline
-      STARPSF & 0 & F64 & probability that the PSF matches a starlike PSF \\
-      \hline
-      ANG & 0 & F64 & detection's elongation angle in degrees, local N toward E \\
-      \hline
-      ANG\_SIG & 0 & F64 & error in the angle, in degrees \\
-      \hline
-      LEN & 0 & F64 & elongation length of the detection in degrees \\
-      \hline
-      LEN\_SIG & 0 & F64 & error in the length, in degrees \\
-      \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 CR\sccomment{CR?} \\
-      \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
-      FLAGS & 1+ & U32 & Detection bit flags \\
-      \sccomment{Bits should be detailed in ICD?} \\
-      \hline
-      DIFF\_SKYFILE\_ID & 1+ & S64 & Identifier for diff skyfile \\
-      \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
-      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 \\
-      \multicolumn{4}{l}{\sccomment{Was it FLUX in version 0?}} \\
-      \hline
-      AP\_FLUX\_SIG & 2+ & F32 & aperture flux error \\
-      \multicolumn{4}{l}{\sccomment{FLUX\_SIG in version 0?}} \\
-      \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 \\
-      \hline
-      FLAGS2 & 2+ & U32 & psphot analysis flags (group 2) \\
-      \sccomment{Bits should be detailed in ICD?} \\
-      \hline
-      N\_FRAMES & 2+ & U16 & Number of frames overlapping source center \\
-      \hline
-      PADDING & 2+ & S16 & padding \\
-      \hline
-    \end{longtable}
-%   \end{center}
-% \end{table}
+  \tabcaption{IPP-MOPS Transient Detection Table Columns\label{trans-table}}
+  \begin{longtable}{|lclp{3.5in}|}
+    \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 \\
+    \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 \\
+    \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
+  \end{longtable}
 }
-
-\sccomment{I didn't change anything from this point till the end}
 
 \subsection{MOPS Detectability Query}
