Index: trunk/doc/release.2015/ps1.detrend/Makefile
===================================================================
--- trunk/doc/release.2015/ps1.detrend/Makefile	(revision 40724)
+++ trunk/doc/release.2015/ps1.detrend/Makefile	(revision 40725)
@@ -2,5 +2,6 @@
 
 DO_PDFLATEX = 1
-DO_BIBTEX = 1
+
+DO_BIBTEX = 0
 
 help:
@@ -9,10 +10,42 @@
 
 all: pdf tgz
-tgz: detrend.tgz
 pdf: detrend.pdf
+
+journal: detrend.journal.tgz
+arxiv: detrend.arxiv.tgz
 
 quick: detrend.quick.pdf
 
-ALLPICS = \
+JPICS = \
+images/gpc1.layout.pdf \
+images/o5677g0123o_M_OS_NL_XY23.png \
+images/o5677g0123o_to_DARK_XY23.png \
+images/B_profile_v1.pdf \
+images/o5677g0123o_VIDEODARK_VDim_Rdark_XY22.png \
+images/o5677g0123o_VIDEODARK_VDim_VDdark_XY22.png \
+images/o5220g0025o_nofringe_XY53.png \
+images/o5220g0025o_fringe_XY53.png \
+images/gpc1_mask_indexed.png \
+images/GPC1_Ghosts_with_Zoom.pdf \
+images/full_fpa_glints.png \
+images/o6802g0338o_SATSTAR_XY51.png \
+images/persistent_charge.png \
+images/o5677g0123n4o_XY11_bt_trail.pdf \
+images/pattern_row_edit.png \
+images/correlated.noise.png \
+images/N157.v1.png \
+images/N157.v2.png \
+images/warp_2046019_sci.png \
+images/warp_2046019_var.png \
+images/warp_2046019_mask.png \
+images/stack_3956997_sci.png \
+images/stack_3956997_var.png \
+images/stack_3956997_mask.png \
+images/stack_3956997_num.png \
+images/stack_3956997_exp.png \
+images/stack_3956997_expwt.png
+
+APICS = \
+images/gpc1.layout.pdf \
 images/o5677g0123o_M_OS_NL_XY23_sm.png \
 images/o5677g0123o_to_DARK_XY23_sm.png \
@@ -23,21 +56,19 @@
 images/o5220g0025o_fringe_XY53_sm.png \
 images/gpc1_mask_indexed.png \
-images/full_fpa_ghosts_sm.png \
+images/GPC1_Ghosts_with_Zoom.pdf \
 images/full_fpa_glints_sm.png \
 images/o6802g0338o_SATSTAR_XY51_sm.png \
-images/o5677g0123o_nbt_XY11.png \
-images/o5677g0124o_nbt_XY11.png \
-images/o5677g0123o_wbt_XY11.png \
-images/o5677g0124o_wbt_XY11.png \
+images/persistent_charge_sm.png \
 images/o5677g0123n4o_XY11_bt_trail.pdf \
 images/pattern_row_edit.png \
-images/o5379g0103o_npt_XY57_sm.png \
-images/o5379g0103o_wpt_XY57_sm.png \
+images/correlated.noise_sm.png \
+images/N157.v1_sm.png \
+images/N157.v2_sm.png \
 images/warp_2046019_sci_sm.png \
 images/warp_2046019_var_sm.png \
 images/warp_2046019_mask.png \
 images/stack_3956997_sci_sm.png \
+images/stack_3956997_var_sm.png \
 images/stack_3956997_mask.png \
-images/stack_3956997_var_sm.png \
 images/stack_3956997_num_sm.png \
 images/stack_3956997_exp_sm.png \
@@ -48,12 +79,10 @@
 ../inputs/apj.bst \
 ../inputs/code.sty \
-$(ALLPICS) \
 detrend.tex
 
 detrend.pdf: $(FILES)
-detrend.tgz: $(FILES)
+
+detrend.journal.tgz: $(FILES) $(JPICS) detrend.bbl
+detrend.arxiv.tgz: $(FILES) $(APICS) detrend.bbl
 
 include ../Makefile.Common
-
-# submission : 
-# 	tar --transform 's%inputs/%%' -zcf waters2017.tgz $(FILES)
Index: trunk/doc/release.2015/ps1.detrend/detrend.tex
===================================================================
--- trunk/doc/release.2015/ps1.detrend/detrend.tex	(revision 40724)
+++ trunk/doc/release.2015/ps1.detrend/detrend.tex	(revision 40725)
@@ -21,11 +21,11 @@
 %\def\plotmode{bw}
 
-% arxiv needs PDF graphics, but publishers mostly was PS
-%\def\plotext{pdf}
-\def\plotext{ps}
+% arxiv needs small graphics, but publishers want full-scale
+%\def\plotopt{_sm}
+\def\plotopt{}
 
 % use this to make the figure picture path flexible:
-%\def\picdir{PATH}
-\def\picdir{ALTPATH}
+%\def\picdir{images}
+\def\picdir{.}
 
 % CZW commands from my previous draft.
@@ -126,10 +126,4 @@
 % insert additional keywords as appropriate:
 \keywords{Surveys:\PSONE }
-
-%% NOTE 2018.12.06 EAM : Things that still need to be done prior to submission:
-%% * generate a valid bibtex entry for the diff paper, include in refs
-%% * better covariance discussion (wait until analysis.tex version written)
-%% * annotate the ghost, glint, and perhaps other images with arrows to illustrate features
-%% * check on total size vs arxiv limits
 
 \section{Introduction}
@@ -284,5 +278,5 @@
 \begin{figure}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{{images/gpc1.layout}.pdf}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{{\picdir/gpc1.layout}.pdf}
   \caption{Diagram illustrating layout of OTA devices in GPC1.  The
     blue dots mark the locations of the amplifiers for xy00 cells in
@@ -326,8 +320,8 @@
   \centering
   \begin{minipage}{0.45\hsize}
-    \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_M_OS_NL_XY23_sm.png}
+    \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/o5677g0123o_M_OS_NL_XY23\plotopt.png}
   \end{minipage}%
   \begin{minipage}{0.45\hsize}
-    \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_to_DARK_XY23_sm.png}
+    \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/o5677g0123o_to_DARK_XY23\plotopt.png}
   \end{minipage}
   \caption{{\bf Dark Correction:} An example of the dark model application to exposure o5677g0123o, OTA23 (2011-04-26, 43s \gps{} filter).  The left panel shows the image data mosaicked to the OTA level, and has had the static mask applied, the overscan subtracted, and the detector non-linearity corrected.  The right panel, shows the same exposure with the dark applied in addition to the processing shown on the left, removing the amplifier glows in the cell corners.}
@@ -365,13 +359,4 @@
 right.  The OTA $Y$ labels increase upward in the mosaic.
 
-%%\textit{Note: These papers are being placed on the arXiv.org to
-%%  provide crucial support information at the time of the public
-%%  release of Data Release 1 (DR1).  We expect the arXiv versions to be
-%%  updated prior to submission to the Astrophysical Journal in January
-%%  2017.  Feedback and suggestions for additional information from early
-%%  users of the data products are welcome during the submission and
-%%  refereeing process.}
-
-
 \section{GPC1 Detrend Details}
 \label{sec:detrending}
@@ -465,5 +450,5 @@
 \begin{figure}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/B_profile_v1.pdf}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/B_profile_v1.pdf}
   \caption{Example showing a profile cut across exposure o5676g0195,
     OTA67 (2011-04-25, 43s \gps{} filter).  The entire first row of
@@ -543,8 +528,8 @@
   \centering
   \begin{minipage}{0.45\hsize}
-    \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_VIDEODARK_VDim_Rdark_XY22_sm.png}
+    \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/o5677g0123o_VIDEODARK_VDim_Rdark_XY22\plotopt.png}
   \end{minipage}%
   \begin{minipage}{0.45\hsize}
-    \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_VIDEODARK_VDim_VDdark_XY22_sm.png}
+    \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/o5677g0123o_VIDEODARK_VDim_VDdark_XY22\plotopt.png}
   \end{minipage}
   \caption{{\bf Video Dark:} An example of the video dark model application to exposure o5677g0123o, OTA22 (2011-04-26, 43s \gps{} filter), which has a video cell located in cell xy16.  The left panel shows the image data mosaicked to the OTA level, and has had the static mask applied, the overscan subtracted, the detector non-linearity corrected, and a regular dark applied.  The right panel, shows the same exposure with a video dark applied instead of the standard dark.  The main impact of this change is the improved correction of the corner glows, which are over subtracted with the standard dark.}
@@ -629,8 +614,8 @@
   \centering
   \begin{minipage}{0.45\hsize}
-    \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5220g0025o_nofringe_XY53_sm.png}
+    \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/o5220g0025o_nofringe_XY53\plotopt.png}
   \end{minipage}%
   \begin{minipage}{0.45\hsize}
-    \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5220g0025o_fringe_XY53_sm.png}
+    \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/o5220g0025o_fringe_XY53\plotopt.png}
   \end{minipage}
   \caption{{\bf Fringing:} Example of the \yps{} filter fringe pattern
@@ -813,5 +798,5 @@
 \begin{figure}[b]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/gpc1_mask_indexed.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/gpc1_mask_indexed.png}
   \caption{Image map of the GPC1 static mask.  The CTE regions are clearly visible as roughly triangular patches covering the corners of some OTAs.  Some entire cells are masked, including an entire column of cells on OTA14.  Calcite cells remove large areas from OTA17 AND OTA76.}
   \label{fig:static mask}
@@ -1057,5 +1042,6 @@
 \begin{figure*}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/GPC1_Ghosts_with_Zoom.png}
+% \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/GPC1_Ghosts_with_Zoom.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/GPC1_Ghosts_with_Zoom.pdf}
   \caption{{\bf Ghosts:} Example of optical ghosts in GPC1.  The
     central $6 \times 6$ detectors from exposure o5677g0123o
@@ -1073,5 +1059,5 @@
 \begin{figure*}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/full_fpa_glints_sm.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/full_fpa_glints\plotopt.png}
   \caption{{\bf Glints:}  Example of a glint on exposure o5379g0103o (2010-07-02, 45s \ips{} filter).  The source star out of the field of view creates a long reflection that extends through OTA73 and OTA63.}
   \label{fig:optical glints}
@@ -1080,5 +1066,5 @@
 \begin{figure}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/o6802g0338o_SATSTAR_XY51_sm.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/o6802g0338o_SATSTAR_XY51\plotopt.png}
   \caption{Example of saturated star, with diffraction spikes extending from the core on exposure o6802g0338o, OTA51 (2014-05-25, 45s \gps{} filter).}
   \label{fig:saturated star}
@@ -1325,25 +1311,8 @@
 minutes.
 
-%% \begin{figure}[htpb]
-%%   \centering
-%%   \begin{minipage}{0.45\hsize}
-%%     \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_nbt_XY11.png}
-%%   \end{minipage}%
-%%   \begin{minipage}{0.45\hsize}
-%%     \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0124o_nbt_XY11.png}
-%%   \end{minipage}
-%%   \begin{minipage}{0.45\hsize}
-%%     \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123o_wbt_XY11.png}
-%%   \end{minipage}%
-%%   \begin{minipage}{0.45\hsize}
-%%     \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0124o_wbt_XY11.png}
-%%   \end{minipage}
-%%   \caption{{\bf Persistent Charge:}  Example of OTA11 cell xy50 on exposures o5677g0123o (left) and o5677g0124o (right).  The top panels show the image with all appropriate detrending steps, but without burntool, and the bottom show the same with burntool applied.  There is some slight over subtraction in fitting the initial trail, but the impact of the trail is greatly reduced in both exposures.}
-%%   \label{fig:burntool images}
-%% \end{figure}
-
 \begin{figure}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/persistent_charge.png}
+  %% need a small version of this for arxiv
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/persistent_charge\plotopt.png}
   \caption{{\bf Persistent Charge:}  Example of OTA11 cell xy50 on exposures o5677g0123o (left) and o5677g0124o (right).  The top panels show the image with all appropriate detrending steps, but without burntool, and the bottom show the same with burntool applied.  There is some slight over subtraction in fitting the initial trail, but the impact of the trail is greatly reduced in both exposures.}
   \label{fig:burntool images}
@@ -1382,5 +1351,5 @@
 \begin{figure}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5677g0123n4o_XY11_bt_trail.pdf}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/o5677g0123n4o_XY11_bt_trail.pdf}
 
   \caption{{\bf Burntool Correction:} Example of a profile cut along
@@ -1523,5 +1492,5 @@
 \begin{figure}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/pattern_row_edit.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/pattern_row_edit.png}
   \caption{Diagram illustrating in red which cells on GPC1 require the
     \nocode{PATTERN.ROW} correction to be applied.  The footprint of
@@ -1561,14 +1530,8 @@
 shows an example of a cell pre- and post-correction.
 
-%% \begin{minipage}{0.45\hsize}
-%%   \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5379g0103o_npt_XY57_sm.png}
-%% \end{minipage}%
-%% \begin{minipage}{0.45\hsize}
-%%   \includegraphics[width=0.9\hsize,angle=0,clip]{images/o5379g0103o_wpt_XY57_sm.png}
-%% \end{minipage}
-
 \begin{figure*}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/{correlated.noise}.png}
+  %% need small version for arxiv
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/{correlated.noise\plotopt}.png}
   \caption{{\bf Correlated Noise:} Example of the
     \nocode{PATTERN.ROW} correction on exposure o5379g0103o OTA57
@@ -1586,5 +1549,5 @@
 \begin{figure*}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/{N157.v1}.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/{N157.v1\plotopt}.png}
   \caption{These four panels illustrate the impact of the
     \nocode{PATTERN.ROW}, \nocode{PATTERN.CONTINUITY}, and background
@@ -1601,5 +1564,5 @@
 \begin{figure*}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/{N157.v2}.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/{N157.v2\plotopt}.png}
   \caption{These two panels illustrate the impact of the
     \nocode{PATTERN.CONTINUITY}, and background subtraction steps on a
@@ -1736,6 +1699,4 @@
 background subtraction on a large galaxy both with and withouth the
 \ippmisc{PATTERN.ROW} correction.
-
-% \note{give examples with simulations and show examples of over-subtraction}
 
 \section{GPC1 Detrend Construction}
@@ -1888,5 +1849,5 @@
 \begin{figure}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/warp_2046019_sci_sm.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/warp_2046019_sci\plotopt.png}
   \caption{Example of the warp image for skycell skycell.1146.095
     centered at ($\alpha,\delta$) = (11.934, -4.197) for exposure
@@ -1901,5 +1862,5 @@
 \begin{figure}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/warp_2046019_var_sm.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/warp_2046019_var\plotopt.png}
   \caption{Example of the warp variance image for skycell
     skycell.1146.095 of exposure o5104g0266o, the same as in Figure
@@ -1916,5 +1877,5 @@
 \begin{figure}[htpb]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/warp_2046019_mask.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/warp_2046019_mask.png}
   \caption{Example of the warp mask image for skycell skycell.1146.095
     of exposure o5104g0266o, the same as in Figure \ref{fig:warp
@@ -1925,7 +1886,4 @@
     ghost mask is visible just below the center as an elliptical
     region.
-%    In addition OTA24 shows the precautionary crosstalk bleed masks
-%    for the two brightest stars applied to all cells within the same
-%    row.
   \label{fig:warp mask}
   }
@@ -1984,5 +1942,5 @@
 \begin{figure}[t]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_sci_sm.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/stack_3956997_sci\plotopt.png}
   \caption{Example of the stack image for skycell skycell.1146.095
     centered at ($\alpha,\delta$) = (11.934, -4.197) in the \rps{}
@@ -2031,5 +1989,5 @@
 \begin{figure}[t]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_var_sm.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/stack_3956997_var\plotopt.png}
   \caption{Example of the stack variance image for skycell 
     skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
@@ -2072,5 +2030,5 @@
 \begin{figure}[t]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_mask.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/stack_3956997_mask.png}
   \caption{Example of the stack mask image for skycell
     skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
@@ -2120,5 +2078,5 @@
 \begin{figure}[t]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_num_sm.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/stack_3956997_num\plotopt.png}
   \caption{Example of the stack number image for skycell
     skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
@@ -2167,5 +2125,5 @@
 \begin{figure}[t]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_exp_sm.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/stack_3956997_exp\plotopt.png}
   \caption{Example of the stack exposure time image for skycell
     skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
@@ -2224,5 +2182,5 @@
 \begin{figure}[t]
   \centering
-  \includegraphics[width=0.9\hsize,angle=0,clip]{images/stack_3956997_expwt_sm.png}
+  \includegraphics[width=0.9\hsize,angle=0,clip]{\picdir/stack_3956997_expwt\plotopt.png}
   \caption{Example of the stack weighted exposure image for skycell
     skycell.1146.095 centered at ($\alpha,\delta$) = (11.934, -4.197)
@@ -2541,6 +2499,6 @@
 
 \bibliographystyle{apj}
-\bibliography{lib}{}
-% \input{detrend.bbl}
+% \bibliography{lib}{}
+\input{detrend.bbl}
 
 \end{document}
Index: trunk/doc/release.2015/ps1.detrend/make.small.images
===================================================================
--- trunk/doc/release.2015/ps1.detrend/make.small.images	(revision 40725)
+++ trunk/doc/release.2015/ps1.detrend/make.small.images	(revision 40725)
@@ -0,0 +1,7 @@
+#!/bin/csh -f
+
+foreach f (`cat big.images.txt | grep -v "^#"`)
+  set g = `echo $f | sed s/.png\$/_sm.png/`
+  echo convert -scale 50% $f $g
+       convert -scale 50% $f $g
+end
