Index: trunk/doc/release.2015/ps1.analysis/analysis.tex
===================================================================
--- trunk/doc/release.2015/ps1.analysis/analysis.tex	(revision 40610)
+++ trunk/doc/release.2015/ps1.analysis/analysis.tex	(revision 40614)
@@ -1,4 +1,4 @@
-% \documentclass[iop,floatfix]{emulateapj}
-\documentclass[10pt,preprint]{aastex}
+\documentclass[iop,floatfix]{emulateapj}
+% \documentclass[10pt,preprint]{aastex}
 % \pdfoutput=1
 
@@ -162,5 +162,5 @@
 contained only average information resulting from the many individual
 images obtained by the $3\pi$ Survey observations.  A second data
-release, DR2, was made available \note{20 January 2019}.  DR2 provides
+release, DR2, was made available 28 January 2019.  DR2 provides
 measurements from all of the individual exposures, and include an
 improved calibration of the PV3 processing of that dataset.
@@ -466,7 +466,7 @@
 
 \begin{table*}
+\caption{\label{tab:measurements} \nocode{psphot} measurements performed} % \vspace{-0.5cm}
 \begin{center}
 \footnotesize
-\caption{\label{tab:measurements} \nocode{psphot} measurements performed} % \vspace{-0.5cm}
 \begin{tabular}{lccccll}
 \hline
@@ -531,7 +531,7 @@
 
 \begin{table*}
+\caption{\label{tab:det_flag_values} \nocode{psphot} Detection Flag Values \#1} % \vspace{-0.5cm}
 \begin{center}
 \footnotesize
-\caption{\label{tab:det_flag_values} \nocode{psphot} Detection Flag Values \#1} % \vspace{-0.5cm}
 \begin{tabular}{lrl}
 \hline
@@ -578,7 +578,7 @@
 
 \begin{table*}
+\caption{\label{tab:det_flag2_values} \nocode{psphot} Detection Flag Values \#2} % \vspace{-0.5cm}
 \begin{center}
 \footnotesize
-\caption{\label{tab:det_flag2_values} \nocode{psphot} Detection Flag Values \#2} % \vspace{-0.5cm}
 \begin{tabular}{lrl}
 \hline
@@ -672,7 +672,7 @@
 
 \begin{table*}
+\caption{\label{tab:mask_values} \nocode{psphot} / GPC1 Mask Image Pixel Values} % \vspace{-0.5cm}
 \begin{center}
 \footnotesize
-\caption{\label{tab:mask_values} \nocode{psphot} / GPC1 Mask Image Pixel Values} % \vspace{-0.5cm}
 \begin{tabular}{lcccl}
 \hline
@@ -1252,8 +1252,9 @@
 a linear model:
 \[
-R[(x_{\rm mod},y_{\rm mod})][(x_{\rm ccd},y_{\rm ccd})] = R_o[(x_{\rm
-      mod},y_{\rm mod})] + R_x[(x_{\rm
-      mod},y_{\rm mod})] x_{\rm ccd} + R_y[(x_{\rm
-      mod},y_{\rm mod})] y_{\rm ccd}
+\begin{array}{lll}
+R[(x_{\rm mod},y_{\rm mod})][(x_{\rm ccd},y_{\rm ccd})] & = & R_o[(x_{\rm mod},y_{\rm mod})] \\
+& + & R_x[(x_{\rm mod},y_{\rm mod})] x_{\rm ccd} \\
+& + & R_y[(x_{\rm mod},y_{\rm mod})] y_{\rm ccd} \\
+\end{array}
 \]
 where $R[(x_{\rm mod},y_{\rm mod})][(x_{\rm ccd},y_{\rm ccd})]$ is the
@@ -1367,14 +1368,15 @@
   for a given order of the PSF 2D variations.} % \vspace{-0.5cm}
 \begin{center}
-\begin{tabular}{llll}
+\begin{tabular}{lll}
 \hline
 \hline
-{\bf Minimum Number of Stars} & {\bf Order} & {\bf Number of Grid Cells} \\
+{\bf Minimum Number} & {\bf Order} & {\bf Number of} \\
+{\bf of Stars}       &             & {\bf Grid Cells} \\
 \hline
- 16 &  1 &  4 &   4 \\
- 54 &  2 &  9 &   6 \\
-128 &  3 & 16 &   8 \\
-300 &  4 & 25 &  12 \\
-576 &  5 & 36 &  16 \\
+ 16 &  1 &  4 \\
+ 54 &  2 &  9 \\
+128 &  3 & 16 \\
+300 &  4 & 25 \\
+576 &  5 & 36 \\
 \hline
 \end{tabular}
@@ -2305,8 +2307,8 @@
 
 % Graham & Driver : Graham A. W., Driver S. P.  2005, PASA 22, 118
-a% DOI: https://doi.org/10.1071/AS05001
+% DOI: https://doi.org/10.1071/AS05001
 
 The central pixel of the S\'ersic, DeVaucouleur, and Exponential
-models require special handling.  When comparing an analytical model
+models requires special handling.  When comparing an analytical model
 to the pixelized image recorded by a CCD, one normally treats the
 value in a pixel as equivalent to the value of the model at the center
@@ -2798,7 +2800,7 @@
 image.
 
-\section{Examples and Tests}
-
-\note{to be added}
+% \section{Examples and Tests}
+
+% \section{Conclusions}
 
 \acknowledgments
@@ -2821,6 +2823,6 @@
 
 \bibliographystyle{apj}
-\bibliography{lib}{}
-%\input{analysis.bbl}
+%\bibliography{lib}{}
+\input{analysis.bbl}
 
 \end{document}
@@ -2851,23 +2853,4 @@
 * plots showing the quality of the data?
 
-Tables needed:
-
-* table of models?
-
-Work still needed:
-
-* section 3.5.3 Model applied to detected sources needs to be reviewed
-
-* background model description (see waters)
-
-% alternative version:
-% @book{madsen2004methods,
-%   title={Methods for Non-linear Least Squares Problems},
-%   author={Madsen, K. and Nielsen, H.B. and Tingleff, O. and Danmarks tekniske universitet. Informatik og Matematisk Modellering},
-%   url={https://books.google.com/books?id=mhj4MgEACAAJ},
-%   year={2004},
-%   publisher={Informatics and Mathematical Modelling, Technical University of Denmark}
-% }
-
 % programs mentioned in this text:
 % psphot
@@ -2877,71 +2860,2 @@
 % ppSub
 
-
-kukui: foreach f (`grep PM_SOURCE ~/src/kukui/panstarrs/ipp-trunk/psModules/src/objects/pmSourceMasks.h | grep -v "^#" | prcol 1`) 
-foreach? echo --- $f ---
-foreach? grep $f */*.tex
-foreach? end
---- PM_SOURCE_MODE_DEFAULT ---
---- PM_SOURCE_MODE_PSFMODEL ---
---- PM_SOURCE_MODE_EXTMODEL ---
---- PM_SOURCE_MODE_FITTED ---
---- PM_SOURCE_MODE_FAIL ---
-ps1.analysis/analysis.tex:flags the object with the bad bit \code{PM_SOURCE_MODE_FAIL}.  It is
-ps1.analysis/analysis.tex:non-linear PSF fit (\code{PM_SOURCE_MODE_FAIL}).
---- PM_SOURCE_MODE_POOR ---
-ps1.analysis/analysis.tex:the flag bit (\code{PM_SOURCE_MODE_POOR}).
---- PM_SOURCE_MODE_PAIR ---
---- PM_SOURCE_MODE_PSFSTAR ---
---- PM_SOURCE_MODE_SATSTAR ---
-ps1.analysis/analysis.tex:non-linear PSF model fit (\code{PM_SOURCE_MODE_SATSTAR}).  Among these
-ps1.analysis/analysis.tex:saturated stars (\code{PM_SOURCE_MODE_SATSTAR}).  These model fits
---- PM_SOURCE_MODE_BLEND ---
---- PM_SOURCE_MODE_EXTERNAL ---
---- PM_SOURCE_MODE_BADPSF ---
---- PM_SOURCE_MODE_DEFECT ---
---- PM_SOURCE_MODE_SATURATED ---
---- PM_SOURCE_MODE_CR_LIMIT ---
---- PM_SOURCE_MODE_EXT_LIMIT ---
---- PM_SOURCE_MODE_MOMENTS_FAILURE ---
---- PM_SOURCE_MODE_SKY_FAILURE ---
---- PM_SOURCE_MODE_SKYVAR_FAILURE ---
---- PM_SOURCE_MODE_BELOW_MOMENTS_SN ---
---- PM_SOURCE_MODE_BIG_RADIUS ---
---- PM_SOURCE_MODE_AP_MAGS ---
---- PM_SOURCE_MODE_BLEND_FIT ---
---- PM_SOURCE_MODE_EXTENDED_FIT ---
---- PM_SOURCE_MODE_EXTENDED_STATS ---
---- PM_SOURCE_MODE_LINEAR_FIT ---
---- PM_SOURCE_MODE_NONLINEAR_FIT ---
---- PM_SOURCE_MODE_RADIAL_FLUX ---
---- PM_SOURCE_MODE_SIZE_SKIPPED ---
---- PM_SOURCE_MODE_ON_SPIKE ---
---- PM_SOURCE_MODE_ON_GHOST ---
---- PM_SOURCE_MODE_OFF_CHIP ---
---- PM_SOURCE_MODE2_DEFAULT ---
---- PM_SOURCE_MODE2_DIFF_WITH_SINGLE ---
-ps1.analysis/analysis.tex:\code{PM_SOURCE_MODE2_DIFF_WITH_SINGLE = 0x00000001} is raised, while
---- PM_SOURCE_MODE2_DIFF_WITH_DOUBLE ---
-ps1.analysis/analysis.tex:\code{PM_SOURCE_MODE2_DIFF_WITH_DOUBLE = 0x00000002} raised. 
---- PM_SOURCE_MODE2_MATCHED ---
---- PM_SOURCE_MODE2_ON_SPIKE ---
---- PM_SOURCE_MODE2_ON_STARCORE ---
---- PM_SOURCE_MODE2_ON_BURNTOOL ---
---- PM_SOURCE_MODE2_ON_CONVPOOR ---
---- PM_SOURCE_MODE2_PASS1_SRC ---
---- PM_SOURCE_MODE2_HAS_BRIGHTER_NEIGHBOR ---
---- PM_SOURCE_MODE2_BRIGHT_NEIGHBOR_1 ---
---- PM_SOURCE_MODE2_BRIGHT_NEIGHBOR_10 ---
---- PM_SOURCE_MODE2_DIFF_SELF_MATCH ---
-ps1.analysis/analysis.tex:$\sigma$, then the bit \code{PM_SOURCE_MODE2_DIFF_SELF_MATCH =
---- PM_SOURCE_MODE2_SATSTAR_PROFILE ---
---- PM_SOURCE_MODE2_ECONTOUR_FEW_PTS ---
---- PM_SOURCE_MODE2_RADBIN_NAN_CENTER ---
---- PM_SOURCE_MODE2_PETRO_NAN_CENTER ---
---- PM_SOURCE_MODE2_PETRO_NO_PROFILE ---
---- PM_SOURCE_MODE2_PETRO_INSIG_RATIO ---
---- PM_SOURCE_MODE2_PETRO_RATIO_ZEROBIN ---
---- PM_SOURCE_MODE2_EXT_FITS_RUN ---
---- PM_SOURCE_MODE2_EXT_FITS_FAIL ---
---- PM_SOURCE_MODE2_EXT_FITS_RETRY ---
---- PM_SOURCE_MODE2_EXT_FITS_NONE ---
