\documentclass[preprint2]{emulateapj}
\usepackage{longtable}
\usepackage{cancel}	
\usepackage{color}
\usepackage{graphicx, subfigure}
%\usepackage[authoryear]{natbib}
\usepackage{placeins}
\usepackage{amsmath}
\usepackage{tabulary}
\usepackage{natbib}
%\usepackage{pdflscape}


%\documentclass[11pt, oneside]{article}   	% use "amsart" instead of "article" for AMSLaTeX format
%\usepackage{geometry}                		% See geometry.pdf to learn the layout options. There are lots.
%\geometry{letterpaper}                   		% ... or a4paper or a5paper or ... 
%\geometry{landscape}                		% Activate for for rotated page geometry
%\usepackage[parfill]{parskip}    		% Activate to begin paragraphs with an empty line rather than an indent
%\usepackage{graphicx,epsfig}				% Use pdf, png, jpg, or eps with pdflatex; use eps in DVI mode 
								% TeX will automatically convert eps --> pdf in pdflatex		
%\usepackage{amssymb}
%\usepackage{color}
%\usepackage{longtable}

\def\lesssim{\mathrel{\hbox{\rlap{\hbox{\lower4pt\hbox{$\sim$}}}\hbox{$<$}}}}
\def\gtrsim{\mathrel{\hbox{\rlap{\hbox{\lower4pt\hbox{$\sim$}}}\hbox{$>$}}}}
\newcommand{\gps}{\ensuremath{g_{\rm P1}}}
\newcommand{\rps}{\ensuremath{r_{\rm P1}}}
\newcommand{\ips}{\ensuremath{i_{\rm P1}}}
\newcommand{\zps}{\ensuremath{z_{\rm P1}}}
\newcommand{\yps}{\ensuremath{y_{\rm P1}}}
\newcommand{\wps}{\ensuremath{w_{\rm P1}}}
\newcommand{\grizy}{\ensuremath{grizy_{\rm P1}}}
\newcommand{\rizy}{\ensuremath{rizy_{\rm P1}}}

\newcommand{\PS}{\protect \hbox {Pan-STARRS1}}
%in kens paper PS1 is used everywhere (not ps1)
 
\newcommand{\degree}{\mbox{$^\circ$}}
\newcommand{\msun}{\mbox{M$_{\odot}$}}
\newcommand{\msol}{\mbox{M$_{\odot}$}}
\newcommand{\zsol}{\mbox{Z$_{\odot}$}}
\newcommand{\rsun}{\mbox{R$_{\odot}$}}
\newcommand{\kms}{\mbox{$\rm{\,km\,s^{-1}}$}}
\newcommand{\logl}{\mbox{$\log L/{\rm L_{\odot}}$}}
\newcommand{\hii}{\mbox{H\,\{\sc ii}}
\newcommand{\nick}{\mbox{$^{56}$Ni}}
\newcommand{\mpcy}{\mbox{Mpc$^{-3}$\,yr$^{-1}$}}

\def\Ha{H{$\alpha$}}
\def\Hb{H{$\beta$}}
\def\Hg{H{$\gamma$}}
\def\Hd{H{$\delta$}}
\def\Ni{$^{56}$Ni}
\def\Co{$^{56}$Co}
\def\Mej{$M_{\rm ej}$}
\def\Mcsm{$M_{\rm CSM}$}
\def\Mni{$M_{\rm Ni}$}
\def\Rph{$R_{\rm phot}$}
\def\vsn{$v_{\rm SN}$}
\def\vph{$v_{\rm phot}$}
\def\Rs{$R_{\star}$}
\def\EM{$E_{\rm k}/M_{\rm ej}$}
\def\E{$E_{\rm k}$}

%if using \PS\ (words), it seems to print like "Pan-STARRS1(words)", no space, I'm removing the ending \ to see if it fixes it 

%heather's style guide for data product words 
%(may not be correct, just writing down the rules 
%please edit to make correct

% italics (\em ) for glossary / acronyms
% italics for table names

% teletype for column names
% teletype for code  and queries

% Preferred capitalizations for things

% IppToPsps
% PSPS  
% PS1
% dvo or DVO?
% add other things if you like


\shorttitle{DRAFT:The Pan-STARRS1 Database and Data Products}
\shortauthors{H. A. Flewelling}


\begin{document}
\title{DRAFT: The Pan-STARRS1 Database and Data Products}
\author{
H. A. Flewelling\altaffilmark{1}, 
E. A. Magnier\altaffilmark{1}, 
K. C. Chambers\altaffilmark{1},
J. N. Heasley\altaffilmark{8},
C. Holmberg\altaffilmark{1},
M. E. Huber\altaffilmark{1},
W. Sweeney\altaffilmark{1}, 
C. Z. Waters\altaffilmark{1},
X. Chen\altaffilmark{10},
D. Farrow\altaffilmark{5}
G. Hasinger\altaffilmark{1},
R. Henderson\altaffilmark{11},
K. S. Long\altaffilmark{4},
N. Metcalfe\altaffilmark{2},
M. A. Nieto-Santisteban\altaffilmark{4},
P. Norberg\altaffilmark{6,7},
R. P. Saglia\altaffilmark{5},
A. Szalay\altaffilmark{3},
A. Rest\altaffilmark{4},
A. R. Thakar\altaffilmark{3},
J. L. Tonry\altaffilmark{1}, 
J. Valenti\altaffilmark{4},
S. Werner\altaffilmark{3},
R. White\altaffilmark{4},
%
L. Denneau\altaffilmark{1},
P. W. Draper\altaffilmark{2},
K. W. Hodapp\altaffilmark{1},
R. Jedicke\altaffilmark{1},
N. Kaiser\altaffilmark{1},
R.-P. Kudritzki\altaffilmark{1},
P. A. Price\altaffilmark{9},
R. J. Wainscoat\altaffilmark{1},
P. S. Builders\altaffilmark{PS1},
S. Chastel\altaffilmark{1},
B. McLean\altaffilmark{4}
M. Postman\altaffilmark{4},
B. Shiao\altaffilmark{4}.
}



\altaffiltext{1}{Institute for Astronomy, University of Hawaii, 2680 Woodlawn Drive, Honolulu, Hawaii 96822, USA}
\altaffiltext{2}{Department of Physics, Durham University, South Road, Durham DH1 3LE, UK}
\altaffiltext{6}{Institute for Computational Cosmology, Department of Physics, Durham University, South Road, Durham DH1 3LE, UK}
\altaffiltext{7}{Centre for Extragalactic Astronomy,  Department of Physics, Durham University, South Road, Durham DH1 3LE, UK}
\altaffiltext{3}{Department of Physics and Astronomy, The Johns Hopkins University, 3400 North Charles Street, Baltimore, MD 21218, USA}
\altaffiltext{4}{Space Telescope Science Institute, 3700 San Martin Drive, Baltimore, MD 21218, USA}
\altaffiltext{5}{ Max-Planck Institut f\"ur extraterrestrische Physik, Giessenbachstra\ss e 1, D-85748 Garching, Germany}
\altaffiltext{8}{Back Yard Observatory, P.O. BOX 68856, Tucson, AZ 85737}
\altaffiltext{9}{Department of Astrophysical Sciences, Princeton University, Princeton, NJ 08544, USA}
\altaffiltext{10}{Google Inc., 1600 Amphitheatre Pkwy, Mountain View, CA 94043}
\altaffiltext{11}{Spire Global, Sky Park 5,45 Finnieston Street, Glasgow, G3 8JU, UK }
\altaffiltext{PS1}{Pan-STARRS1 Builders}
%\begin{document}
%\maketitle
%\section{}
%\subsection{}

%to be included: all theses guys -- I emailed them if they replied I add a YES.. all should be added into paper list
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%authorlist %These guys are in 
%tier 1
%Magnier YES
%Chambers YES
%Heasley YES % J. N. Heasley\altaffilmark{x},
%Holmberg YES
%Huber YES
%Sweeney bills@ifa.hawaii.edu
%Waters YES

%tier2 %these guys are in unless they opt out
%Chen, Thomas   txchen@gmail.com
%Farrow   dfarrow@mpe.mpg.de 
%Hasinger  hasinger@ifa.hawaii.edu
%Henderson YES
%Long      YES  long@stsci.edu
%Metcalfe  nigel.metcalfe@durham.ac.uk 
%Niento-Santisteban
%Norberg  Peder.Norberg@durham.ac.uk 
%Saglia saglia@mpe.mpg.de 
%Szalay szalay@pha.jhu.edu
%Rest arest@stsci.edu 
%Thakar thakar@jhu.edu
%Tonry jt@ifa.hawaii.edu 
%Valenti valenti@stsci.edu 
%Werner YES
%White rlw@stsci.edu 

%builders =---not yet emailed, they have to opt in

%tier 3 % these guys are in as well
% Chastel YES  rlw@stsci.edu 
% Postman postman@stsci.edu
% shiao  shiao@stsci.edu 
% McClean mclean@stsci.edu


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\begin{abstract}
\noindent Pan-STARRS1 has carried out a distinct set of imaging synoptic sky surveys including the $3\pi$ Steradian Survey and Medium Deep Survey in 5 bands (\grizy).
This paper describes the database and data products from the \PS\ Surveys. 
%covers the publicly available data products from the \PS\ telescope.  
%The \PS\ surveys to be released include 3$\pi$, which covers 3/4 of the sky, roughly 60 epochs per point in the sky, and the Medium Deep (MD) fields, covering 70 square degrees and roughly 4000 epochs. 
The data products include images and an SQL-based relational database
available from the STScI MAST. %archive where it is accessible via a modified  CasJobs \citep{Thakar2008}
%interface. %{\color{red} two references for casjobs (use both?) }%http://dl.acm.org/citation.cfm?id=1091998 https://www.computer.org/csdl/mags/cs/2008/01/mcs2008010018-abs.html } 
%
% need a cite for CASJOBS
%
%access to the database, released in multiple stages. 
%The first stage of the data release, called DR1, focuses on the static sky from 3$\pi$, and includes mean property tables as well as {\em stack} images and tables.  
%This paper summarizes how the data was processed to its final form and will describe how the database was built and calibrated.  
%The public 
The database is described in full detail, including
the construction of the database, the provenance of the data, the schema,
and how the database tables are related.
%including information about the database schema, the tables within the database, and how the tables are related.  
Example queries for a range of science goals are included. 
%spanning from simple to complicated and covering different types of data products are included. 
\end{abstract}

\keywords{astronomical databases, database schemas, queries}

\section{Introduction}
\label{sec:introduction}

\noindent This is the sixth in a series of seven papers describing the Pan-STARRS1 Surveys and their associated data products. 
%Chambers et al. 2017 (Paper I) 
\citet[][Paper I]{Chambers2017} provides an overview of the \PS\ System, the design and execution of the \PS\ Surveys, the resulting image and catalog data products, and a discussion of the overall data quality and basic characteristics. 
%Pan-STARRS Pixel Processing : Detrending, Warping, Stacking
\citet[][Paper II]{Magnier2017a}
describes how the various data processing stages are organised and implemented, %including details of the 
%the processing database which is a critical element in the \PS\ IPP infrastructure. 
\citet[][Paper III]{Waters2017}
describes the details of the pixel processing algorithms, including detrending, warping, and adding (to create stacked images) and subtracting (to create difference images) and resulting image products and their properties. 
%Pan-STARRS Pixel Analysis : Source Detection 
\citet[][Paper IV]{Magnier2017b}
describes the details of the source detection and photometry, including point-spread-function and extended source fitting models, and the techniques for forced photometry measurements. 
%Magnier et al. 2017c (Paper V) 
%Pan-STARRS Photometric and Astrometric Calibration
\citet[][Paper V]{Magnier2017c}
describes the final calibration process, and the resulting photometric and astrometric quality.  
% 
%Flewelling et al. 2017 (Paper VI)
%Pan-STARRS 1 Database and Data Products
This paper (Paper VI) describes the \PS\ database, the data products, and details of their   organization in the \PS\ database. 
\citet[][Paper VII]{Huber2017}
%Huber et al. 2017 (Paper VII)
will describe the Medium Deep Survey in detail, including the unique issues and data products specific to that survey. %%
%
%The \PS\ filters and photometric system has already been described in detail in \citet{Tonry2012}. 

{\color{red}
{\em Note: These papers are being placed on 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{Background}
\label{sec:background}
The \PS\ Project teamed with Alex Szalay's database development group at The Johns Hopkins University to undertake the task of providing a hierarchical database for \PS\ \citep{Heasley2008}. The JHU team was the major developer of the SDSS database \citep{Thakar2003}, and it would prove useful to reuse as much of the software developed for the SDSS as possible. However due to its intrinsic size and more complicated dataset
(time domain) major changes were required. The system developed is
called the {\em Published Science Products System}, or PSPS \citep{Heasley2006}.

The key to moving from the SDSS database to a system capable of dealing with \PS\ data is the design of the Data Storage layers. It was immediately clear that a single monolithic
database design (like SDSS) would not work for the PS1 problem. Our approach has been to use several features available within the Microsoft SQL Server product line to implement a system that would meet our requirements. 
While SQL Server does not
have (at present) a cluster implementation, this can be implemented by hand using a combination of distributed partition views and slices \citep{Heasley2008}. 
This allowed us to partition data into
smaller databases spread over multiple server machines and still treat the information as a unified table (from the users' perspective). 
Further, by staying with SQL Server we
are able to retain a wealth of software tools developed for SDSS, including the use of Hierarchical Triangular Mesh \citep{Szalay2007}.
%The PSPS and the Pan-STARRS Science Interface (PSI) was developed by Conrad Holmberg, Xin (Thomas) Chen, and Roy Henderson under the direction and vision of James Heasley.

% should cite ukidds paper here

\section{Data Releases}

\noindent This paper covers multiple data releases.  The first several \PS\ data releases will release 3$\pi$ survey data in stages, with plans to release the Medium Deep Survey data thereafter.  The first \PS\ data release (DR1) covers the 3$\pi$ {\em stack} images and the static sky catalog.  The available pixel data products for DR1 include the PS1 {\em stack} image products from the 3$\pi$ survey.  
These are deep combined {\em stack} images along with ancillary data including signal, masks, variance, and number maps.  The available catalog data products include the PS1 static sky 3$\pi$ catalog. This includes {\em ObjectThin}, {\em MeanObject}, 
{\em StackObjectThin}, {\em StackObjectAttributes}, {\em StackApFlx*}, {\em StackModel*}, and {\em StackPetrosian} tables, as well as associated metadata tables for these tables. 
Data Release 2 (DR2), scheduled for 2017, will add the rest of the PS1 image products from the 3$\pi$ survey, this includes the single epoch {\em warp} images, their ancillary data including signal, masks, and variance maps. DR2 will add the {\em Detection} tables and {\em Forced*} tables, these are the single epoch detections and forced photometry.  Future data releases will provide the 3$\pi$ {\em diff} image products and catalogs, and analogous data products for the Medium Deep (MD) surveys.


\section{Overview of the Data Products}
\label{sec:overview}

%\subsection{Choosing a Data Access Option}
%\label{sec:choosingdataccess}

\noindent The two options for data access are via the {\em Barbara A. Mikulski Archive for Space Telescopes} (MAST) at STScI, and PSPS, each of which provides access to different types of data products. MAST provides the access point for downloading different pixel data products and their associated metadata and source catalogs. This includes FITS downloads, FITS and JPEG image cutouts, scriptable image access, color JPEG images, and an interactive image browser with catalog overlays. The PSPS is a queryable database.  It is based on {\em CasJOBS}, searches are done using SQL queries, and users are able to do complicated and large queries that are saved to their private MyDB spaces.  The PSPS contains calibrated catalogs of photometric and astrometric parameters for single epoch exposures, stacks, difference images, and forced photometry as well. The database schema for the PSPS is briefly described in Section~\ref{sec:schemaintro}, and is fully expanded in Appendix~\ref{sec:schema}. 
%A description of how to use the PSPS, the query generator and the flag generator, as well as how to download the search results is given in section (XXX).  
Example queries are described in Appendix~\ref{sec:query}.  %{\color{red} do we talk about psi at all}

The Pan-STARRS1 database schema is 
organized into four sections:
\begin{enumerate}
\item Fundamental Data Products. These are attributes that are calculated from either detrended  but untransformed pixels or warped pixels. The instrumental fluxes or magnitudes have been re-calibrated, as have their positions. Because of these calibrations, the catalog values are to be preferred to making a new measurement from the images. See Table \ref{table:fundamentalipp}.
\item Derived Data Products. These are higher order science products that have been calculated from the Fundamental data products, such as proper motions and photometric redshifts. These tables will come in later data releases. 
\item Observational Metadata. This is metadata that provides detailed information about the individual exposures (e.g. PSF model fit) or which exposures went into an image combination (stacks and diffs) of exposures, 
as well as information such as detection efficiencies. See Table \ref{table:observationalmetadata}.
\item System Metadata. These tables have fixed information about the system and the database itself, including descriptions of various flags. See Table \ref{table:systemmetadata}.
\end{enumerate}
Various database ``Views'' are also constructed as an aide for standard types of queries. Views act like tables, and primarily consist of joins of different commonly used tables, in order to simplify queries. See Table \ref{table:views}.


%\noindent {\color{red} do we still need more here? yes, still needs more intro/overview.}

%There are two main interfaces for the \PS\ data, subdivided by whether the user needs images or catalogs.  The images are available via {\em Barbara A. Mikulski Archive for Space Telescopes} (MAST) at STScI, providing FITS downloads, FITS and JPEG image cutouts, scriptable image access, color JPEG images, and an interactive image browser with catalog overlays. Users interested in these products should read Section {\color{red} we don't have a section for this} of this paper.  The catalogs are accessible via the PSPS, which provides a {\em CASJobs SQL} query interface and a scriptable {\em Virtual Observatory} (VO) compatible cone search that can return various data formats (VOTable, CSV, etc).  Users interested in catalogs should start with Section~\ref{sec:schemaintro}, example queries are in Appendix~\ref{sec:query}, the full schema is in Appendix~\ref{sec:schema}, and the flag tables are in Appendix~\ref{sec:FlagTables}. %and other metadata is in Appendix~\ref{sec:systemmetadatatables}.

This paper covers the data products and schema for the 3$\pi$ data releases.  The majority of the information is the same for the MD fields.

%\subsection{Special Topics for a Multi-Epoch Survey}
%\label{sec:specialtopics}

%\noindent This is an overview of special issues related to creating a database that has both a deep static sky and ~60 epochs from single exposures.  With multiple epochs, it is possible to get %statistics, and mean measurements when combining multiple exposures.  This is the foundation of the concept of {\em object}.  Objects are are a collection of one or more detections from various data products (single exposures, stacks, etc), for fixed right ascension and declination. Some objects might be spurious; if there are multiple detections for a given object, it makes it more likely that that object is real and not an artifact from the telescope, camera, or processing pipeline. 

%\subsection{Detection vs. Object and Chip vs. {\em stack} vs Warp} 
%\label{sec:detectionvsobject}

%{\color{red} HAF: so my concerns about this section are as follows: First, this was essentially a Gene outline thingy, and it wasn't very clear to me why chips vs warps needs to be mentioned.  Users don't use chips, although it's useful backgroup info for them.  I guess, I'm curious what i should be writing here.  I think Objects vs Detections is very important, but not clear about the rest (cam vs stacks vs warps? something else?)}
%\noindent Depending on the user's needs, different data products are useful.  
%{\em Chips} and {\em warps} are useful for single epochs (i.e., if you want all the g band exposures for a patch of sky). {\em Chip} images are the detrended raw data from the Orthogonal-Transfer CCD Arrays (OTAs), in detector \texttt{X} and \texttt{Y} coordinates, while {\em warps} are re-binned and rotated to be in tangential RA/Dec projection with 0.25" pixels. Both of these products have chip and cell gaps present, as well as other artifacts masked out.  {\em Chips} and {\em warps} are useful for time domain astronomy.  {\em Stacks} contain multiple warped exposures, are much deeper, and as much as possible, have no gaps or empty spaces.  The sum of all {\em stacks} make up the static sky. 



\section{Flow of Data From IPP to PSPS}

\label{sec:creation}
\noindent We present a condensed version of the flow of data starting with raw image processing and ending with the steps used to generate the catalog database, so that the end user will have a better understanding of the terms that we use. During the various processing steps some data is lost or flagged out, causing apparent inconsistencies. We describe these here to provide additional information about the process that will help the user determine the best data products to use. A flow chart of the whole process can be seen in Figure~\ref{fig:revisedipptopsps}.  First, images are taken at the summit, then they undergo IPP processing which produces catalogs files from the {\em camera} stage, {\em stack} stage, {\em diff} stage and {\em forced} stage. These catalog files (in the form of binary FITS files called {\em cmf/smf} files) are then ingested into a ``Desktop Virtual Observatory'' (DVO, described in section~\ref{sec:DVOdatabase}) database using \texttt{addstar}.  The DVO database is then calibrated.  Next, {\em IppToPsps} creates batches from the DVO and {\em smf/cmf} files to be loaded into PSPS, and later the database is made available to the user.

\begin{figure*}
\centerline{\includegraphics[width=0.8\textwidth,angle=0]{revisedipptopsps.pdf}}
\caption{An overview of the steps necessary to create publicly accessible \PS\ data.  First step is to take images from the summit, process them via the image processing pipeline (IPP), ingest the data into the PSPS, and then provide public access to the user.  The IPP has many steps of processing, not all are shown here. The {\em camera}, {\em stacks}, {\em difference images} and {\em forced photometry} stages produce binary catalog FITS files which are the foundation of building the DVO database, which is then calibrated.  The final step of IPP processing is to use the {\em IppToPsps} to generate small batches of data in the appropriate database schema to be ingested into PSPS.  This paper primarily focuses on the PSPS and the database schema. The other steps are explained in enough detail to describe known and potential sources of inconsistencies within the database.}
\label{fig:revisedipptopsps}
\end{figure*}

\subsection{Processing Stages}
\label{sec:processingstages}

\noindent The first stage of data products involves processing raw images into detrended and warped images, followed by the generation of {\em stacks}, {\em diff images} and catalogs. Finally forced photometry on the {\em warps} is performed using positions of sources detected in the stacks. This processing is done by the {\em Image Processing Pipeline} (IPP). This first iteration of processing is called nightly science processing.  It was designed to be fast to allow the \PS\ {\em Moving Object Processing System} \citep[MOPS]{Denneau2013} and the PS1 science consortium access to the data a few hours after observation in order to detect moving objects, supernovae, and other time sensitive transients.  The 3$\pi$ data spans 4 years of observations, a time during which the IPP was actively being developed and improved.  To make a consistent set of data, both for the internal catalog database as well as for the public release, all of the raw images were reprocessed from scratch, using part of the IPP called {\em Large Area Processing} (LAP), all using a specific revision number of the IPP code, for consistency. The data released to the public in DR1 is internally called Processing Version 3 (PV3).  

What follows below is a short description of the different stages of this pipeline, chunked into sections based on final available image data products and products that are used to create the large relational database. 

\subsubsection{Chip and Camera Stages}
\label{sec:chipandcamera}

\noindent The first stage takes the raw images, generally 60 FITS files, one FITS file per OTA%(\cite{1997PASP..109.1154T})%{\color{red} Reference Burke 2004 or other OTA paper?})
, and detrends them.  This stage is called the {\em chip} stage, and analysis is done per chip. This involves applying the dark, flat, bias, background correction, etc., as described in the detrend paper \citep{Waters2017}, as well as to find the sources and do photometry on them using {\em psphot} \citep{Magnier2017b}. The next step, called camera stage, is to mosaic the {\em chip} processing together, to do basic astrometry on the image, to generate a binary FITS table called an {\em smf} file which holds the catalog information for the image. The end product of {\em camera} produces the catalog {\em smf} files which are later ingested into a relational database (DVO). %{\color{red} they aren't available to the users, other than as database right?}, and the {\em smf} files as well as the detrended {\em chip} images are available to the users.


\subsubsection{Fake and Warp Stages}
\label{sec:fakeandwarp}

\noindent The next two steps are the {\em fake} and the {\em warp} stages. The {\em fake} stage ingests a number of fake sources into an image, and then performs photometry on the image to recover the input sources.  This stage is skipped for the 3$\pi$ reprocessing (LAP/PV3) as we instead do forced photometry at a later stage.

The {\em warp} stage rotates and bins the {\em chip} outputs to be on a tangential RA/Dec plane, with 0.25 arcsecond pixels, with the images chopped into smaller 6242x6254 pixel skycells.  

%Skycells are a subset of projection cells, a given projection cell is made up of 100 skycells {\color{red}(steal the figure from Ken ?XXX)}.  

For 3$\pi$, the tessellation for the majority of the skycells is \texttt{Rings.V3}, based on a Budavari-Magnier Rings tessellation \citep{Magnier2017a}. 
This tessellation subdivides the sky into projections cell rings, each projection cell is 4.0 x 4.0 degrees, subdivided into 10 x 10 skycells, each with 30 arcseconds or 120 pixels of overlap on a side. 
The pole region of 3$\pi$ uses the tessellation \texttt{CNP.POLE}, defined as a projection cell of 4.4 x 4.4 degrees,  
subdivided into 11x11 skycells, centered around RA = 0.0 and Dec = 90.0, same 120 pixels of overlap on each side. All 
image data products beyond {\em warp} ({\em stacks}/{\em forced warps}/{\em diffs}/ etc.) are laid out in skycells as well.  

The warp image products will be available to users via MAST for DR2.

%skycell tess info for others who read this
%https://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_Tessellations

\subsubsection{Stack, StaticSky, Skycal Stages}
\label{sec:stackstages}

\noindent There are 3 stack related stages: stack, staticsky, and skycal.  The stack stage generates the images, and staticsky and skycal generates the catalogs files. 

\noindent {\em Stacks} are generated from adding together {\em warp} exposures with the same skycell id and filter, the process is described in more detail in \citet{Waters2017}.  There are several {\em stack} types, they are listed in the {\em StackType} in the PSPS database.  For the 3$\pi$ database, the {\em stack} type is set to \texttt{DEEP\_STACK}, i.e., all available and good quality {\em warps} for a given skycell and filter within 3$\pi$ are used to generate the best and deepest {\em stack} possible. The 3$\pi$ deep {\em stacks} consist of one deep {\em stack} per skycell per filter. This step produces unconvolved {\em stacks}, {\em stacks} with input {\em warps} convolved to 6 pixels, and {\em stacks} with input {\em warps} convolved to 8 pixels.  Masks, weights, variance, and number maps are also generated for each deep stack.   

Once the {\em stack} images are created, further processing is done on stacks, via {\em staticsky} and {\em skycal} stages, to do photometry and astrometry on the stacks.  For the {\em staticsky} stage, photometric analysis is run on all 5 filters at once, both for unconvolved stacks and {\em stacks} convolved to 6 and 8 pixels. Catalog files, one per filter, of matched sources within a 5 pixel radius are generated. The {\em skycal} stage calibrates the {\em staticsky} catalogs relative to the reference catalog. The {\em skycal} catalog files are later ingested into the DVO database and then into the PSPS database. Due to the overlap between skycells, sources that land in the overlaps can be reported 2, 3, or 4 times in the DVO and PSPS database.  Use the \texttt{BestDetection} flag to select the best one of these.  

Stack image products are available to users via MAST.

\subsubsection{Diff Stage}
\label{sec:diffstage}

\noindent In general, for the IPP, there are several different types of {\em diffs}.  These are \texttt{WARP\_WARP}, \texttt{WARP\_STACK}, \texttt{STACK\_WARP} and \texttt{STACK\_STACK} {\em diffs}.  For 3$\pi$, difference images are generated between {\em warps} and deep {\em stacks}, i.e., \texttt{WARP\_STACK} diffs.  That is, each good quality {\em warp} within the 3$\pi$ dataset is subtracted from the appropriate 3$\pi$ deep {\em stack} (same filter and skycell\_id). 

The results from this stage of processing include warp images and related files, and warp catalog files.  The Warp image files are used in later stages of processing (stack and diff).  Users can access individual warp images via MAST (DR2). 

\subsubsection{Forced Photometry Stage}
\label{sec:forcedphotom}

\noindent Photometry done in the earlier stages is unforced. That is, the sources are located on the images, and then photometry is performed.  Forced photometry is done with prior knowledge of source positions.  There are 2 steps of forced photometry for the IPP:  One performs forced photometry on the individual {\em warp} exposures, and the other calculates forced galaxy model fits on the stacks. 

The forced warp photometry stage takes the positions of sources located in the deep {\em stacks} and then calculates photometry at those positions on the individual warps.  The catalogs generated by this process are first ingested into the DVO database, then translated using {\em IppToPsps} into the {\em ForcedWarp*} tables for the PSPS. 

Forced galaxy photometry is done on the {\em stack} images.  This step calculates galaxy model fits on the known sources on the stacks.%{\color{red} not happy not sure if this is right needs more investigation} 
Catalog files are produced for this stage of processing, and these are later ingested into the PSPS database, as the {\em ForcedGalaxy*} tables. 

%\subsection{Results from Processing Stages}
%\label{sec:resultsfromprocessingstages}

%\noindent A subset of these products are to be released in DR1, and the rest will be released in DR2. These include, for DR1, unconvolved images from the {\em stack} stage for 3$\pi$.  
%DR2 will include warp images for all of the 3$\pi$ exposures.  Catalog data will be available via the PSPS database, it will include for DR1 stack measurements for unconvolved and convolved stacks, available in the Stack* tables, and mean properties from the camera stage (ObjectThin and MeanObject).  DR2 will include single exposure catalogs from the 'camera' stage (as Detection tables), all measurements from the 'forced photometry' stage (as Forced* tables), and all measurements from the 'diff' stage (as Diff* tables). 

%images/{\em smf} files for the camera stage, images/{\em cmfs} for the {\em warp} stage, and images/{\em cmfs} for the {\em stack} stage (check).  Later data released will include  {\em diffs} and forced {\em warp} images/cmfs (xxx)  These products are available via STSCI / MAST (xxx)

\subsection{DVO Database Steps}
\label{sec:DVOdatabase}

\subsubsection{Building and calibrating a DVO Database}
\label{sec:buildingdvo}

%{\color{red} this needs a high level description of what DVO is }

Desktop Virtual Observatory (DVO) is a database developed by Eugene Magnier that takes a subset of photometric, astrometric, flags, metadata, etc. from the catalog FITS files {\em smf/cmf} from various IPP stages and puts them into a relational database built from FITS files. 

%structure of files

%\color{red} brief list of ingredients  }
Catalog files are ingested into the DVO database via the \texttt{addstar} program (part of the IPP code). There are several stages of IPP processing that are ingested into the DVO database.  These are the catalogs produced by the  {\em skycal}, {\em camera}, forced photometry on warps, and forced galaxy model fit stages.  Difference image catalogs are ingested into the diff DVO database. 

%addstar
%{\color{red} cooking instructions (calibration)}

% make sure I"m not missing anything dumb.

Once the DVO database is built, it is then calibrated. Steps include relative photometry and astrometry.  Average properties are also calculated. Full details are in \citet{Magnier2017c}.  
%\noindent There are several stages of IPP products that are ingested into the DVO database, these are: {\em camera}, {\em skycal} (called {\em 'stacks'}), {\em forcedwarps}, and {\em forced galaxys} {\color{red} (???)}, and {\em diffs}. 
%DVO is a database developed by Eugene Magnier that takes a subset of photometric, astrometric, flags, metadata, etc. from the {\em smf/cmf} files and puts them into a relational database built from FITS files. 

%The structure of the DVO database is laid out in this paper.  Essentially, the DVO is subdivided into FITS files divided by RA and Dec boundaries with a small {\color{red}(xxx)} overlap between files. %This boundary, which allows the database to be smoothly calibrated over the sky, is also a source of duplicate IDs because {\color{red} (xxx)}, and these duplicates are present within the DR1 data release.

%{%\color{red} i need help from eam on DVO stuff -- need a summary as well as specifics for 3$\pi$ calibration}



%\subsubsection{General DVO Calibration Steps}
%\label{sec:generalDVOcalib}


There are several categories of DVO files that are used by {\em IppToPsps} to populate the PSPS database.  Short summaries of these file types are included here, full details are available in \citet{Magnier2017c}. This list is only a subset, and only the files that are most relevant for {\em IppToPsps}.

\begin{description}

\item[.cpt] Object information - each .cpt table has one entry for each object in that region of the sky. It summarizes the average properties of that object as long as those properties can be derived independently of the filter used. Information such as mean RA and Dec are listed in these files.  

\item[.cpm] Measurements - each .cpm table contains all of the measurement information for each object in the .cpt file. Contains measurement information for detections from the stack/skycal cmf, camera smfs, and forced warp smfs.

\item[.cps] Mean properties - the .cps table has filter dependent average property information for each object listed in the .cpt file.  Information such as mean magnitudes are located in these files.

\item[.cpx] Lensing measurements - the .cpx files contains lensing parameters measured from all the forced warp cmfs. 

\item[.cpy] Lensing Objects - the .cpy table has one entry for each object in that region of the sky, same object ids as for objects in the .cpt file. It summarizes the average properties of the lensing measurements.  

\item[.cpq] Forced Galaxy - the .cpq table has one entry for each object in that region of the sky, same object ids as for objects in the .cpt files. It summarizes the extended source galaxy shape measurements.




\end{description}

%query to get the numbers
%select count(*), stage from mergeDVOdbRun join minidvodbRun using (minidvodb_id) join addRun using (minidvodb_group, minidvodb_name) where mergedvodb = 'LAP.PV3.MERGE' group by stage;

%ffw exp number select count(*) from fullForceRun join fullForceInput using (ff_id)  where label = 'LAP.PV3.20140730.ff01' group by warp_id; 
% select count(*) from fullForceRun join fullForceInput using (ff_id) join  fullForceResult using (ff_id, warp_id)  where label = 'LAP.PV3.20140730.ff01' and quality = 0 group by warp_id;

%skycell counts

%ffg numbers
%select count(*) , label from minidvodbRun join addRun using (minidvodb_group, minidvodb_name ) where label like '%ffg' group by label;


%specific 3$\pi$ calibration steps
%know missing data

%\subsubsection{Building the 3$\pi$ Diff Database}
%\label{sec:building3pidiff}

%The 3$\pi$ diff database has not been built yet.
%specific 3$\pi$ {\em diff} steps
%known missing data

%\subsubsection{Building the MD Databases}

%The MD databases have not yet been built, details will be included in \citet{Huber2017}.

\subsection{IppToPsps Steps} 
\label{sec:ipptopsps}
% needs s better name

\noindent The DVO database contains a subset of information, primarily average properties of sources, and precisely calibrated astrometric and photometric information.  It is necessary, when building the PSPS database, to combine the DVO database as well as extra columns from the individual {\em smf} and {\em cmf} files.  The {\em IppToPsps} stage does this for the mean properties (split into mean properties for single exposures, calibrations against the Gaia catalogue \citep{Gaia2016}, difference exposures, and {\em forcedwarp} exposures), subdivided by DVO FITS files with RA/Dec boundaries, and again for the individual stages, which represent either single exposures or skycells from other stages ({\em camera}, {\em stacks}, {\em forced warps}, {\em difference images}). 

\begin{figure*}
\centerline{\includegraphics[width=0.8\textwidth,angle=0]{ipptopsps.pdf}}
\caption{This figure shows a flowchart of how data flows from the IPP side into batches for PSPS, using {\em IppToPsps}. On the IPP side, the DVO database shows cpt/cpm/cps/cpx/cpy/cpq files, organized and grouped by which {\em IppToPsps} batch type uses them. The IPP side also has the smf/cmf files from the camera stage, forced warp stage, and stack (skycal) stages, these smf/cmf files are also needed for {\em IppToPsps}.  {\em IppToPsps} has several different batch types, extracting data from different sources, and generating batches for ingest into PSPS. Batches related to diffs are not shown here, it is a similar process (cpt,cpm) files from the diff DVO and cmf files from the diff skycells go through {\em IppToPsps} to create DF batches (analagous to P2 or ST but using diff cmfs).  DO batches are created using cpt,cps files from the diff DVO (similar to how OB or GO batches are created).}
\label{fig:ipptopsps}
\end{figure*}


The {\em IppToPsps} translates the DVO and various catalog files associated with processing ({\em camera}/{\em stacks}/{\em forced warp}/{\em diff}) into smaller batches which are loaded onto data stores to be ingested by PSPS.  This is the stage that transforms the data into the same schema as what the end user sees. The {\em IppToPsps} is written in python/jython, STILTS \citep{Taylor2006}, uses {\em mysql} for the database ({\em IppToPsps}) used to track processing as well as for scratch databases, and uses some of the core tools within IPP to access the GPC1 database, to retrieve files, and to read the DVO database.

The {\em IppToPsps} uses the GPC1 database to generate a list of data products from the different stages that were successfully ingested into the DVO database. The GPC1 database is used by IPP to keep track of the images and their progress through different stages of processing including if they are in the DVO database.  For {\em IppToPsps}, only data products ingested successfully into the DVO database are queued up to be processed. Therefore it is extremely important to verify and finalize the DVO database prior to running {\em IppToPsps}.

There are multiple types of batches that are generated by {\em IppToPsps}, these include {\em Init} (IN), {\em Object} (OB), {\em stack} (ST), {\em Detection} (P2), {\em Forced Mean Objects} (FO), {\em Forced warp} (FW), {\em Forced Galaxy} (FG), {\em Gaia Objects} (GO), {\em diff Detection Objects} (DO), and {\em diff Detections} (DF).  For DR1, IN, OB, ST, FO and GO batches are processed through {\em IppToPsps} and ingested into PSPS.  DR2 has P2, FW, FG, DO and DF batches. An overview of the different batch types and associated DVO files and smf/cmf files is shown in the flowchart on Figure~\ref{fig:ipptopsps}.

The init batch (IN) is the first batch created by {\em IppToPsps}, and it is first to be ingested into PSPS.  This includes the system metadata tables described in Section~\ref{sec:schemameta}, with flag bits listed in Appendix~\ref{sec:FlagTables}.  This metadata is hardwired and fixed.

The object batches (OB) create the {\em ObjectThin} and {\em MeanObject} tables, described in more detail in Section~\ref{sec:schemaobject}.  Each batch represents individual DVO files which are subdivided into small rectangular patches of sky.  Columns are filled from the DVO database (cpt and cps files).

The detection batches (P2), create the {\em Detection} tables, described in more detail in Section~\ref{sec:schemap2}.  Each batch corresponds to a single exposure from \PS.  Columns within are filled from the DVO database (cpt and cpm files) as well as the {\em camera} stage catalog file (smf).  

The {\em stack} batches (ST) create the {\em stack} tables, described in more detail in Section~\ref{sec:schemast}.  Each batch corresponds to a skycell from the skycal stage.  Columns are filled from the DVO database (cpt and cpm files ) as well as from the corresponding skycal catalog files (cmf) for all 5 filters (or what is available).

The {\em forced mean objects} (FO) create the {\em ForcedMeanObject} and {\em ForcedMeanLensing} tables, described in more detail in Section~\ref{sec:schemaobject}.  Forced warp processing is ingested into a DVO, forced objects are determined and their mean properties are calculated and contained withing the DVO. Each batch contains data from individual DVO files (cpt, cps, cpy).  

The {\em forced galaxy} batches (FG) create the {\em ForcedGalaxyShape} table, described in more detail in Section~\ref{sec:schemaobject}. Forced galaxy model fits calculated from the stacks are ingested into the DVO, the forced galaxy objects are determined within the DVO. Each batch contains data from individual DVO files (cpt, cps, cpq).

The {\em forced warp} batches (FW) create the {\em ForcedWarp*} tables, described in more detail in Section~\ref{sec:schemafw}.  Each batch corresponds to a different skycell, and contains all the {\em forced warp} catalogs for that skycell.  Each batch contains data from individual DVO files (cpm, cpt, cpx) as well as from the corresponding {\em forced warp} catalog files ({\em cmf}). 

The {\em diff} object batches (DO) create the {\em DiffDetObject} table, described in more detail in Section~\ref{sec:schemaobject}.  Diff detection catalog images are ingested into a DVO, {\em diff} objects are defined and mean properties are calculated for the {\em diff} objects.  Columns are filled from the DVO {\em diff} database (cpt and cps files). 
 
The {\em diff detection} batches (DF) create the {\em DiffDetection} table, described in more detail in Section~\ref{sec:schemadiff}.  Each batch corresponds to a difference image catalog file created in the {\em diff} stage, and will contain all the skycells for a given exposure.  Columns are filled from the DVO database (cpt and cpm files), and from the corresponding {\em diff} catalog file ({\em cmf}). 

Gaia DR1 \citep{Gaia2016} was released after all of the object tables were ingested into the PSPS database.  We used the Gaia data to recalibrate the DVO object positions, this improved the astrometry significantly. Rather than dump the database and start over (with corrected RA and Dec positions), we added a new type of batch, (GO), that contains minimal metadata information, the \texttt{ObjID} for the objects, the {\em objectInfoFlags}, and the corrected RA and Dec as well as the errors.  It is based on exactly the same DVO files as OB batches, has updated RA and Dec calibrated to Gaia, and ignores the rest of the DVO columns.

Within {\em IppToPsps} it is possible to verify that the expected batches were generated, and to re-queue and regenerate batches that failed.  Batches fail for a variety of reasons, none of the failures are terminal.  Batches can fail if any of the associated {\em mysql} databases time out or are unavailable, if there are disk I/O glitches or other disk problems.  The DVO database sets the expected number of batches to generate, and failures are investigated and retried until they are resolved. Within {\em IppToPsps} it is also possible to poll the PSPS to verify if batches have been ingested.  This allows for easy removal of batches that have been loaded to PSPS in order to regain disk space. 

%\subsection{Ingest into PSPS}
%\label{sec:PSPS}

%\noindent We present an overview of the PSPS, first so that the user understands better how the PSPS database is constructed in order to optimize the queries, and secondly to describe the currently known issues within the PSPS database.

\section{PSPS}
\label{sec:overviewpsps}
\label{sec:PSPS}

\noindent We present an overview of the PSPS, first so that the user understands better how the PSPS database is constructed in order to optimize the queries, and secondly to describe the currently known issues within the PSPS database.


\begin{figure*}
\centerline{\includegraphics[width=0.8\textwidth,angle=0]{ODM_data_flow.pdf}}
\caption{This figure shows a flowchart of how data flows from the IPP (via IppToPsps) into the load merge machines, which is then flipped to the slice machines to allow for users to query the data (via a modified CasJobs)}
\label{fig:odm_data_flow}
\end{figure*}

\begin{figure*}
\centerline{\includegraphics[width=0.8\textwidth,angle=0]{ODM_data_layout.pdf}}
\caption{This shows how the data (L1 data/csv files/Image Pipeline) is loaded into L2 data (the load merge machines - responsible for loading the data and merging it into the 'cold' part of the database.  In this figure there are 8 slice machines which hold hot and warm copies of the database.  At the bottom is the head nodes and the main database.  The hot database serves the fast response queue and the warm database serves the slow queue.  The fast queue is specifically for queries that take less than one minute to complete.  The cold database is never accessible by users. }
\label{fig:odm_data_layout}
\end{figure*}




\noindent {\em Introduction}: PSPS consists of 5 parts: the data transformation layer (DXLayer), the Object Database Manager (ODM), the Workflow Manager Database (WMD), the data retrieval layer (DRL), and the \PS\ Science Interface (PSI).  The DXLayer polls the {\em IppToPsps} datastores for new batches and prepares them for loading.  The ODM is the software that all loading nodes run to load, merge, copy and publish the PSPS databases.  The WMD is the database containing all the logs about the PSPS databases.  The DRL is the intermediate layer between the client and the PSPS database.  The PSI is the web based interface for PS1 consortium members, for interacting with the DRL. Each of these components is described in more detail below, and a diagram of the process is shown in Fig~\ref{fig:odm_data_flow}


\noindent {\em Partitioning the PSPS}: The PSPS uses distributed Partitioned Views (DVP), these are tables that are partitioned to reside on different files on different linked servers. The tables are partitioned into  slices, with cuts based on declination, and with each slice containing a similar amount of data. Partition slices are customized for each database ($3\pi$ vs MD) %Fig~\ref{fig:pspsslices} shows the different database slices, and Table~\ref{table:pspsslices} describes the names of the slices and the declination ranges for each slice. 
Fig~\ref{fig:odm_data_layout} shows how the data is partitioned across a subset of the machines. 

\noindent {\em The DXLayer}: The DXLayer is the first stage in the PSPS, this is the stage that polls for new batches to load and preps them for the next step (ODM). Fig~\ref{fig:dxlayerprocess} shows the flowchart of the DXLayer process, and Fig~\ref{fig:psps_loadprocess} shows a more detailed flowchart of how batches are loaded and verified within the DXLayer and ODM. 
PSPS loads batches created by the {\em IppToPsps}.  A batch corresponds to either products from different processing stages ({\em camera}, {\em stack/skycal}, {\em diff}, {\em forced warp}) or from different DVO files (arranged by area of sky). Batches contain a manifest file that describes the batch information such as type of batch, min/max \texttt{ObjID}, MD5 checksum, and the tables to load. Batches data is stored in FITS files, which are transformed to csv files in the DXLayer. The batch area cannot exceed two PSPS slices, else it will not load correctly.  The PSPS slices are chosen so that this does not happen.

\begin{figure}
\vskip -0.6cm
\centerline{\includegraphics[width=\columnwidth,angle=0]{dxlayerprocess.pdf}}
\vskip -1.0cm
\caption{A flowchart of the DXLayer process, showing how batches are loaded into the DXLayer, verified, and submitted to the ODM}
\label{fig:dxlayerprocess}
\end{figure}

\noindent {\em The ODM}: The nodes within the ODM have naming conventions for their roles: load/merge (lm), slice (s), head (h) and admin (a).  All ODM processes are named workflows (load, merge, copy, flip).  Everything (logs, process, requests) are inserted into an administration database called the Workflow Manager Database (WMD).  Databases are named by roles Load, Cold, Warm, Hot.  These databases are MS-SQL Server and are broken into four volumes with 96 file partitions each.  The disk layout is RAID1+0 with 64 bit alignment. All of the metadata tables and {\em ObjectThin}, {\em GaiaFrameCoordinate}, {\em StackObjectThin} are merged into a head database to provide faster queries.

{\color{red} moar words}

\noindent {\em The WMD}: {\color{red} moar words}


\noindent {\em The DRL}: The DRL is the layer between the user and the PSPS database.  The DRL is responsible for management of queries that the user submits via the DRL API, is based from CasJobs, and has many similar features. It primarily keeps track of all user queries and provides progress of those queries in a secure way. It also kills queries that use too many resources or take too long. The DRL API is accessed via Simple Access Object Protocal (SOAP), allowing for multiple ways for the user to access the database.  Consortium members used the PSI (a web user interface), but it is also possible for the users to query the database via SOAP calls from command line scripts.  A flowchart of the DRL can be seen in Figure~\ref{fig:psps_drl}.


\noindent {\em PSI}: The PSI is the web user interface, but only for consortium members. As it was part of the design of PSPS it is included here for reference. This interface provides many useful features including a query request page, information on query progress, MyDB management tools, graphing tools, access to the pixel data products, and interactive help.  The query request page allows for the user to easily submit queries to a variety of databases (3pi/MD/MyDB), to upload query files or to check the syntax, to name MyDB results tables and to select the queue to submit to. The MyDB management tools allow the user to easily select which MyDB tables to purge as well as well as methods  to extract to csv, FITS or xml files to download.  Some of the interactive features include an interactive schema browser, a query builder to easily create a query with multiple joins and conditions, and a flag generator to create bitmasks for the different types of flag tables.  The plotting tool allowed the user to quickly plot data from the PSPS databases or their own MyDB within the browser.  


\begin{figure}
\vskip -0.6cm
\centerline{\includegraphics[width=\columnwidth,angle=0]{psps_loadprocess.pdf}}
\vskip -1.0cm
\caption{\noindent A flowchart of loading data from {\em IppToPsps}/IPP as batches into the DXLayer and ODM.}
\label{fig:psps_loadprocess}
\end{figure}

\begin{figure}
\centerline{\includegraphics[width=\columnwidth,angle=0]{psps_merging.pdf}}
\vskip -1.0cm
\caption{\noindent A graphical representation of how the database is re-indexed as more data is ingested. }
\label{fig:psps_merging}
\end{figure}

\begin{figure}
\centerline{\includegraphics[width=\columnwidth,angle=0]{psps_index.pdf}}
\vskip -1.0cm
\caption{\noindent PSPS uses \texttt{ObjID} as the index, with specific \texttt{ObjID} ranges associated with physical locations such as different hard disks}
\label{fig:psps_index}
\end{figure}

\begin{figure}
\centerline{\includegraphics[width=\columnwidth,angle=0]{psps_drl.pdf}}
\vskip -1.0cm
\caption{\noindent A flow chart explaining the DRL, the layer that provides the user access to the database.}
\label{fig:psps_drl}
\end{figure}

\begin{figure}
%\vskip -0.5cm
\centerline{\includegraphics[width=\columnwidth,angle=0]{psps_copy.pdf}}
\vskip -0.5cm
\caption{\noindent A flow chart showing the steps necessary to do the copy workflow.}
\label{fig:psps_copy}
\end{figure}

\begin{figure}
%\vskip -0.5cm
\centerline{\includegraphics[width=1.2\columnwidth,angle=0]{psps_mergecriteria.pdf}}
%\vskip -1.0cm
\caption{\noindent Flow chart showing how data from IPP/{\em IppToPsps} batches is loaded into the system and then merged into a new cold database.}
\label{fig:psps_mergecriteria}
\end{figure}

%\subsubsection{Verification of Ingest into PSPS}
%\label{sec:verifypsps}

%{\color{red} write some generic words here}



\section{Overview of the PSPS Database Schema}
\label{sec:schemaintro}

\noindent There are over 50 different tables that make up the PSPS schema. Here we give a brief overview of the tables and indexes, to help aid the user in selecting the most appropriate table for queries. The core concept is that the database has a unique \texttt{ObjID} for each object detected within \PS\ data. An object is defined to be something which has measurable flux at a given RA and Dec.  Multiple detections of an object will all share the same \texttt{ObjID}, as well as multiple detections within one arcsecond of that object (which might not be associated with that object, for example, blended sources).  This \texttt{ObjID} is the core index used to join the object and detection tables.  For example, {\em ObjectThin} has the astrometric information for the objects, one would join against the {\em Detection} table, using \texttt{ObjID}, in order to get the individual photometric attributes for all the detections of that object within the single exposures (at a given RA and Dec). 

\subsection{The Main Categories of Tables}
\label{sec:schemacategories}


\noindent There are 4 main types of tables within the PSPS database, these are Fundamental Data Product tables, Observational Metadata tables, Derived Data Product tables, and System Metadata tables.
Fundamental Data Product tables can be categorized into either Object Tables (summarized in Section~\ref{sec:schemaobject} or Detection Tables (summarized in Section~\ref{sec:schemadetections}. 
 Object tables contain basic information on each source in the sky, including the mean photometric and astrometric information.  Detection tables contain photometric and astrometric information on the individual exposures. Detection tables contain detections from individual exposures ({\em Detection}), stacked images ({\em Stack*} tables), Forced {\em warp} images ({\em forcedWarp*} tables) that contain forced photometry of individual exposures using positional knowledge of sources detected on {\em stacked images}, {\em Difference Images} ({\em stack} - individual exposures). 
 Observational Metadata contains information about the different data products and how they are mapped to the individual exposures. Observational Metadata tables are summarized in Sections~\ref{sec:schemadetections}. 
 Derived Data Products will come later and are not described in this paper. System Metadata tables are summarized in Section~\ref{sec:schemameta}, they contain hardwired information about the PSPS, this includes tables about flags, filters, tessellations and other useful metadata that is fixed.    
 
This section will start by briefly describing the System Metadata tables (Section~\ref{sec:schemameta}), followed by Object tables (Section~\ref{sec:schemaobject}. The Detection tables (Section~\ref{sec:schemadetections}) are organized by stage of IPP processing and contain a mix of Fundamental Data Product tables and Observational Metadata tables as this seemed the more natural way to organize this part of the schema. 

 
 %For this section, there will be a brief discussion of 
%3 of the different categories of the tables, followed by the table descriptions and indexes. 

\begin{figure*}
\centerline{\includegraphics[width=0.8\textwidth,angle=0]{dataproductimages004.pdf}}
\caption{\noindent A summary of how the different tables are related.  The rectangular boxes with words inside represent the different table names.  The ovals with words inside represent the column names to use to join the tables.  Black lines connect table names to columns (i.e., {\em Detection} has a line to \texttt{ObjID} which has a line to {\em StackObjectThin}) - this shows that {\em Detection} can be joined to {\em StackObjectThin} using \texttt{ObjID}).  The grey rounded boxes represent different stages of data processing, which corresponds to different stages of loading into the database.  Tables within the grey boxes are related; connections to the (grey) metadata tables are shown in Figure~\ref{fig:objidmap}.  The tables that are not in grey rounded boxes represent system metadata, metadata that describes the \PS\ system as well as flag information.}
\label{fig:objidmap}
\end{figure*}



\begin{figure*}
\centerline{\includegraphics[width=0.8\textwidth,angle=0]{imageid.pdf}}
\caption{\noindent This diagram shows how to find the \texttt{imageID} and \texttt{frameID} from each of the different detection tables and metadata tables. The rectangular boxes with words inside represent the different table names.  The ovals with words inside represent the column names to use to join the tables.  Black lines connect table names to columns (i.e., {\em Detection} has a line to \texttt{imageID} which has a line to {\em ImageMeta}) - this shows that {\em Detection} and {\em ImageMeta} share the same index \texttt{imageID}). }
\label{fig:imageidmap}
\end{figure*}



\begin{table}
\caption{\noindent Summary of the different database tables, their types, and other comments}
\begin{center}
%\resizebox{.70\textwidth}{!}{
\begin{tabular}{llll}
\hline
\hline
PSPS Table Name & Table Type & Release\\
\hline
Filter  & System Metadata & DR1 \\
FitModel & System Metadata & DR1 \\
Survey & System Metadata & DR1 \\
PhotoCal & System Metadata & DR1 \\
StackType & System Metadata & DR1 \\
DiffType& System Metadata & DR1 \\
Tessellation Type& System Metadata & DR1 \\
ImageFlags& System Metadata & DR1 \\
DetectionFlags& System Metadata & DR1 \\
DetectionFlags2& System Metadata & DR1 \\
DetectionFlags3& System Metadata & DR1 \\
ObjectInfoFlags& System Metadata & DR1 \\
ObjectFilterFlags& System Metadata & DR1 \\
ObjectQualityFlags& System Metadata & DR1 \\
ForcedGalaxyShapeFlags& System Metadata & DR1 \\
FrameMeta& Observational Metadata &  \\
ImageMeta& Observational Metadata &  \\
Detection & Detection table & \\
ImageDetEffMeta& Observational Metadata &  \\
ObjectThin  & Object / Mean properties  &  DR1\\ 
MeanObject & Object / Mean properties  &  DR1\\ 
StackMeta& Observational Metadata &  DR1 \\
StackObjectThin & Detection table &  DR1\\
StackObjectAttributes& Detection table &  DR1\\
StackApFlx& Detection table &  DR1\\
StackModelFitExtra& Detection table &  DR1\\
StackModelFitExp& Detection table &  DR1\\
StackModelFitDeV& Detection table &  DR1\\
StackModelFitSer& Detection table &  DR1\\
StackApFlxExGalUnc& Detection table &  DR1\\
StackApFlxExGalCon6& Detection table &  DR1\\
StackApFlxExGalCon8& Detection table &  DR1\\
StackPetrosian& Detection table &  DR1\\
StackToImage& Observational Metadata &  DR1 \\
StackToFrame& Observational Metadata &   DR1\\
StackDetEffMeta& Observational Metadata &   DR1\\
DiffMeta& Observational Metadata &  \\
DiffDetection& Detection table & \\
DiffToImage& Observational Metadata &  \\
DiffDetEffMeta& Observational Metadata &  \\
DiffDetObject & Object / Mean properties  & \\ 
ForcedWarpMeta& Observational Metadata &  \\
ForcedWarpMeasurement& Detection table & \\
ForcedWarpMasked& Detection table & \\
ForcedWarpExtended& Detection table & \\
ForcedWarpLensing& Detection table & \\
ForcedWarpToImage& Observational Metadata &  \\
ForcedGalaxyShape & Object / Mean properties  & \\ 
ForcedMeanObject & Object / Mean properties  &  DR1\\ 
ForcedMeanLensing & Object / Mean properties  & DR1 \\ 
GaiaFrameCoordinate & Object / Mean properties  & DR1 \\ 
\hline
\end{tabular}
\end{center}
\label{table:pspstables}
\end{table}%


\begin{table*}
\caption{Fundamental IPP data product database tables}
\begin{center}
%\resizebox{.70\textwidth}{!}{
\begin{tabular}{lllll}
\hline
Table Class  & PSPS Table Name   & Source   & Note & Release \\
\hline
\hline
Detection    &  Detection           & dvo and cam smf   & 1     & DR2\\
Object       &  ObjectThin          &                   & 2     & DR1\\
             &  MeanObject          & dvo               & 3     & DR1\\
             &  GaiaFrameCoordinate & dvo              & 4     & DR1\\
Stack        & StackObjectThin      & dvo and skycal cmf & 5    & DR1\\
             & StackObjectAttributes & dvo and skycal cmf & 6    & DR1\\
             & StackApFlx & dvo and skycal cmf & 7    & DR1\\
             & StackApFlxExGalUnc & dvo and skycal cmf & 7    & DR1\\
             & StackApFlxExGalCon6 & dvo and skycal cmf & 7    & DR1\\
             & StackApFlxExGalCon8 & dvo and skycal cmf & 7    & DR1\\
             & StackPetrosian & dvo and skycal cmf & 7    & DR1\\
             & StackModelFitExp & dvo and skycal cmf & 8    & DR1\\
             & StackModelFitDeV & dvo and skycal cmf & 8    & DR1\\
             & StackModelFitSer & dvo and skycal cmf & 8    & DR1\\
Difference   & DiffDetection  & dvo and diff skycal cmf & 9  & DR2\\
Difference   & DiffDetObject  & dvo & 10  & DR2\\
Forced       & ForcedMeanObject & dvo &  11 & DR1\\
             & ForcedWarpMeasurement & dvo and forced warp cmf & 12 & DR2\\
             & ForcedMeanLensing & dvo & 13 & DR2\\
             & ForcedWarpLensing & dvo and forced warp cmf & 13 & DR2\\
             & ForcedGalaxyShape & dvo & 15 & DR2\\
             & ForcedWarpMasked & dvo and forced warp cmf & 16 & DR2\\
\hline            
\end{tabular}
\end{center}
\label{table:fundamentalipp}
\end{table*}










%\begin{table}
%\caption{Fundamental IPP data product database tables}
%\begin{center}
%\resizebox{.70\textwidth}{!}{
%\begin{tabular}{ll}
%\hline
%\hline
%PSPS Table Name & Rel.\\
%\hline
%Detection &  \\
%ObjectThin  &  DR1\\ 
%MeanObject &  DR1\\ 
%StackObjectThin &  DR1\\
%StackObjectAttributes&  DR1\\
%StackApFlx& DR1\\
%StackModelFitExtra&  DR1\\
%StackModelFitExp&   DR1\\
%StackModelFitDeV&  DR1\\
%StackModelFitSer&   DR1\\
%StackApFlxExGalUnc&  DR1\\
%StackApFlxExGalCon6&   DR1\\
%StackApFlxExGalCon8&   DR1\\
%StackPetrosian&  DR1\\
%DiffDetection&  \\
%DiffDetObject &  \\ 
%ForcedWarpMeasurement&  \\
%ForcedWarpMasked& \\
%ForcedWarpExtended&  \\
%ForcedWarpLensing&  \\
%ForcedGalaxyShape  & \\ 
%ForcedMeanObject &  DR1\\ 
%F%orcedMeanLensing &  DR1 \\ 
%GaiaFrameCoordinate &  DR1 \\ 
%\hline
%\end{tabular}
%\end{center}
%\label{table:fundamentalipp}
%\end{table}%

\begin{table}
\caption{Observational Metadata}
\begin{center}
%\resizebox{.70\textwidth}{!}{
\begin{tabular}{ll}
\hline
\hline
PSPS Table Name &  Rel.\\
\hline
FrameMeta&   \\
ImageMeta&   \\
ImageDetEffMeta&   \\
StackMeta&  DR1 \\
StackToImage&   DR1 \\
StackToFrame&    DR1\\
StackDetEffMeta&   DR1\\
DiffMeta&   \\
DiffToImage&  \\
DiffDetEffMeta&   \\
ForcedWarpMeta&   \\
ForcedWarpToImage&  \\
\hline
\end{tabular}
\end{center}
\label{table:observationalmetadata}
\end{table}%

\begin{table}
\caption{System Metadata}
\begin{center}
%\resizebox{.70\textwidth}{!}{
\begin{tabular}{ll}
\hline
\hline
PSPS Table Name &  Rel.\\
\hline
Filter  & DR1 \\
FitModel & DR1 \\
Survey &  DR1 \\
PhotoCal &  DR1 \\
StackType &  DR1 \\
DiffType&  DR1 \\
TessellationType&  DR1 \\
ImageFlags& DR1 \\
DetectionFlags&  DR1 \\
DetectionFlags2&  DR1 \\
DetectionFlags3&  DR1 \\
ObjectInfoFlags&  DR1 \\
ObjectFilterFlags&  DR1 \\
ObjectQualityFlags& DR1 \\
ForcedGalaxyShapeFlags&  DR1 \\
\hline
\end{tabular}
\end{center}
\label{table:systemmetadata}
\end{table}%

\subsection{System Metadata Tables}
\label{sec:schemameta}

%\noindent There are several types of metadata tables, primarily they fall into one of two categories.  There are metadata tables that provide additional general information about \PS\ (specifically, filters, flags, etc.) this is called system metadata, and metadata tables that provide specific information about images, stacks, difference images, and forced {\em warp} (example, {\em ImageMeta}, {\em StackMeta}, etc.), these are called observational metadata.  

The system metadata tables primarily contain definitions of flags, filters, surveys and other information that is specific to \PS.  % and would be the same for the Medium Deep catalogs as well.  

There are several tables that describe the different flag bits, they are {\em ImageFlags}, {\em DetectionFlags}, {\em DetectionFlags2}, {\em DetectionFlags3}, {\em ObjectInfoFlags}, {\em ObjectFilterFlags}, {\em ObjectQualityFlags}, and {\em ForcedGalaxyShapeFlags}. % Use the {\em FlagGenerator} to create a bitmask or create your own bitmask to filter out entries based on flags.  

There are a handful of other system metadata tables: {\em Filter}, {\em Survey}, {\em FitModel}, {\em PhotoCal}, {\em StackType}, {\em DiffType}, {\em TessellationType}. The descriptions of each of those are provided below.

\vskip 0.2cm

\noindent {\bf \em Filter}: Contains a description of the optical filters used in the survey \citep{Tonry2012}. Filters (g,r,i,z,y) are assigned integer values (\texttt{filterID}).

\vskip 0.1cm
\noindent {\bf \em FitModel}: Contains descriptions of the models used in fitting detections in images, both PSF-like and extended galaxies \citep[see][]{deVaucouleurs1948,Sersic1963}. Describes the values for column \texttt{psfModelID} (located in various tables).

\vskip 0.1cm
\noindent {\bf \em Survey}: Contains descriptions of the various PS1 Science Consortium Surveys. The 3$\pi$ \texttt{SurveyID} is 0.

\vskip 0.1cm
\noindent {\bf \em PhotoCal}: Contains photometric calibration information for each filter and detector image combinations. Describes the values of \texttt{photoCalID} within {\em ImageMeta}, {\em StackMeta}, {\em ForcedWarpMeta}, and {\em DiffMeta}.

\vskip 0.1cm
\noindent {\bf \em StackType}: Contains descriptions of the types of stacked images constructed. For 3$\pi$, all {\em stacks} are \texttt{DEEP\_STACK}.  

\vskip 0.1cm
\noindent {\bf \em DiffType}: Contains descriptions of the types of difference images constructed. For 3$\pi$, all {\em diffs} are \texttt{WARP\_STACK}. 

\vskip 0.1cm
\noindent {\bf \em TessellationType}: Contains descriptions of the types of image tessellations for the sky. For 3$\pi$, this is \texttt{RINGS.V3}, pole regions of 3$\pi$ are \texttt{CNP.LAP}.  Each medium deep field has its own {\em TessellationType} (\texttt{MD01.V3}, \texttt{MD02.V3}, etc.). The RINGS.V3 Tessellations are described in more detail in \citet{Magnier2017a}, and the medium deep tessellations in \citet{Huber2017}.   

\subsubsection{Flag Tables}
\label{sec:schemaflagsbitmasks}

%{\color{red} needs introduction}

%\subsection{Flags and  Bitmasks}
%\label{sec:schemaflagsbitmasks}

\noindent There are 45 flag columns within the \PS\ database schema, and 8 different types of flags ({\em ObjectInfoFlags}/{\em ObjectQualityFlags}, {\em ObjectFilterFlags}, {\em ImageFlags}, {\em ForcedGalaxyShapeFlags}, {\em DetectionFlags}, {\em DetectionFlags2}, {\em DetectionFlags3}).  This section will give a brief overview of the 8 different types of flags. %, as well as some hints as to how to use them to select subsets of data. 
Table~\ref{table:flagtablestable} organizes the available flags and is intended to be used as a reference to select the appropriate flag information tables.

\vskip 0.2cm

\noindent {\bf \em ObjectInfoFlags} Contains information flag values for {\em ObjectThin}, {\em ForcedObject}, {\em DiffDetObject}.  These Flags are specifically useful for objects, several bits flag the object if it has been identified as QSO, variable, transient, or a known solar system object, if it has large proper motions, if it is extended, and the source of the average position information.  

\vskip 0.1cm
\noindent {\bf \em ObjectQualityFlags} Contains information flag values that denote if an object is real or a possible false positive. This is a subset of flags from {\em ObjectInfoFlags}, specifically the ones if the object is extended, has good measurements in indivudual exposures, and has good measurements in the stacks.   
 
\vskip 0.1cm
\noindent {\bf \em ObjectFilterFlags} Contains information flags for the photometric calibration of an object ({\em MeanObject}). Bits include if it is ubercal'd, where photometry comes from (single exposures or stacks), information about synthetic photometry, and how the average magnitude was calculated. 

\vskip 0.1cm
\noindent {\bf \em ImageFlags} Contains information flag values for images in {\em ImageMeta}. Primarily flags of whether the image is bad or if there are too few measurements.  

\vskip 0.1cm
\noindent {\bf \em ForcedGalaxyShapeFlags} Contains information flag values that define {\em ForcedGalaxyShape} chisq surface fit failures.

\vskip 0.1cm
\noindent {\bf \em DetectionFlags} Contains information flag values for detection tables {\em Detection}, {\em StackObjectThin}, {\em ForcedWarpMeasurements} and {\em DiffDetections}. Primarily information bits on sources, whether it is blended, used for PSF model, saturated, and many other types of defects, as well as information on types of magnitudes calculated, if it is extended, and fit information.

\vskip 0.1cm
\noindent {\bf \em DetectionFlags2} Contains information flag values for detection tables {\em Detection},{\em StackObjectThin},{\em ForcedWarpMeasurements}, and {\em  DiffDetections}).  These flags contain bits specific to difference imaging, if source is near difraction spikes, starcore, burntool, flags relating to petrosians, and information on the fits (if they failed). 

\vskip 0.1cm
\noindent {\bf \em DetectionFlags3} Contains information flag values for detection tables {\em Detection}, {\em StackObjectThin}, {\em ForcedWarpMeasurements}, and {\em DiffDetections}. Contains flags of whether detection was used for many different mean calculations (astrometric, photometric), and various associations with the DVO database. 

%\subsubsection{Examples of useful bitmasks}
%\label{sec:schemaflagexamples}


%\subsubsection{Known Issues}
%\label{sec:schemaflagissues}

%\noindent {\em DetectionFlags} is currently a type \texttt{BIGINT}, however should be an \texttt{INT}.  Applying a bitmask will work the same as for the other flag table types.  If in the future there is a flag column with a type of \texttt{BIGINT}, i.e. through additional database tables or views, the bit mask will need to be recast as a \texttt{BIGINT}.






\subsection{Object type tables}
\label{sec:schemaobject}

\noindent The object type tables originate from the DVO database, specifically, the DVO tables that have information about objects, their mean astrometric and photometric properties and information such as the number of detections per objects and other statistics and information.  The object type tables form the equivalent of a telephone book for all of the objects, with \texttt{ObjID} being the equivalent of the phone number.  If an object is not in these tables, it has not been detected in any of the stages of processing.  The object type tables are {\em ObjectThin}, {\em MeanObject}, {\em DiffDetObject}, {\em ForcedMeanObject}, {\em ForcedMeanLensing}, {\em ForcedGalaxyShape} and {\em GaiaFrameCoordinate}.  For DR1, the available tables are {\em ObjectThin}, {\em MeanObject}, {\em ForcedMeanObject}, {\em ForcedMeanLensing}, and {\em GaiaFrameCoordinate}. What follows is a description of each of the object type tables, for DR1 and beyond.

\vskip 0.2cm

\noindent {\bf \em ObjectThin} Contains the positional information for objects in a number of coordinate systems. The objects associate single epoch detections and the stacked detections within a one arcsecond radius. The mean position from the single epoch data is used as the basis for coordinates when available, or the position of an object in the {\em stack} when it is not. The right ascension and declination for both the {\em stack} and single epoch mean is provided. The number of detections in each filter from single epoch data is listed, along with which filters the object has a {\em stack} detection \citep[see][]{Szalay2007}. Use \texttt{ObjID} to join to most tables; {\em uniquePspsOBid} to join to {\em MeanObject}. \texttt{ObjID} is not unique.

\vskip 0.1cm
\noindent {\bf \em MeanObject} Contains the mean photometric information for objects based on the single epoch data, calculated as described in \citet{Magnier2013}. To be included in this table, an object must be bright enough to have been detected at least once in an individual exposure. PSF, \citet{Kron1980}, and aperture magnitudes and statistics are listed for all filters. Use \texttt{ObjID} to join to most tables; {\em uniquePspsOBid} to join to {\em MeanObject}.

\vskip 0.1cm
\noindent {\bf \em DiffDetObject}	Contains the positional information for difference detection objects in a number of coordinate systems. The objects associate difference detections within a one arcsecond radius. The number of detections in each filter is listed, along with maximum coverage fractions \citep[see][]{Szalay2007}). Use \texttt{diffObjID} to join to most tables (\texttt{diffObjID} = \texttt{objID}). \texttt{diffObjID} is not unique, \texttt{uniquePspsDOid} is unique.

\vskip 0.1cm
\noindent {\bf \em ForcedMeanObject} Contains the mean of single-epoch photometric information for sources detected in the stacked data, calculated as described in \citet{Magnier2013}. The mean is calculated for detections associated into objects within a one arcsecond correlation radius. PSF, \citet{Kron1980}, and SDSS aperture R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), and R7 (r = 7.43 arcsec) apertures \citep{Stoughton2002} magnitudes and statistics are listed for all filters. See also \citet{Kaiser1995,Magnier2013,Stoughton2002}.  Use \texttt{ObjID} to join to most tables, and use {\em uniquePspsFOid} to join to {\em ForcedMeanLensing}. \texttt{ObjID} is not unique, but \texttt{uniquePspsFOid} is.

\vskip 0.1cm
\noindent {\bf \em ForcedMeanLensing}  Contains the mean \citet{Kaiser1995} lensing parameters measured from the forced photometry of objects detected in stacked images on the individual single epoch data. Use \texttt{ObjID} to join to most tables; use \texttt{uniquePspsFOid} to join to {\em ForcedMeanObject}. \texttt{ObjID} is not unique, but \texttt{uniquePspsFOid} is.

\vskip 0.1cm
\noindent {\bf \em ForcedGalaxyShape} 	Contains the extended source galaxy shape parameters. All filters are matched into a single row. The positions, magnitudes, fluxes, and Sersic indices are inherited from their parent measurement in the {\em StackModelFit} tables, and are reproduced here for convenience. The major and minor axes and orientation are recalculated on a warp-by-warp basis from the best fit given these inherited properties \citep{Sersic1963}. Use \texttt{ObjID} to join to most tables. \texttt{ObjID} is not unique, but \texttt{uniquePspsFGid} is.

\vskip 0.1cm
\noindent {\bf \em GaiaFrameCoordinate} This table contains PSPS objects calibrated against Gaia astrometry, this is the best RA and Dec to use for an object.  Use \texttt{ObjID} to join to most tables.%&, note that\texttt{ObjID} is not unique.  {\color{red}GH: is this correct? Twice ObJID?}

\subsection{Individual Exposure Detection Type Tables}
\label{sec:schemadetections}

\noindent The majority of the data in the database is in the form of detection type tables.  These are tables that are based on individual stages of processing from the IPP. Specifically, these are tables from the catalog outputs of {\em camera}, {\em stack}, {\em forced photometry} and {\em diff} stages of the IPP. Each of these categories of tables are described below.  

%There are several metadata tables specific to different stages of data ingested (i.e., metadata for individual exposures, {\em stacked} skycells, {\em difference} skycells, {\em forced warp} skycells).  Basic information about indivudual exposures, {\em stack} skycells, {\em difference} skycells, such as the filter, exposure time, observation time, basic metrics, etc. can be found in these tables: {\em DiffMeta}, {\em ForcedWarpMeta}, {\em StackMeta}, {\em ImageMeta}. The metadata tables linking {\em stacks}/{\em diffs}/{\em forcedwarps} to individual exposures are {\em DiffToImage}, {\em ForcedWarpToImage}, {\em StackToImage}, and {\em StackToFrame}.  There is metadata available on the detection efficiency for difference images and single exposures in {\em DiffDetEffMeta} and {\em ImageDetEffMeta}. {\em ImageMeta} has metadata for a single exposure, while {\em FrameMeta} has metadata for each of the 60 OTAs that make up an image. Further information about these tables are described in sections below.


\subsubsection{Tables based on the {\em 'camera'} stage of IPP}
\label{sec:schemap2}

\noindent Images processed through the {\em camera} stage of the IPP have been detrended, and have had astrometry and photometry calculated.  Basic information from the images are then merged into the DVO database.  The core tables based on the {\em camera} stage are {\em FrameMeta}, {\em ImageMeta}, {\em Detection}, and {\em ImageDetEffMeta}. Each image ingested into the PSPS database has a unique \texttt{imageID}; this can be used to find out, via the {\em FrameMeta}, {\em ImageMeta}, and {\em ImageDetEffMeta} tables, information about each image such as the filter, RA and Dec, exposure time, etc.  All of the detections measured in the image are ingested into the Detection table, which also has the \texttt{imageID}, allowing for single detections to be traced back to the OTA that it was imaged on. 

\vskip 0.2cm

\noindent {\bf \em FrameMeta} Contains metadata related to an individual exposure. A {\em Frame} refers to the collection of all images obtained by the 60 OTA devices in the camera in a single exposure. The camera configuration, telescope pointing, observation time, and astrometric solution from the detector focal plane (L,M) to the sky (RA,Dec) is provided.

\vskip 0.1cm
\noindent {\bf \em ImageMeta} Contains metadata related to an individual OTA image that comprises a portion of the full exposure. The characterization of the image quality, the detrends applied, and the astrometric solution from the raw pixels (X,Y) to the detector focal plane (L,M) is provided.

\vskip 0.1cm
\noindent {\bf \em Detection} Contains single epoch photometry of individual detections from a single exposure. The identifiers connecting the detection back to the original image and to the object association are provided. PSF, aperture, and \citet{Kron1980} photometry are included, along with sky and detector coordinate positions. Use \texttt{ObjID} to join to other tables with photometry/astrometry parameters. \texttt{ObjID} is not unique.

\vskip 0.1cm
\noindent {\bf \em ImageDetEffMeta} Contains the detection efficiency information for a given individual OTA image. Provides the number of recovered sources out of 500 injected fake source and statistics about the magnitudes of the recovered sources for a range of magnitude offsets.

\subsubsection{Tables based on the 'stack' stage of IPP}
\label{sec:schemast}

\noindent There are 15 tables based on the stack stage of processing.  The tables can be categorized into different groups, many of the tables are similar in shape (same column names), but based off of different stack Images (unconvolved vs convolved) or different extended models. The most important table is {\em StackObjectThin}.  This table contains the positional and photometric information for point-source photometry of stack detections. {\em StackObjectAttributes} extends information from {\em StackObjectThin} and it contains the PSF, Kron, and aperture fluxes for all objects.

StackApFlx, contains the unconvolved fluxes for 3 SDSS radii, for all sources.  ({\em StackApFLxExGalUnc}, {\em StackApFlxExGalCon6}, {\em StackApFlxExGalCon8}) are based on the (unconvolved, convolved to 6 pixels, convovolved to 8 pixels) fluxes or 9 SDSS radii, but only for sources not in the galactic plane. ({\em StackModelFitExp}, {\em StackModelFitDeV}, {\em StackModelFitSer}) all contain fit parameters for extended sources for different types of models (Exponential, DeVaucouleurs, Sersic). {\em StackPetrosian} contains the magnitudes and radii for extended sources.

There are several stack metadata tables, they are {\em StackMeta}, {\em StackToImage}, {\em StackToFrame} and {\em StackDetEffMeta}.  They provide general information about the stack and can be used to find out the exposures used in the stack.

\vskip 0.2cm
\noindent {\bf \em StackMeta} Contains the metadata describing the stacked image produced from the combination of a set of single epoch exposures.  The nature of the stack is given by the \texttt{StackTypeID}.  The astrometric and photometric calibration of the stacked image are listed.

\vskip 0.1cm
\noindent {\bf \em StackObjectThin}  Contains the positional and photometric information for point-source photometry of stack detections.  The information for all filters are joined into a single row, with metadata indicating if this stack object represents the primary detection.  Due to overlaps in the stack tessellations, an object may appear in multiple stack images.  The primary detection is the unique detection from the stack image that provides the best coverage with minimal projection stretching.  All other detections of the object in that filter are secondary, regardless of their properties.  The detection flagged as best is the primary detection if that detection has a \texttt{psfQf} value greater than 0.98;  if that is not met, then any of the primary or secondary detections with the highest \texttt{psfQf} value is flagged as best \citep[see][]{Kron1980,Magnier2017a}. 

\vskip 0.1cm
\noindent {\bf \em StackObjectAttributes} Contains the PSF, \citet{Kron1980}, and aperture fluxes for all filters in a single row, along with point-source object shape parameters.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.

\vskip 0.1cm
\noindent {\bf \em StackApFlx} Contains the unconvolved fluxes within the SDSS R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), and R7 (r = 7.43 arcsec) apertures \citep{Stoughton2002}.  Convolved fluxes within these same apertures are also provided for images convolved to 6 sky pixels (1.5 arcsec) and 8 sky pixels (2.0 arcsec).  All filters are matched into a single row.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.

\vskip 0.1cm
\noindent {\bf \em StackModelFitExtra} Contains the galaxy shape and concentration parameters measured from the stack detections.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.  See \citet{Blakeslee2006,Cheng2011,Schade1995,Simard2011,Simard2002}.

\vskip 0.1cm
\noindent {\bf \em StackModelFitExp} Contains the exponential fit parameters to extended sources.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections. 

\vskip 0.1cm
\noindent {\bf \em StackModelFitDeV} Contains the \citet{deVaucouleurs1948} fit parameters to extended sources.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.  

\vskip 0.1cm
\noindent {\bf \em StackModelFitSer} Contains the \citet{Sersic1963} fit parameters to extended sources.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.

\vskip 0.1cm
\noindent {\bf \em StackApFlxExGalUnc} Contains the unconvolved fluxes within the SDSS R3 (r = 1.03 arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21 arcsec) apertures \citep{Stoughton2002} for extended sources.  These measurements are only provided for objects in the extragalactic sky, i.e., they are not provided for objects in the Galactic plane because they are not useful in crowded areas.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections. 

\vskip 0.1cm
\noindent {\bf \em StackApFlxExGalCon6} Contains the fluxes within the SDSS R3 (r = 1.03 arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21 arcsec) apertures \citep{Stoughton2002} for extended sources after the images have been convolved to a target of 6 sky pixels (1.5 arcsec).  These measurements are only provided for objects in the extragalactic sky, i.e., they are not provided for objects in the Galactic plane because they are not useful in crowded areas.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.  

\vskip 0.1cm
\noindent {\bf \em StackApFlxExGalCon8} Contains the fluxes within the SDSS R3 (r = 1.03 arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21 arcsec) apertures \citep{Stoughton2002} for extended sources after the images have been convolved to a target of 8 sky pixels (2.0 arcsec).  These measurements are only provided for objects in the extragalactic sky, i.e., they are not provided for objects in the Galactic plane because they are not useful in crowded areas.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.  

\vskip 0.1cm
\noindent {\bf \em StackPetrosian} Contains the \citet{Petrosian1976} magnitudes and radii for extended sources.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.  

\vskip 0.1cm
\noindent {\bf \em StackToImage} Contains the mapping of which input images were used to construct a particular stack.

\vskip 0.1cm
\noindent {\bf \em StackToFrame} Contains the mapping of input frames used to construct a particular stack along with processing stats.

\vskip 0.1cm
\noindent {\bf \em StackDetEffMeta} Contains the detection efficiency information for a given stacked image.  Provides the number of recovered sources out of 500 injected sources for each magnitude bin and statistics about the magnitudes of the recovered sources for a range of magnitude offsets.

\subsubsection{Tables from the 'forced photometry' stage of IPP}
\label{sec:schemafw}

\noindent The {\em forced photometry} stage of the IPP uses the positions of detections found on the {\em stacks} as a list of positions to force calculations of photometry on the individual {\em warps} from images.  The {\em warp} images are essentially the detrended images rotated, rebinned, and chopped into skycells.  For a given {\em stack} skycell with a list of detected objects, the corresponding {\em warps} (from individual images) will have their photometry calculated, based on the list of detected objects in the {\em stack} skycell.  More extended photometric calculations are performed in the {\em forced photometry} stage compared to the {\em camera} stage, for example, lensing parameters and extended photometry is calculated for this stage and not for the {\em camera} stage.  Similar to the {\em stack} and {\em camera} stages, the end product of this stage of processing is a catalog file, basic information from the catalog file is ingested into the DVO, and then information from both the DVO and the catalog file are later ingested into the PSPS.  Basic information about each {\em forced warp} skycell can be found in {\em ForcedWarpMeta} and a mapping to the individual exposures can be found in {\em ForcedWarpToImage}, use \texttt{forcedWarpID} and \texttt{imageID} to make these joins. Tables with photometric information are in {\em ForcedWarpMeasurement} and {\em ForcedWarpExtended}.  {\em ForcedWarpMasked} allows one to know if there were no unmasked pixels for a specific {\em forced warp} measurement. 

\vskip 0.2cm

\noindent {\bf \em ForcedWarpMeta} Contains the metadata related to a sky-aligned distortion corrected {\em warp} image, upon which forced photometry is performed. The astrometric and photometric calibration of the {\em warp} image are listed. 

\vskip 0.1cm
\noindent {\bf \em ForcedWarpMeasurement} Contains single epoch forced photometry of individual measurements of objects detected in the stacked images. The identifiers connecting the measurement back to the original image and to the object association are provided. PSF, aperture, and \citet{Kron1980} photometry are included, along with sky and detector coordinate positions.

\vskip 0.1cm
\noindent {\bf \em ForcedWarpMasked} Contains an entry for objects detected in the stacked images which were in the footprint of a single epoch exposure, but for which there are no unmasked pixels at that epoch.

\vskip 0.1cm
\noindent {\bf \em ForcedWarpExtended} Contains the single epoch forced photometry fluxes within the SDSS R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), and R7 (r = 7.43 arcsec) apertures \citep{Stoughton2002} for objects detected in the stacked images. 

\vskip 0.1cm
\noindent {\bf \em ForcedWarpLensing} Contains the \citet{Kaiser1995} lensing parameters measured from the forced photometry of objects detected in stacked images on the individual single epoch data. 

\vskip 0.1cm
\noindent {\bf \em ForcedWarpToImage} Contains the mapping of which input image comprises a particular {\em warp} image used for forced photometry.

\subsubsection{Tables based on the 'diff' stage of IPP}
\label{sec:schemadiff}

\noindent The {\em diff} stage for 3$\pi$ processing subtracts {\em warp} images from the deep {\em stack} images.  Other types of {\em diffs} are also possible, but are not used for the 3$\pi$ database.  There is one {\em diff} image for each single exposure within the 3$\pi$ survey. The {\em diff} input images (the {\em stack} and {\em warp} images) are convolved to have similar PSFs \citep{Waters2017}.  Once the {\em diff} images are created, basic photometry is performed in order to find new sources, and {\em diff} catalog files are created.  The {\em diff} catalog files are then ingested into the {\em diff} DVO, and later ingested into the PSPS.  There are 4 database tables for this stage of processing.  Each {\em diff} has a unique {\em diffImageId}, and all 4 {\em diff} tables use this to join to each other. {\em DiffMeta}, {\em DiffToImage}, and {\em DiffDetEffMeta} are metadata tables that describe basic properties of the difference images as well as allows the {\em diffs} to be mapped to the {\em stacks} and single exposures that were used in the creation of the diffs.  {\em DiffDetection} contains the photometry from the detections measured from the difference images.  More details about these tables are described below.

\vskip 0.2cm

\vskip 0.1cm
\noindent {\bf \em DiffMeta} Contains metadata related to a difference image constructed by subtracting a stacked image from a single epoch image, or in the case of the MD Survey from a nightly {\em stack} (stack made from all exposures in a single filter in a single night). The astrometric calibration of the reference {\em stack} is listed.

\vskip 0.1cm
\noindent {\bf \em DiffDetection} Contains the photometry of individual detections from a difference image. The identifiers connecting the detection back to the difference image and to the object association are provided. PSF, aperture, and \citet{Kron1980} photometry are included, along with sky and detector coordinate positions. 

\vskip 0.1cm
\noindent {\bf \em DiffToImage} Contains the mapping of which input images were used to construct a particular difference image. 

\vskip 0.1cm
\noindent {\bf \em DiffDetEffMeta} Contains the detection efficiency information for a given individual difference image. Provides the number of recovered sources out of 500 injected sources and statistics about the magnitudes of the recovered sources for a range of magnitude offsets. 

\subsection{Description of \texttt{ObjID}} 
\label{sec:schemaobjid}

\noindent The indices \texttt{objID} and \texttt{diffObjID} are derived from right ascension and declination.  The derivation is the same for both. While it is possible to calculate the RA and Dec from the \texttt{objID}, it is not recommended to do this, because the \texttt{objID} is based on the astrometric solutions from individual exposures and {\em stacks} as they are ingested into the DVO database, and is not calibrated against 2MASS or Gaia. It is recommended to use \texttt{raMean}, \texttt{decMean} from {\em ObjectThin} or \texttt{ra}, \texttt{dec} from {\em GaiaFrameCoordinate}.  {\em ObjectThin} is calibrated against 2MASS, and {\em GaiaFrameCoordinate} is calibrated against Gaia.  Included below is the C code for the translation between RA and Dec, for users interested in the relationship.

\vskip 0.5cm

\texttt{
uint64\_t \\
CreatePSPSObjectID(double ra, double dec) \\
\{\\
    double zh = 0.0083333;\\
    double zid = (dec + 90.) / zh;             // 0 - 180*60*2 = 21600 < 15 bits\\
    int izone = (int) floor(zid);\\
    double zresid = zid -  ((float) izone);    // 0.0 - 1.0\\
\\
    uint64\_t part1, part2, part3;\\
    part1 = (uint64\_t)( izone  * 10000000000000LL) ; \\
    part2 = ((uint64\_t)(ra * 1000000.)) * 10000 ; // 0 - 360*1e6 = 3.6e8 (< 29 bits)\\
    part3 = (int) (zresid * 10000.0) ; // 0 - 10000 (1 bit == 30/10000 arcsec) (< 14 bits)\\
\\
    return part1 + part2 + part3;\\
\}\\
}

\begin{figure}
\centerline{\includegraphics[width=1.1\columnwidth,angle=0]{objid.pdf}}
\vskip -0.5cm
\caption{Graphical description of how \texttt{ObjID} is calculated from RA and Dec. It is not recommended to derive the RA and Dec from the \texttt{objID} as this will result in an innaccurate RA and Dec, the \texttt{ObjID} is assigned when the stack/skycal cmfs are ingested into the database, and are not yet calibrated against 2MASS and Gaia.  }
\vskip 0.5cm
\label{fig:objiddef}
\end{figure}

\subsection{Which RA and Dec to use?}
\label{sec:schemaradec}

\noindent There are multiple tables that contain columns that provide the RA and Dec, this section gives information on each so that the user can choose the appropriate RA and Dec. A summary of these tables are provided in Table~\ref{table:radec} Generally, if the user is not interested in proper motion or moving objects, the best RA and Dec to use is the RA and Dec in {\em GaiaFrameCoordinate}, as this is the weighted mean RA and Dec (similar to {\em ObjectThin}), but calibrated to Gaia.  The reason why this is in a separate table and not part of {\em ObjectThin} is because the mean properties were calculated and ingested into PSPS prior to Gaia's DR1.  {\em ObjectThin}'s \texttt{raMean} and \texttt{decMean} is calibrated against 2MASS, and is different from Gaia on average by {\color{red}X} \citep{Magnier2017c}. %{\color{red} EAM needs to fix}.  

\begin{table*}
\caption{Various locations of RA and Dec columns}
\begin{center}
\begin{tabular}{cccc}
\hline
\hline

PSPS Table & RA column name & Dec column name & comments\\
\hline
FrameMeta & raBore & decBore & RA/Dec of telescope boresite \\
%- where the telescope was pointed when image was taken \\
ObjectThin & raMean & decMean & mean RA and Dec from single exposure, calibrated against 2MASS \\
ObjectThin & raStack & decStack & mean RA and Dec calculated from {\em stack} skycells \\
Detection & RA & Dec & RA and Dec for single exposure detections \\
StackObjectThin & (grizy)ra & (grizy)dec & RA and Dec calculated from individual {\em stack} skycells \\
DiffDetection & RA & Dec & RA and Dec for single {\em diff} exposure detections  \\
DiffDetObject & RA & Dec & similar to raMean/decMean, calculated for {\em diff} objects \\
GaiaFrameCoordinate & RA & Dec & \textbf{Best RA and Dec, recalibrated to Gaia.}\\%\tablenotemark{a} \\ 
\hline
\end{tabular}
\end{center}
%\tablenotetext{a}{This is the best and most accurate RA and Dec to use if interested in the static sky.}
\label{table:radec}
\end{table*}

\subsection{Indexes and Joins}
\label{sec:schemaindexjoins}

There are multiple columns within the schema that are indexed and designed to be used to join tables together. Generally, if a column name ends in "\texttt{ID}", it is designed to be joined to other tables, either to system metadata tables (examples include \texttt{filterID}, \texttt{surveyID}, 
\texttt{ccdID}), or to fundamental data tables (for example, \texttt{}{objID}, \texttt{}{diffObjID}, \texttt{uniquePspsSTid}). There are a few exceptions, \texttt{randomID} and \texttt{random(stage)ID} should not be used for joins, the contents of each are random numbers to aid the user in selecting repeatable random subsets of data. Also, some of the \texttt{uniquePspsXXIds} are only present in one table, they are used to provide unique IDs for each stage of processing but some stages ({\em DiffDetObject}, for example) only have one corresponding table and therefore nothing to join to.

\noindent Figure~\ref{fig:objidmap} and Figure~\ref{fig:imageidmap} show graphical representations of how to join various tables.  On these figures, the table names are boxed, while the columns to be used to join are in ovals.  For the diagram with \texttt{objID} in the middle, it shows that any of the boxes connected to \texttt{objID} can be joined to each other using \texttt{objID}.  

\noindent All tables with photometric or astrometric information involving different sources or objects have an index, called \texttt{objID}.  \texttt{ObjID} is not unique, and is loosely based on RA and Dec, see Section~\ref{sec:schemaobjid} for more information. It is possible to use the \texttt{ObjID} to get a rough estimate of the RA and Dec, but this should not be used for the definitive RA and Dec. Use {\em ObjectThin} to get the RA and Dec calibrated to 2MASS, and use {\em GaiaFrameCoordinate} to get the RA and Dec calibrated to Gaia astrometry.  When available and possible, if joining 2 tables and they both have the same column name like \texttt{uniquePspsXXId}, join those 2 tables using the \texttt{uniquePspsXXId}. See Table~\ref{table:uniqueuepsps} to see the \texttt{uniquePsps} column name.  \texttt{UniquePspsXXId} is designed to be unique, specifically for the cases of when there are multiple detections that are sufficiently close by, they will have the same \texttt{objID} but different \texttt{uniquePspsXXId}s.  
 
\noindent It is possible to join every detection, no matter what stage of processing it is from, back to the original exposure(s) and to the OTAs.  Figure~\ref{fig:imageidmap} shows how to do this.  For each stage of processing, there is an associated (stage)imageID that is mapped back to the \texttt{imageID} via tables of the name \texttt{(stage)ToImage}.  For example, if one wanted to find out which exposures contributed to a detection in {\em StackObjectThin}, they would join to {\em StackToImage} using the \texttt{stackImageID}.  This allows the user to find data within the database as well as to find out the corresponding images to download from MAST.

\begin{table}
\caption{Unique indicies for various PSPS tables}
\begin{center}
\begin{tabular}{cccc}
\hline
\hline
PSPS Table & uniquePspsID name & Release\\
\hline
ObjectThin & uniquePspsOBid  & DR1 \\
MeanObject & uniquePspsOBid & DR1 \\
Detection & uniquePspsP2id & DR2\\
DiffDetection  & uniquePspsDFid & DR2\\
DiffDetObject& uniquePspsDOid & DR2\\
ForcedGalaxyShape& uniquePspsFGid & DR2\\
ForcedMeanObject& uniquePspsFOid & DR1\\
ForcedMeanLensing& uniquePspsFOid & DR1\\
ForcedWarpMeasurement& uniquePspsFWid & DR2\\
ForcedWarpExtended& uniquePspsFWid & DR2\\
ForcedWarpLensing& uniquePspsFWid & DR2\\
ForcedWarpMasked& uniquePspsFWid & DR2\\
GaiaFrameCoordinate& uniquePspsGOid & DR1\\
StackObject* (2 tables)& uniquePspsSTid & DR1\\
StackApFlx* (4 tables)& uniquePspsSTid & DR1\\
StackModelFit* (4 tables)& uniquePspsSTid & DR1\\
StackPetrosian& uniquePspsSTid & DR1\\
\hline
\end{tabular}
\end{center}
\label{table:uniqueuepsps}
\end{table}%
 
\subsection{NULLS as -999}
\label{sec:schemanulls}

The PSPS uses \texttt{-999} to denote \texttt{NULL} values, as PSPS is based off of CasJobs which also does not use NULL. The justification for this is  explained at the following url: \url{http://skyserver.sdss.org/edr/en/sdss/skyserver/}.


%Some of the Flag tables are of type \texttt{BIGINT}.  Care should be taken when doing bitmask queries with a \texttt{BIGINT}. Specifically, the bitmask needs to be recast as a BIGINT to force it to be of a proper size. 

%For example, suppose one want to find {\em stack} detections in g band where the PEAK\_OFF\_CHIP bit (2147483648) is set.  

%SELECT TOP 10\texttt{ObjID}, gInfoFlag FROM StackObjectThin WHERE  ginfoFlag \& CAST(2147483648 AS BIGINT) > 0




\begin{table}
\caption{Flag types within \PS}
\begin{center}
\begin{tabular}{cccc}
\hline
\hline
Flag Type &  Size   &  Comments \\
\hline
ObjectInfoFlags & INT &  \\
ObjectQualityFlags & SMALLINT & \\
ObjectFilterFlags & INT  & \\
ImageFlags & INT & \\
ForcedGalaxyShapeFlags & SMALLINT & \\
Detection & BIGINT & \\
Detection2 & INT & \\
Detection3 & INT & \\
\hline
\end{tabular}
\end{center}
\label{table:flagtypetables}
\end{table}%


\begin{table*}
\caption{Flag columns within \PS}
\begin{center}
\begin{tabular}{cccc}
\hline
\hline
Table Name  &     Flag Column    &  Size  &   Flag Information Table \\
\hline
ObjectThin  & objectInfoFlag  &  INT          & ObjectInfoFlags \\
ObjectThin  &  qualityFlag     &   SMALLINT   &   ObjectQualityFlags \\
GaiaFrameCoordinate & gaiaFlag & INT & ObjectInfoFlags \\
MeanObject & (grizy)Flags          & INT  & ObjectFilterFlags \\
ForcedMeanObject & (grizy)Flags & INT & ObjectInfoFlags \\
DiffDetObject & objectInfoFlag & INT & ObjectInfoFlags \\
DiffDetObject & qualityFlag & SMALLINT & ObjectQualityFlags  \\
ImageMeta  & qaFlags       & INT & ImageFlags \\
ForcedGalaxyShape   & (grizy)GalFlags  & SMALLINT & ForcedGalaxyShapeFlags \\
Detection    & infoFlag  & BIGINT   & DetectionFlags \\
Detection    & infoFlag2  & INT   & DetectionFlags2 \\
Detection    & infoFlag3 & INT   & DetectionFlags3 \\
StackObjectThin    & (grizy)infoFlag  & BIGINT   & DetectionFlags \\
StackObjectThin    & (grizy)infoFlag2  & INT   & DetectionFlags2 \\
StackObjectThin    & (grizy)infoFlag3 & INT   & DetectionFlags3 \\
DiffDetection    & DinfoFlag  & BIGINT   & DetectionFlags \\
DiffDetection    & DinfoFlag2  & INT   & DetectionFlags2 \\
DiffDetection    & DinfoFlag3 & INT   & DetectionFlags3 \\
ForcedWarpMeasurement    & FinfoFlag  & BIGINT   & DetectionFlags \\
ForcedWarpMeasurement    & FinfoFlag2  & INT   & DetectionFlags2 \\
ForcedWarpMeasurement    & FinfoFlag3 & INT   & DetectionFlags3 \\
\hline
\end{tabular}
\end{center}
\label{table:flagtablestable}
\end{table*}%

\subsection{Tables and Views}
\label{sec:schemaviews}

\noindent The PSPS has defined several views to aid the user in making database queries.  A view is a virtual table that is based on the results from an SQL statement.  A view looks like a table to the user.  Table~\ref{table:views} describes the views currently in PSPS. 

\begin{table*}
\caption{Currently defined views within PSPS}
\begin{center}
\resizebox{\textwidth}{!}{
\begin{tabular}{ccc}
\hline
\hline
View Name  &  Tables used to create view\\
\hline
DetectionObjectView & ObjectThin, MeanObject, Detection\\
MeanObjectView & ObjectThin, MeanObject\\
StackObjectView & ObjectThin, StackObjectThin, StackObjectAttributes\\ 
StackApFlxObjectView & ObjectThin, StackApFlx\\ 
StackApFlxExGalUncObjectView & ObjectThin, StackApFlxExGalUnc\\
StackApFlxExGalCon6ObjectView & ObjectThin, StackApFlxExGalCon6\\
StackApFlxExGalCon8ObjectView & ObjectThin, StackApFlxExGalCon8\\
StackModelObjectView & ObjectThin, StackModelFitExp, StackModelFitDeV, StackModelFitSer, StackPetrosian\\     
StackModelFitExpObjectView & ObjectThin, StackModelFitExp\\
StackModelFitDeVObjectView & ObjectThin, StackModelFitDeV\\
StackModelFitSerObjectView& ObjectThin, StackModelFitSer\\
StackModelFitPetObjectView & ObjectThin, StackPetrosian&\\
StackObjectPrimaryView& ObjectThin,StackObjectThin,StackObjectAttributes,StackApFlx\\
DiffDetObjectView& DiffDetObject,DiffDetection\\
ForcedDetObjectView&ObjectThin,ForcedWarpMeasurement\\
ForcedMeanObjectView&ObjectThin,ForcedMeanObject\\
ForcedGalaxyModelView &ObjectThin,ForcedGalaxyShape\\
\hline
\end{tabular}}
\end{center}
\label{table:views}
\end{table*}%

\section{The $3\pi$ Database}
\label{sec:threepidatabase}

The $3\pi$ Survey is described in detail in \citet{Chambers2017}, it covers 3/4 of the sky (everything with Dec $>$ -30) in 5 bands (\grizy), with approximately 60 exposures per patch of sky. For various reasons, a very tiny fraction of the data does not make it into the PSPS database.  Some of the data will be ingested at a later time (DR2 and beyond), however some will not be ingested at all.  We present the different sources of missing data that we are aware of. This section describes the numbers of exposures that were processed in each stage, including counts for what were expected and as well as counts for known faults and quality issues. 

%\subsection{IPP Processing stages}

%{\color{red} needs more words and preface, also is it in the right place (data products for 3pi)}
%\noindent A subset of these products are to be released in DR1, and the rest will be released in DR2. These include, for DR1, unconvolved images from the {\em stack} stage for 3$\pi$.  
%DR2 will include warp images for all of the 3$\pi$ exposures.  Catalog data will be available via the PSPS database, it will include for DR1 stack measurements for unconvolved and convolved stacks, available in the {\em Stack*} tables, and mean properties from the {\em camera} stage ({\em ObjectThin} and {\em MeanObject}).  DR2 will include single exposure catalogs from the {\em camera} stage (as {\em Detection} tables), all measurements from the {\em forced photometry} stage (as {\em Forced*} tables), and all measurements from the {\em diff} stage (as {\em Diff*} tables). 

%\subsection{Known Issues with the database}
%\label{sec:knownissues}

%\noindent For various reasons, a very tiny fraction of the data does not make it into the PSPS database.  Some of the data will be ingested at a later time (DR2 and beyond), however some will not be ingested at all.  We present the different sources of missing data that we are aware of. This list is not exhaustive and will be added to at this link ( ) .


\subsubsection{IPP Processing stages}
\label{sec:3piprocessing}

All of the $3\pi$ data was reprocessed in a consistent way with the same version of IPP code, this reprocessing is called Large Area Processing (LAP), internally called Processing Version 3 (PV3).  Details of this are in \citet{Magnier2017a}. Small fractions of the raw image data were simply not processed at all, or failed at processing and were not recovered.  This can happen at various stages of processing, and we can report the expected numbers here. A deeper understanding of these inconsistencies requires further documentation and is beyond the scope of this section.

There are 388177 raw exposures taken between 2009-06-03 and 2015-02-25, that have metadata indicating that they were observed for the 3$\pi$ survey. However, only 381279 of these were queued for the first stage of processing, the {\em chip} stage.  The missing exposures were excluded because they did not meet various requirements: they were flagged by the observers to not be used, or they failed to be processed by nightly science processing because of bad seeing or camera issues or other observational or telescope conditions that can ruin an exposure. 

Of the 381279 exposures that were queued up for {\em chip} processing, 375573 completed PV3 processing with good quality: no issues detected while detrending or finding sources and performing photometry.  

The {\em camera} stage started with these 375573 exposures, of which 374521 completed processing.  The ones that did not, failed because of bad quality: no stars for astrometry analysis, failed single chip astrometry, or failed mosaic astrometry. %Of those, 374446 were ingested into the DVO. These are the number of exposures we expect to see in the PSPS after loading.

The {\em fake/warp} stages started off with a larger number of exposures than expected: 379973 instead of 374521.  This is due to the fact that the images were processed on different computing clusters, some with more computing power, which presented additional difficulties.  Of the 379973 exposures processed, 374339 are unique, 1234 are duplicates. Of the 379973, 379551 have good quality. The {\em warp} stage is the first stage that repartitions the exposures into the skycell tessellation, and since all later stages process on a skycell level rather than an exposure level, it makes sense to report that the {\em warp} stage has 206177 distinct skycells. 

The {\em stack} stage has 200730 distinct skycells, 200725 of which have good quality.  This is less than the above number 206177, because there is a declination cut on creating stacks, and {\em stacks} at declination less than the lower cut will have significantly less coverage and are not useful here.  The static sky stage stage has 200720 distinct skycells that are processed and all have good quality. The {\em skycal} stage, the final stage of {\em stack} processing, started with 200722 skycells, of which 2 were essentially duplicate {\em stacks} (same inputs, same skycells), 200684 processed with good quality data.%, 200684 are ingested into the DVO,  which is the number expected to be loaded through {\em IppToPsps} into PSPS.

The {\em stack} stages have a couple of additional inconsistencies.  First of all, of the 200684 {\em stacks} that we expect, there are 409 {\em stacks} that include duplicate exposures, i.e. the same exposure appears in a {\em stack} twice.  There are also 130 {\em stacks} with camera testing files included (short exposures, 1 second, which have been mislabeled as 3$\pi$ data and managed to get successfully processed).  These inconsistencies were discovered during the {\em IppToPsps} and PSPS phases, and will be present in the database.  Secondly, there are two {\em stack} duplicates present (i.e. two {\em stacks} for the same filter and skycell), these are also present in the PSPS. 
%{\em IppToPsps} expected to generate 200684 {\em stack} batches.  It created 200681 batches (missing 3), of those that are expected, 1940 partially loaded, and 14 failed to load into PSPS by the DR1 deadline.  These missing batches (1957) will not be included in DR1; they will be added shortly after DR1.

The {\em forced warp stages} Forced warps are queued by skycell and filter, and there are 994890 of these, resulting in 19266450 cmf files (one per exposure per skycell) in 373743 exposures and 199151 distinct skycells.   We see no inconsistencies in the numbers. There are slighltly less distinct skycells than in the stack stages. This is because there is a ragged edge at the survey limit of -30 (not consistently observed at that declination), and it made no sense to include those in forced photometry processing.

%add diff at some point

%{\color{red} I have the bulk of the information here, but I do not know the best way to organize what is missing}

%\noindent {\em Missing from ObjectThin/MeanObject}: These were loaded via OB batches, there were 116252 batches, subdivided by individual DVO files (each DVO file covers specific RA/Dec ranges).  Of the 116252 batches, 2902 batches were only partially ingested into PSPS; this represents 2.5\% of the total number of batches, and 1.2\% of the total number of objects.  The missing batch data will be released shortly after DR1.

%\noindent {\em Missing Forced Objects}: We expect 113665 {\em Forced Object} batches.  There are 7086 batches that have been partially loaded into PSPS, the rest of the batches are fully loaded.  These missing batches will not be included in DR1, they will be added shortly after DR1.

%\noindent {\em Missing from Forced Warp}: We expect 994890 {\em Forced Warp} batches. These have not yet been generated by {\em IppToPsps}, and therefore have not been loaded into PSPS. These will be released in DR2. 

%\noindent {\em Missing Forced Galaxy Objects}: We expect 113665 {\em Forced Galaxy Object} batches. These have not yet been generated by {\em IppToPsps}, and therefore have not been loaded into PSPS. These will be released in DR2. 

%\noindent {\em Missing Diff and Diff Objects}:  We expect 113665 {\em Diff Object} batches and 374521 {\em Diff} Detection batches. These have not yet been generated by {\em IppToPsps}, and therefore have not been loaded into PSPS. These will be released in DR2. 

%(or a few less) for diffs (but right now I am finding it to be higher) - 20264363 good warp skycells, 392210 good warp images... hang on... 




\subsection{Building the 3$\pi$ DVO Database}
\label{sec:building3pi}

The $3\pi$ database was built in stages, with many checks to verify all of the data was included. Full details of the construction and final calibration are in \citet{Magnier2017c}.  The $3\pi$ database contains the following counts of data for various processing stages, ordered by how they were ingested into the database:

\begin{description}
\item[stack/skycal cmf] The end product from the skycal stage produces 1 cmf file per stack skycell per filter. There are 1-5 cmfs per skycell, corresponding to different filters.  We expected 998101 skycal cmfs, in 200684 distinct skycells.  All were successfully ingested into the DVO.

\item[camera smfs] The camera stage produces 1 cmf file per exposure, with extensions for each of the 60 chips. We expected 374521 camera stage smf, of which 374446 of these were ingested with no faults.  There are 75 that repeatedly failed to be ingested in the DVO and will not be included in the PSPS. 

\item[forced warp cmfs]  The forced warp photometry stage produces many cmf files: each of the exposures that are within a given skycell will produce a cmf that is ingested into the database.  There are 19266450 of these cmf files, they come from 373743 exposures, and are in 994890 skycells. 

\item[forced warp summary cmfs] The forced warp photometry stage also produces a summary cmf of the mean properties for a given skycell and filter, based on the forced photometry results for all of the included exposures that are within a given skycell.  There are 994890 of these cmfs, in 199151 distinct skycells. There are 1-5 cmfs per skycell, corresponding to different filters.
\end{description}

Very tiny amounts of data were not ingested due to quality issues, and there are very minor duplicate issues with processing resulting in some duplicate files being ingested.  It is possible to remove those duplicates, but then the mean properties must be recalculated.  There are a small number of duplicates that were discovered in {\em ippToPsps} and PSPS, and it was not possible to remove and recalibrate them at this time.  %These are described in more detail in Section\ref{sec:knownissues}. 

%{\color{red} The diff DVO database }

\subsection{IppToPsps Stage}

IppToPsps generates batches that includes all of the smf/cmf files categorized by stage of processing, and generates batches corresponding to each DVO file.  It is straightforward to verify all the data is accounted for and has been processed through ippToPsps, and easy to regenerate missing batches. This section describes the batch types and expected numbers.

\noindent {Stacks}: {\em IppToPsps} expected to generate 200684 {\em stack} batches.  It created 200681 batches (missing 3), these can be recovered and they will be added shortly after DR1.

\noindent {\em ObjectThin/MeanObject}: {\em IppToPsps} generated all of the expected 116252 batches.

\noindent {\em GaiaFrameCoordinate}: {\em IppToPsps} generated all of the expected 116252 batches.

\noindent {\em Forced Mean Objects}: {\em IppToPsps} generated all of the expected 113665 {\em Forced Object} batches. There are less batches than for ObjectThin because it avoids the ragged edge of the survey at Dec = -30.

\noindent {\em Detection Table}: We expect 374446 {\em Detection} batches, and we are still in the process of generating them (currently at 374330), we expect to generate the missing ones for DR2.

\noindent {\em ForcedWarp Tables}: We expect 994890 {\em Forced Warp} batches. These have not yet been generated by {\em IppToPsps}, they will released in DR2.%, and therefore have not been loaded into PSPS. These will be released in DR2. 

\noindent {\em Forced Galaxy Objects}: We expect 113665 {\em Forced Galaxy Object} batches. These have not yet been generated by {\em IppToPsps}. These will be released for DR2. %, and therefore have not been loaded into PSPS. These will be released in DR2. 

%\noindent {\em Diff and Diff Objects}:  We expect 113665 {\em Diff Object} batches and 374521 {\em Diff} Detection batches. These have not yet been generated by {\em IppToPsps}, and therefore have not been loaded into PSPS. These will be released in DR2. 

\subsection{Loading into PSPS}

The PSPS database is partitioned into 32 slices, specifically chosen for the $3\pi$ database to have similar amounts of data in each slice.  Fig~\ref{fig:pspsslices} shows the different database slices for $3\pi$, and Table~\ref{table:pspsslices} describes the names of the slices and the declination ranges for each slice. 

The PSPS has loaded the tables for DR1, however there are a few inconsistencies discovered:

{\em IppToPsps} expected to generate 200684 {\em stack} batches.  It created 200681 batches (missing 3), of those that are expected, 1940 partially loaded, and 14 failed to load into PSPS by the DR1 deadline.  These missing batches (1957) will not be included in DR1; they will be added shortly after DR1.

\noindent {\em Missing from ObjectThin/MeanObject}: {\em ippToPsps} generated 116252 batches.  Of the 116252 batches, 2902 batches were only partially ingested into PSPS; this represents 2.5\% of the total number of batches, and 1.2\% of the total number of objects.  The missing batch data will be released shortly after DR1.

\noindent {\em Missing Forced Objects}: We expect 113665 {\em Forced Object} batches.  There are 7086 batches that have been partially loaded into PSPS, the rest of the batches are fully loaded.  These missing batches will not be included in DR1, they will be added shortly after DR1.




\begin{figure}
\vskip -0.2cm
\centerline{\includegraphics[width=1.1\columnwidth,angle=0]{pspsslices.pdf}}
\vskip -1.5cm
\caption{\noindent The PSPS $3\pi$ database is subdivided into 32 slices, i.e, one slice per database machine. These 32 slices have Dec boundaries defined such that each slice contains a similar amount of data. The database tables ({\em Detectio}, {\em StackObjectThin}, etc.) are composed of views combining the 32 slices.  This aspect of the database is intended to be transparent to the user, however, power users may find it useful to know how the slices are subdivided.}
\label{fig:pspsslices}
\end{figure}
%conrad calls this the ugly christmas sweater plot

\begin{table}
\caption{PSPS Dec slice boundaries}
\begin{center}
%\resizebox{.70\textwidth}{!}{
\begin{tabular}{lll}
\hline
\hline
Slice Name & Min Dec & Max Dec\\
\hline
Slice 1 &-54.82 &  -28.68\\
Slice 2 &-28.68 &  -26.41\\
Slice 3& -26.41 &  -24.12\\
Slice 4& -24.12 &  -21.88\\
Slice 5& -21.88 &  -19.55\\
Slice 6& -19.55  & -17.20\\
Slice 7 &-17.20 &  -14.78\\
Slice 8 &-14.78 &  -12.24\\
Slice 9 &-12.24 &  -9.64\\
Slice 10 &-9.64 &   -7.00\\
Slice 11 &-7.00  &  -4.29\\
Slice 12 &-4.29  &  -1.40\\
Slice 13& -1.40  &  +1.38 \\
Slice 14 & +1.38   & +4.13\\
Slice 15 &+4.13  &  +6.91\\
Slice 16& +6.91 &   +9.78\\
Slice 17& +9.78  &  +12.70\\
Slice 18 &+12.70 &  +15.72\\
Slice 19 &+15.72 &  +18.79\\
Slice 20 &+18.79 &  +21.93\\
Slice 21 & +21.93&   +25.24\\
Slice 22 &+25.24 &  +28.59\\
Slice 23 &+28.59  & +31.95\\
Slice 24 &+31.95  & +35.44 \\
Slice 25 &+35.44  & +38.98 \\
Slice 26 &+38.98 &  +42.73\\
Slice 27 &+42.73 &  +46.73\\
Slice 28  &+46.73&   +50.90\\
Slice 29 &+50.90 &  +55.41\\
Slice 30 &+55.41 &  +60.62\\
Slice 31 &+60.62 &  +67.83\\
Slice 32 &+67.83 &  +89.99\\
\hline
\end{tabular}
\end{center}
\label{table:pspsslices}
\end{table}%



\subsubsection{Queries to find holes}
\label{sec:pspsholes}

\noindent It is possible to use the PSPS database to verify data and to check there is no missing data.  The table {\em GaiaFrameCoordinate} is complete and has no missing data. It can be used to do quick integrity checks on other tables within PSPS. Finding missing objects from {\em ObjectThin} is straightforward: Do a \texttt{FULL OUTER JOIN} for {\em GaiaFrameCoordinate} and {\em ObjectThin} using \texttt{ObjID}.  Objects with a \texttt{NULL} {\em ObjectThin}.\texttt{batchID} are missing. Missing objects from {\em ForcedMeanObject} can be found in a similar way as those in {\em ObjectThin}, do a \texttt{FULL OUTER JOIN} between {\em GaiaFrameCoordinate} and {\em ForcedMeanObject}.  Objects with a NULL {\em ForcedMeanObject}.\texttt{batchID} are missing. Finding missing objects in {\em StackObjectThin} is trickier, because not all objects have {\em stack} photometry.  This requires a \texttt{FULL OUTER JOIN} on {\em StackObjectThin} to {\em ObjectThin} to {\em GaiaFrameCoordinate}.  Missing {\em stacks} will have valid {\em ObjectThin}.\texttt{raStack} and {\em ObjectThin}.\texttt{decStack} and \texttt{NULL} {\em StackObjectThin}.\texttt{objID}.


%For DR2 and beyond, we have not yet loaded the PSPS database, but we know what numbers to expect from the DVO and from IppToPsps.  We report these numbers here.

%Missing Single Exposures: We expect XXX Detection batches; XXX have been generated by IppToPsps.
%Missing Forced {\em warp} Exposures: We expect xxxx Forced Warps.  Of those, xxx have bad quality and are not ingested into the DVO database. 

%We expect 113665 Forced Galaxy batches.  {\em diffs} are unknown at this time; the {\em diff} DVO database has not yet been created. 

%Images in 3pi PV3 reprocessing were taken between 2009-06-03   and  2015-02-25 . 

\begin{table}
\caption{\noindent Expected exposure numbers in various stages of processing}
\begin{center}
%\resizebox{.70\textwidth}{!}{
\begin{tabular}{lll}
\hline
\hline
IPP stage & number queued & successful \\
\hline
raw exposures & 388177   & ...  \\
chip stage& 381279  & 375573  \\
cam stage& 375573   & 374521\\
fake/warp (exp)& 379973  & 379551 \\
fake/warp (skycells) &   & 206177 \\ 
stack & 200730     &  200725    \\ 
staticsky& 200720     & 200720      \\
skycal & 200722   & 200684 \\
fullforce&  200684      &  200684    \\
%f%orced galaxy&        &     \\
%diff &          &   \\
\hline
\end{tabular}
\end{center}
\label{table:ippcounts}
\end{table}%

\begin{table}
\caption{Expected numbers in DVO and PSPS}
\begin{center}
%\resizebox{.70\textwidth}{!}{
\begin{tabular}{lllll}
\hline
\hline
IPP stage & successfull IPP & in DVO &{\em IppToPsps}& PSPS \\
\hline
cam stage& 374521 & 374446 &  &  \\
skycal& 200684 & 200684 & 200681 & 198727 \\
fullforce& 200684 & 200684  &  not yet      &     \\
forced galaxy& 113665  &    113665  & not yet      &     \\
%diff &               &      &       &     \\
object & 116252 & 116252  & 116252 & 113350\\
gaia  &  116252 & 116252 & 116252 & 116252\\
forced object & 113665 & 113665 & 106579   \\
\hline
\end{tabular}
\end{center}
\label{table:ipptopspscounts}
\end{table}%

\section{Conclusion}
\label{sec:conclusion}
There are 10,723,304,629 objects in the database. Big database is big.
{\color{red} }

\section{Acknowledgments}

{\it Facilities:} \facility{PS1 (GPC1)}

The \PS\ Surveys (PS1) have been made possible through contributions of the Institute for Astronomy, the University of Hawaii, the \PS\ Project Office, the Max-Planck Society and its participating institutes, the Max Planck Institute for Astronomy, Heidelberg and the Max Planck Institute for Extraterrestrial Physics, Garching, The Johns Hopkins University, Durham University, the University of Edinburgh, Queen's University Belfast, the Harvard-Smithsonian Center for Astrophysics, the Las Cumbres Observatory Global Telescope Network Incorporated, the National Central University of Taiwan, the Space Telescope Science Institute, the National Aeronautics and Space Administration under Grant No. NNX08AR22G issued through the Planetary Science Division of the NASA Science Mission Directorate,  the National Science Foundation under Grant No. AST-1238877, and the University of Maryland.

This work has made use of data from the European Space Agency (ESA)
mission {\it Gaia} (\url{http://www.cosmos.esa.int/gaia}), processed by
the {\it Gaia} Data Processing and Analysis Consortium (DPAC,
\url{http://www.cosmos.esa.int/web/gaia/dpac/consortium}). Funding
for the DPAC has been provided by national institutions, in particular
the institutions participating in the {\it Gaia} Multilateral Agreement.

HF has some more acknowledgments to add but for now would especially like to thank G.Hasinger for extensive latex help, G.Narayan for magical latex ninja skills, and S.Isani (Ministry of Fonts) for checking latex for typos (he disagrees with my font choice).  

\bibliographystyle{apj}
\bibliography{main}{}

\appendix
%should I use \chapter or section in appendix? I can't get the  references to work.  
%so chapter makes appendix numbers, and section makes appendix letters.

% Do you have an idea, why the appendix is only one-column?
% no
\section{Query Examples}
\label{sec:query}

\noindent This section shows example queries for the \PS\ database. The progression will be from simple queries to more complicated queries, with a focus on queries for DR1.  Queries for DR2 will be added later.
 
%\noindent Unless otherwise specified, assume that these queries are run off of the PSI query page ({\color{red} arrrgh this needs to be updated because we aren't using psi, right? what do I do KCC? } \texttt{http:\/\/panstarrs.stsci.edu/PSI/query\_page.php} ), under 'select database' use a database that starts with 'PanSTARRS\_3PI' (this will be updated as future data releases occur), paste the query in the Query box, and select the 'slow queue'.  Set 'MyDB table for slow queue results:' to be query1, query2, etc as applicable. The progression will be from simple queries to more complicated queries, with a focus on queries for DR1 followed by queries applicable to later data releases.

SQL has no requirements on case.  We adopt the standard convention of using \texttt{CAPITAL LETTERS} for SQL reserved words and functions, and \texttt{CamelCase} for the tables and columns within the PSPS database schema.  



\begin{enumerate}
\item \textbf{Counting the number of rows in a large table}

This is an example of a simple query, it needs to be run in the slow queue. The difference between \texttt{COUNT\_BIG()} and \texttt{COUNT()} is that \texttt{COUNT\_BIG()} returns a \texttt{BIGINT}, while \texttt{COUNT()} returns an \texttt{INT}.  The PSPS tables are so large that \texttt{COUNT()}, which goes up to 2.14 billion, is too small of a number. Users should choose the method of counting rows that is appropriate for their data ranges. Unless it involves large tables and large areas of sky, \texttt{COUNT()} is recommended.

\texttt{SELECT COUNT\_BIG(objID) FROM ObjectThin}

\item \textbf{Return mean PSF magnitudes and errors for all filters (grizy) for a rectangular patch of sky}

\texttt{SELECT ObjectThin.objID, nDetections, raMean, decMean, \\
gMeanPSFMag, gMeanPSFMagErr, rMeanPSFMag, rMeanPSFMagErr, \\
iMeanPSFMag, iMeanPSFMagErr, zMeanPSFMag, zMeanPSFMagErr, \\
yMeanPSFMag, yMeanPSFMagErr \\
FROM ObjectThin \\
INNER JOIN MeanObject ON ObjectThin.objID = MeanObject.objID \\
WHERE \\
raMean > 100.0 \\ 
AND raMean < 100.1 \\
AND decMean > 0.0 \\
AND decMean <  0.1 \\
}

This returns 3869 objects. The majority of these objects have only been detected once.  

\item \textbf{Make a simple text histogram of ObjectThin.nDetections for a rectangular patch of sky}

It is possible to save queries into your own personal MyDB, as well as to make queries on your MyDB. Do the query from above, but save it to your MyDB as 'MyDBtest'. %Verify that the query is complete from the queued jobs page.  Run the following query in the fast queue, but select the Database to be 'MyDB'
Run the following query on your MyDB to make a histogram of \texttt{nDetections}.

\texttt{SELECT nDetections, COUNT(nDetections) FROM MyDBtest GROUP BY nDetections ORDER BY nDetections}

The results are ordered by \texttt{ndetections}, and it is apparent that most of the objects have 0-2 detections.  The \texttt{ndetections} column refers to the number of times something is detected from the the individual exposures.  Objects that have 0 detections are so faint that they are not visible in the individual exposures but are detected in the stacks.  Objects with 1-2 (or a few detections), might be spurious detections, moving objects, or faint objects.  If the user is interested in objects that are more likely to be well measured in several epochs and also of astrophysical nature, it is best to add a restriction on \texttt{ndetections}.  If the user is interested in the static sky, and in {\em stack} photometry, it is best to do a \texttt{JOIN} on \texttt{StackObjectThin}. See the next 2 queries for examples of each of those types of queries.

\item \textbf{Select mean PSF magnitudes and errors for filters griyz and for a rectangular patch of sky, with a restriction of $>$ 10 \texttt{nDetections}}

This is an example of a query to get mean PSF magnitudes and errors for all filters in a rectangular patch of sky, for objects with $>$ 10 \texttt{nDetections}. The reason we chose 10 detections is somewhat arbitrary, and can be adjusted, but is used primarily to cut out objects for which there are only a few detections. Objects with very few detections might not be astrophysical, or they might be too faint to be seen multiple times.

\texttt{SELECT ObjectThin.objID, raMean,decMean, \\
gMeanPSFMag, gMeanPSFMagErr, rMeanPSFMag, rMeanPSFMagErr, \\
iMeanPSFMag, iMeanPSFMagErr, zMeanPSFMag, zMeanPSFMagErr, \\
yMeanPSFMag, yMeanPSFMagErr \\
FROM ObjectThin \\
INNER JOIN MeanObject ON ObjectThin.objID = MeanObject.objID \\
WHERE\\
nDetections > 10 \\
AND raMean >100.0 \\ 
AND raMean < 100.1 \\
AND decMean > 0.0 \\
AND decMean <  0.1 
}

This returns 748 objects, a significant reduction from the 3869 on the previous query. 

\item \textbf{Select {\em stack} PSF magnitudes for all filters for a rectangular patch of sky}

This is an example of a query to get {\em stack} PSF magnitudes for the same rectangular patch of sky. No restrictions on \texttt{nDetections} is necessary, the expectation is that sources on {\em stacks} are more likely to be astrophysical.

\texttt{SELECT ObjectThin.objID, raStack, decStack, \\
gPSFMag, gPSFMagErr, rPSFMag, rPSFMagErr,iPSFMag, iPSFMagErr, \\ 
zPSFMag, zPSFMagErr, yPSFMag, yPSFMagErr \\
FROM ObjectThin \\
INNER JOIN StackObjectThin ON ObjectThin.objID = StackObjectThin.objID \\
WHERE raMean >100.0 \\
AND raMean < 100.1 \\
AND decMean > 0.0 \\
AND decMean <  0.1 \\
}

This returns 1808 objects. 

\item \textbf{An example of finding rows with \texttt{NULL} values, using \texttt{TOP} to limit results}

The PSPS uses \texttt{-999} to denote \texttt{NULL} values. The following query returns some objects that are detected in single exposures but not in the stacks. The numbers are limited by TOP to return the first 10 rows.

%{\color{red} its's tested and all is good}
\texttt{
SELECT TOP 10 \\
objectThin.objID, raMean, decMean, raStack, decStack, \\
nDetections, ng, nr, ni, nz, ny, imeanpsfmag \\
FROM objectThin \\
JOIN MeanObject on objectThin.objID = meanObject.objid \\
WHERE raStack = -999\\
}

\item \textbf{Basic search using \texttt{BETWEEN} to limit ranges}
 
Similar to the query above, except uses \texttt{BETWEEN} to limit RA and Dec ranges as well as iPSFMag ranges.

\texttt{
SELECT ObjectThin.objID, raStack, decStack, \\
gPSFMag, gPSFMagErr, rPSFMag, rPSFMagErr,iPSFMag, iPSFMagErr, \\ 
zPSFMag, zPSFMagErr, yPSFMag, yPSFMagErr \\
FROM ObjectThin \\
INNER JOIN StackObjectThin ON ObjectThin.objID = StackObjectThin.objID \\
WHERE raMean BETWEEN 100.0 AND 100.1\\
AND decMean  BETWEEN 0.0 AND 0.1  \\
AND iPSFMag  BETWEEN 18.0 AND 21.0  \\
}

\item \textbf{Using built in functions to do a box search}

ObjectThin contains Hierarchical triangular mesh information, making it possible to use the built in function dbo.fGetObjFromRectEq(minra, mindec, maxra, maxdec) to do a rectangular search. Tables which have htm, cx,cy, cz can use this built in function.

\texttt{
SELECT o.objID, o.raMean, o.decMean\\
FROM ObjectThin o, dbo.fGetObjFromRectEq(56.65, 23.92, 57.05, 24.32) r\\
WHERE p.objID = r.objID \\
}

\item \textbf{Using build in functions to do a cone search}

ObjectThin contains Hierarchical triangular mesh information, making it possible to use the built in function dbo.fGetNearbyObjEq(ra, dec, conesize(deg)) to do a radial search for objects near a given ra and dec (cone search). Tables which have htm, cx,cy, cz can use this built in function.

\texttt{
SELECT o.objID, raMean, decMean, gPSFMag, gPSFMagErr\\
FROM ObjectThin o, dbo.fGetNearbyObjEq(56.85 , 24.12, 0.2) n\\
WHERE o.objID = n.objID \\
}
%\item \textbf{Different kinds of joins}

%SQL Server INNER JOIN (or sometimes called simple join)
%SQL Server LEFT OUTER JOIN (or sometimes called LEFT JOIN)
%SQL Server RIGHT OUTER JOIN (or sometimes called RIGHT JOIN)
%SQL Server FULL OUTER JOIN (or sometimes called FULL JOIN)

%\item selection of random rows using rand() 

%\item selection of random rows using randomId

%\item group by 

%\item order by 

%\item Using Multiple Joins to get {\em stack} information

%\item flag methods

%\item {\color{red} query to download the catalog (stacks) EAM / KCC}
 
%\item {\color{red} query to download the catalog (mean) EAM / KCC}


%\item \textbf{Extracting a light curve for an object with a known \texttt{ObjID} using the Detection table(DR2)}

%The detection table has the measurements for the single epoch images.  Searching by the \texttt{ObjID} is the fastest method to return a lightcurve.

%{\color{red}(TEST XXX)}

%\texttt{SELECT filterID, obstime, expTime, zp, psfFlux, psfFluxErr, infoFlag, infoFlag2, infoFlag3 FROM Detection WHERE ObjID = (number XXX ) 
%}

%\item extracting a light curve for an object by RA and Dec using the Detection table (DR2)

%If the \texttt{ObjID} of the object is not know, it is necessary to do a join on {\em ObjectThin} to search by RA and Dec.  This method is much slower than to search by the \texttt{ObjID}.

%\item extracting a light curve for an object  with a known \texttt{ObjID} using the {\em ForcedWarpMeasurement} table(DR2)

%\item extracting a light curve for an object by RA and Dec using the {\em ForcedWarpMeasurement} table (DR2)

%\item extracting a light curve for an object  with a known \texttt{ObjID} using the {\em DiffDetection} table(DR2)

%\item extracting a light curve for an object by RA and Dec using the {\em DiffDetection} table (DR2)

\end{enumerate}

%\end{document}

%1.3.3.1 Choosing the appropriate photometric measurement
%1.3.3.1.1 chip,stack,warp
%1.3.3.1.2 psf, kron, etc
%1.3.3.2 Cone search
%1.3.3.3 complex extraction
%1.3.3.4 SQL quick guide 
%1.3.3.5 CAS Jobs


%HAF taken out for now, becus not even attempted at being flshed out
%\section{Glossary}
%\label{sec:glossary}

%\begin{description}

%\item[chip]  refers to either one of the 60 OTAs that makes up the gigapixel camera, or to the stage of processing within IPP which does basic astrometry and photometry on 

%\item[detrend] depends on the use. Detrends in general refer to flats / biases / darks etc necessary to correct raw images.  Detrending is the process to remove effects from flats/ biases / darks etc from raw science images.  Detrended images are the images that have been corrected with flats/ biases/ darks/ etc. 

%\item[forced photometry ]

%\item[forced warp]

%\item[skycell]

%\item[stack] 

%\item[ubercal]

%\item[warp]

%\item[cmf/smf files]

%\end{description}

\section{Acronyms}
\label{sec:acronyms}

\begin{description}

\item[3pi or 3$\pi$] Three Pi Survey. This survey covers 3 pi steradians of the sky (3/4 of the sky), everything with declination greater than -30 degrees.


\item[DR1]  Data Release 1.  Covers 3$\pi$ data release for ObjectThin, MeanObject, Stack*, ForcedMean* and related metadata tables. Covers the static sky.

\item[DR2]  Data Release 2. 3$\pi$ data release of time domain tables, including Detection, ForcedWarp*, Diff* and related metadata.

\item[DVO]  Desktop Virtual Observatory - written by Eugene Mangier, IPP uses this to store and manipulate catalog data. 

\item[GPC1]  Giga Pixel Camera 1.  This is the name of the camera that is part of the \PS\ telescope.  1.4 gigapixels, and sees 7 square degrees per exposure.  It is made up of 60 orthogonal transfer arrays (OTA), each with 64 cells per OTA.  

\item[IPP]  Image Processing Pipeline.  Code developed to process and manage all aspects of \PS processing, starting from downloading the images to the summit to generating data in the final database schema form.

\item[MD]  Short for Medium Deep fields. A set of 10 fields, each of which is 7 square degrees, observed at a high cadence primarily to be used for searches for transient objects.  These will be released at a later time.

\item[MOPS]  Short for Medium Deep fields. A set of 10 fields, each of which is 7 square degrees, observed at a high cadence primarily to be used for searches for transient objects.  These will be released at a later time.

\item[OTA]  orthogonal transfer array, the name of the devices that make up the GPC1 camera

\item[PSI]  Pan-STARRS1 Science interface. The interface used by consortium members to access earlier versions of the data.

\item[PSPS]  Published Science Products Subsystem - the \PS\ databases

%\item[PSVO]  \PS\ Virtual Observatory - one of several ways to access the \PS\ databases, see (link xxx) for details.  Uses a TopCat front end.

\item[PV3]  Processing Version 3, refers to the processing / code iteration, this is the processing version of the first public \PS data release (covers DR1-DR2).

\end{description}

\section{Flag Tables}
\label{sec:FlagTables}

There are 8 different classes of Flag tables for the database schema.  This section lists the different flags as well as their descriptions.  See \ref{sec:schemaflagsbitmasks} for more details on flags and bitmasks, and \ref{sec:query} for some example queries. 

\begin{description}
\item[ObjectInfoFlags] Describes the flags used for: ObjectThin.objectInfoFlag, GaiaFrameCoordinate.gaiaFlag, DiffDetObject.objectInfoFlag, ForcedMeanObject.gFlag, ForcedMeanObject.rFlag, ForcedMeanObject.iFlag, ForcedMeanObject.zFlag, ForcedMeanObject.yFlag.
See Table~\ref{table:objectinfoflags}


\item[ObjectQualityFlags] Describes the flags used for: ObjectThin.qualityFlag, DiffDetObject.qualityFlag.
See Table~\ref{table:objectqualityflags}


\item[ObjectFilterFlags] Describes the flags used for: MeanObject.gFlags, MeanObject.rFlags, MeanObject.iFlags, MeanObject.zFlags, MeanObject.yFlags.
See Table~\ref{table:objectfilterflags}

\item[ImageFlags] Describes the flags used for: ImageMeta.qaFlags.
See Table~\ref{table:imageflags}

\item[DetectionFlags] Describes the flags used for: Detection.infoFlag, StackObjectThin.ginfoFlag, StackObjectThin.rinfoFlag , StackObjectThin.iinfoFlag, StackObjectThin.zinfoFlag, StackObjectThin.yinfoFlag, DiffDetection.DinfoFlag, ForcedWarpMeasurement.FinfoFlag.
See Table~\ref{table:detectionflags}

\item[DetectionFlags2] Describes the flags used for: Detection.infoFlag2, StackObjectThin.ginfoFlag2, StackObjectThin.rinfoFlag2 , StackObjectThin.iinfoFlag2, StackObjectThin.zinfoFlag2, StackObjectThin.yinfoFlag2,  DiffDetection.DinfoFlag2,ForcedWarpMeasurement.FinfoFlag2.
See Table~\ref{table:detectionflags2}

\item[DetectionFlags3] Describes the flags used for: Detection.infoFlag3, StackObjectThin.ginfoFlag3, StackObjectThin.rinfoFlag3 , StackObjectThin.iinfoFlag3, StackObjectThin.zinfoFlag3, StackObjectThin.yinfoFlag3,  DiffDetection.DinfoFlag3,ForcedWarpMeasurement.FinfoFlag3.
See Table~\ref{table:detectionflags3}

\item[ForcedGalaxyShapeFlags] Describes the flags used for: ForcedGalaxyShape.gGalFlags, ForcedGalaxyShape.rGalFlags, ForcedGalaxyShape.iGalFlags, ForcedGalaxyShape.zGalFlags, ForcedGalaxyShape.yGalFlags. 
See Table~\ref{table:forcedgalaxyshapeflags}

\end{description}
 
\begin{table}
\caption{ObjectInfoFlags}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llll}
\hline
\hline
Name & Hexadecimal & Value & Description \\
\hline
DEFAULT & 0x00000000 & 0 & Initial value; resets all bits. \\
FEW&0x00000001&1&Used within relphot; skip star.\\
POOR&0x00000002&2&Used within relphot; skip star.\\
ICRF\_QSO&0x00000004&4&object IDed with known ICRF quasar (may have ICRF position measurement)\\
OTHEF\_QSO&0x00000008&8&identified as likely QSO (Hernitschek et al 2015); without ICRF reference data\\
TRANSIENT&0x00000010&16&identified as a non-periodic (stationary) transient\\
VARIABLE&0x00000020&32&identified as a periodic variable\\
RRLYRA&0x00000040&64&identified as likely RR Lyra (Hernitschek et al 2015)\\
HAS\_SOLSYS\_DET&0x00000080&128&identified with a known solar-system object (asteroid or other)\\
ALL\_SOLSYS\_DET&0x00000100&256&identified with a known solar-system object (asteroid or other)\\
UNDEF\_1&0x00000200&512&Unused bit value.\\
UNDEF\_2&0x00000400&1024&Unused bit value.\\
LARGE\_PM&0x00000800&2048&star with large proper motion\\
RAW\_AVE&0x00001000&4096&simple weighted average position was used (no IRLS fitting)\\
FIT\_AVE&0x00002000&8192&average position was fitted\\
FIT\_PM&0x00004000&16384&proper motion model was fitted\\
FIT\_PAR&0x00008000&32768&parallax model was fitted\\
USE\_AVE&0x00010000&65536&average position used (not PM or PAR)\\
USE\_PM&0x00020000&131072&proper motion used (not AVE or PAR)\\
USE\_PAR&0x00040000&262144&parallax used (not AVE or PM)\\
NO\_MEAN\_ASTROM&0x00080000&524288&mean astrometry could not be measured\\
STACK\_FOR\_MEAN&0x00100000&1048576&stack position used for mean astrometry\\
MEAN\_FOR\_STACK&0x00200000&2097152&mean astrometry used for {\em stack} position\\
BAD\_PM&0x00400000&4194304&failure to measure proper-motion model\\
EXT&0x00800000&8388608&extended in our data (eg; PS)\\
EXT\_ALT&0x01000000&16777216&extended in external data (eg; 2MASS)\\
GOOD&0x02000000&33554432&good-quality measurement in our data (eg; PS)\\
GOOD\_ALT&0x04000000&67108864&good-quality measurement in  external data (eg; 2MASS)\\
GOOD\_STACK&0x08000000&134217728&good-quality object in the {\em stack} ($>$ 1 good stack)\\
BEST\_STACK&0x10000000&268435456&the primary {\em stack} measurement are the best measurements\\
SUSPECT\_STACK&0x20000000&536870912&suspect object in the {\em stack} ($>$ 1 good or suspect stack; less than 2 good)\\
BAD\_STACK&0x40000000&1073741824&good-quality object in the {\em stack} ($>$ 1 good stack)\\
\hline
\end{tabular}}
\end{center}
\label{table:objectinfoflags}
\end{table}%

\begin{table}
\caption{ObjectQualityFlags}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llll}
\hline
\hline
Name & Hexadecimal & Value & Description \\
\hline
DEFAULT&0x00000000&0&Initial value; resets all bits. \\
QF\_OBJ\_EXT&0x00000001&1&Extended in our data (eg; PS). \\
QF\_OBJ\_EXT\_ALT&0x00000002&2&Extended in external data (eg; 2MASS). \\
QF\_OBJ\_GOOD&0x00000004&4&Good-quality measurement in our data (eg;PS). \\
QF\_OBJ\_GOOD\_ALT&0x00000008&8&Good-quality measurement in  external data (eg; 2MASS). \\
QF\_OBJ\_GOOD\_STACK&0x00000010&16&Good-quality object in the {\em stack} ($>$ 1 good stack). \\
QF\_OBJ\_SUSPECT\_STACK&0x00000020&32&Suspect object in the {\em stack} ($>$ 1 good or suspect stack; less than 2 good). \\
QF\_OBJ\_BAD\_STACK&0x00000040&64&Good-quality object in the {\em stack} ($>$ 1 good stack). \\

\hline
\end{tabular}}
\end{center}
\label{table:objectqualityflags}
\end{table}%


\begin{table}
\caption{ObjectFilterFlags}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llll}
\hline
\hline
Name & Hexadecimal & Value & Description \\
\hline
DEFAULT&0x00000000&0&Initial value; resets all bits.\\
SECF\_STAR\_FEW&0x00000001&1&Used within relphot: skip star.\\
SECF\_STAR\_POOR&0x00000002&2&Used within relphot: skip star.\\
SECF\_USE\_SYNTH&0x00000004&4&Synthetic photometry used in average measurement.\\
SECF\_USE\_UBERCAL&0x00000008&8&Ubercal photometry used in average measurement.\\
SECF\_HAS\_PS1&0x00000010&16&PS1 photometry used in average measurement.\\
SECF\_HAS\_STACK&0x00000020&32&PS1 {\em stack} photometry exists.\\
SECF\_HAS\_TYCHO&0x00000040&64&Tycho photometry used for synthetic magnitudes.\\
SECF\_FIX\_SYNTH&0x00000080&128&Synthetic magnitudes repaired with zeropoint map.\\
PHOTOM\_PASS\_0&0x00000100&256&Average magnitude calculated in 0th pass.\\
PHOTOM\_PASS\_1&0x00000200&512&Average magnitude calculated in 1th pass.\\
PHOTOM\_PASS\_2&0x00000400&1024&Average magnitude calculated in 2th pass.\\
PHOTOM\_PASS\_3&0x00000800&2048&Average magnitude calculated in 3th pass.\\
PHOTOM\_PASS\_4&0x00001000&4096&Average magnitude calculated in 4th pass.\\
PSPS\_OBJ\_EXT&0x00002000&8192&Extended in this band (PSPS only).\\
SECF\_STACK\_PRIMARY&0x00004000&16384&PS1 {\em stack} photometry comes from primary skycell.\\
\hline
\end{tabular}}
\end{center}
\label{table:objectfilterflags}
\end{table}%


\begin{table}
\caption{ImageFlags}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llll}
\hline
\hline
Name & Hexadecimal & Value & Description \\
\hline
NEW&0x00000000&0&No relphot / relastro attempted. \\
NOCAL&0x00000001&1&Used within relphot to mean 'don't apply fit'. \\
POOR&0x00000002&2&Relphot says image is bad. \\
SKIP&0x00000004&4&External information image is bad. \\
FEW&0x00000008&8&Currently too few measurements for good value. \\
\hline
\end{tabular}}
\end{center}
\label{table:imageflags}
\end{table}%

\begin{table}
\caption{ForcedGalaxyShapeFlags}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llll}
\hline
\hline
Name & Hexadecimal & Value & Description \\
\hline
NO\_ERROR&0x00000000&0&No error condition raised. \\
FAIL\_FIT&0x00000001&1&fit failed to converge or was degenerate \\
TOO\_FEW&0x00000002&2&not enough points to fit the model \\
OUT\_OF\_RANGE&0x00000004&4&fit minimum too far outside data range \\
BAD\_ERROR&0x00000008&8&invalid size error (nan or inf) \\
\hline
\end{tabular}}
\end{center}
\label{table:forcedgalaxyshapeflags}
\end{table}%


\begin{table}
\caption{DetectionFlags}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llll}
\hline
\hline
Name & Hexadecimal & Value & Description \\
\hline
DEFAULT&0x00000000&0&Initial value; resets all bits.\\
PSFMODEL&0x00000001&1&Source fitted with a psf model (linear or non-linear).\\
EXTMODEL&0x00000002&2&Source fitted with an extended-source model.\\
FITTED&0x00000004&4&Source fitted with non-linear model (PSF or EXT; good or bad).\\
FAIL&0x00000008&8&Fit (non-linear) failed (non-converge; off-edge; run to zero).\\
POOR&0x00000010&16&Fit succeeds; but low-S/N; high-Chisq; or large (for PSF -- drop?).\\
PAIR&0x00000020&32&Source fitted with a double PSF.\\
PSFSTAR&0x00000040&64&Source used to define PSF model.\\
SATSTAR&0x00000080&128&Source model peak is above saturation.\\
BLEND&0x00000100&256&Source is a blend with other sources.\\
EXTERNAL&0x00000200&512&Source based on supplied input position.\\
BADPSF&0x00000400&1024&Failed to get good estimate of object's PSF.\\
DEFECT&0x00000800&2048&Source is thought to be a defect.\\
SATURATED&0x00001000&4096&Source is thought to be saturated pixels (bleed trail).\\
CR\_LIMIT&0x00002000&8192&Source has crNsigma above limit.\\
EXT\_LIMIT&0x00004000&16384&Source has extNsigma above limit.\\
MOMENTS\_FAILURE&0x00008000&32768&Could not measure the moments.\\
SKY\_FAILURE&0x00010000&65536&Could not measure the local sky.\\
SKYVAR\_FAILURE&0x00020000&131072&Could not measure the local sky variance.\\
BELOW\_MOMENTS\_SN&0x00040000&262144&Moments not measured due to low S/N.\\
UNDEF\_1&0x00080000&524288&Unused bit value.\\
BIG\_RADIUS&0x00100000&1048576&Poor moments for small radius; try large radius.\\
AP\_MAGS&0x00200000&2097152&Source has an aperture magnitude.\\
BLEND\_FIT&0x00400000&4194304&Source was fitted as a blend.\\
EXTENDED\_FIT&0x00800000&8388608&Full extended fit was used.\\
EXTENDED\_STATS&0x01000000&16777216&Extended aperture stats calculated.\\
LINEAR\_FIT&0x02000000&33554432&Source fitted with the linear fit.\\
NONLINEAR\_FIT&0x04000000&67108864&Source fitted with the non-linear fit.\\
RADIAL\_FLUX&0x08000000&134217728&Radial flux measurements calculated.\\
SIZE\_SKIPPED&0x10000000&268435456&Size could not be determined.\\
PEAK\_ON\_SPIKE&0x20000000&536870912&Peak lands on diffraction spike.\\
PEAK\_ON\_GHOST&0x40000000&1073741824&Peak lands on ghost or glint.\\
PEAK\_OFF\_CHIP&0x80000000&2147483648&Peak lands off edge of chip.\\
\hline
\end{tabular}}
\end{center}
\label{table:detectionflags}
\end{table}%


\begin{table}
\caption{DetectionFlags2}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llll}
\hline
\hline
Name & Hexadecimal & Value & Description \\
\hline
DEFAULT&0x00000000&0&Initial value; resets all bits.\\
DIFF\_WITH\_SINGLE&0x00000001&1&Difference source matched to a single positive detection.\\
DIFF\_WITH\_DOUBLE&0x00000002&2&Difference source matched to positive detections in both images.\\
MATCHED&0x00000004&4&Difference source matched to positive detections in both images.\\
ON\_SPIKE&0x00000008&8&More than 25\% of (PSF-weighted) pixels land on diffraction spike.\\
ON\_STARCORE&0x00000010&16&More than 25\% of (PSF-weighted) pixels land on starcore.\\
ON\_BURNTOOL&0x00000020&32&More than 25\% of (PSF-weighted) pixels land on burntool.\\
ON\_CONVPOOR&0x00000040&64&More than 25\% of (PSF-weighted) pixels land on convpoor.\\
PASS1\_SRC&0x00000080&128&Source detected in first pass analysis\\
HAS\_BRIGHTER\_NEIGHBOR&0x00000100&256&Peak is not the brightest in its footprint\\
BRIGHT\_NEIGHBOR\_1&0x00000200&512& Flux\_negative $/$ ($r^2$ flux\_positive) $>$  1.\\
BRIGHT\_NEIGHBOR\_10&0x00000400&1024&Flux\_negative $/$ ($r^2$ flux\_positive) $ >$ 10.\\
DIFF\_SELF\_MATCH&0x00000800&2048&Positive detection match is probably this source.\\
SATSTAR\_PROFILE&0x00001000&4096&Saturated source is modeled with a radial profile.\\
ECONTOUR\_FEW\_PTS&0x00002000&8192&Too few points to measure the elliptical contour.\\
RADBIN\_NAN\_CENTER&0x00004000&16384&Radial bins failed with too many NaN center bin.\\
PETRO\_NAN\_CENTER&0x00008000&32768&Petrosian (1976) radial bins failed with too many NaN center bin.\\
PETRO\_NO\_PROFILE&0x00010000&65536&Petrosian (1976) not built becaues radial bins missing.\\
PETRO\_INSIG\_RATIO&0x00020000&131072&Insignificant measurement of Petrosian (1976) ratio.\\
PETRO\_RATIO\_ZEROBIN&0x00040000&262144&Petrosian (1976) ratio in the 0th bin (likely bad).\\
EXT\_FITS\_RUN&0x00080000&524288&Attempted to run extended fits on this source.\\
EXT\_FITS\_FAIL&0x00100000&1048576&At least one of the model fits failed.\\
EXT\_FITS\_RETRY&0x00200000&2097152&One of the model fits was retried with new window.\\
EXT\_FITS\_NONE&0x00400000&4194304&All of the model fits failed. \\
\hline
\end{tabular}}
\end{center}
\label{table:detectionflags2}
\end{table}%

\begin{table}
\caption{DetectionFlags3}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llll}
\hline
\hline
Name & Hexadecimal & Value & Description \\
\hline
DEFAULT&0x00000000&0&Initial value; resets all bits.\\
NOCAL&0x00000001&1&Detection ignored for this analysis (photcode; time range) -- internal only.\\
POOR\_PHOTOM&0x00000002&2&Detection is photometry outlier.\\
SKIP\_PHOTOM&0x00000004&4&Detection was ignored for photometry measurement.\\
AREA&0x00000008&8&Detection near image edge.\\
POOR\_ASTROM&0x00000010&16&Detection is astrometry outlier.\\
SKIP\_ASTROM&0x00000020&32&Detection was ignored for astrometry measurement.\\
USED\_OBJ&0x00000040&64&Detection was used during update objects\\
USED\_CHIP&0x00000080&128&Detection was used during update chips.\\
BLEND\_MEAS&0x00000100&256&Detection is within radius of multiple objects.\\
BLEND\_OBJ&0x00000200&512&Multiple detections within radius of object.\\
WARP\_USED&0x00000400&1024&Measurement used to find mean {\em warp} photometry.\\
UNDEF\_4&0x00000800&2048&Unused bit value.\\
BLEND\_MEAS\_X&0x00001000&4096&Detection is within radius of multiple objects across catalogs.\\
ARTIFACT&0x00002000&8192&Detection is thought to be non-astronomical.\\
SYNTH\_MAG&0x00004000&16384&Magnitude is synthetic.\\
PHOTOM\_UBERCAL&0x00008000&32768&Externally-supplied zero point from ubercal analysis.\\
STACK\_PRIMARY&0x00010000&65536&This {\em stack} measurement is in the primary skycell.\\
STACK\_PHOT\_SRC&0x00020000&131072&This measurement supplied the {\em stack} photometry.\\
ICRF\_QSO&0x00040000&262144&This measurement is an ICRF reference position.\\
IMAGE\_EPOCH&0x00080000&524288&This measurement is registered to the image epoch (not tied to the reference catalog epoch).\\
PHOTOM\_PSF&0x00100000&1048576&This measurement is used for the mean PSF magnitude.\\
PHOTOM\_APER&0x00200000&2097152&This measurement is used for the mean aperture magnitude.\\
PHOTOM\_KRON&0x00400000&4194304&This measurement is used for the mean Kron (1980) magnitude.\\
\hline
\end{tabular}}
\end{center}
\label{table:detectionflags3}
\end{table}%

%removing this section

%\section{System Metadata Tables}
%\label{sec:systemmetadatatables}
%The system metadata tables are small and fixed.  To aid the user, we include them in the appendix. They can also be queried for directly in the database via \texttt{SELECT * FROM (tablename)}.


%\begin{itemize}
%\item Filter
%\item FitModel
%%\item Survey
%\item PhotoCal
%\item StackType
%\item DiffType
%\item TessellationType
%\end{itemize}


\begin{table}
\caption{Filter}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{ll}
\hline
\hline
FilterID & Filter \\
\hline
1 & g\\
2 & r\\
3 &  i\\
4 & z\\
5 & y\\
\hline
\end{tabular}
\end{center}
\label{table:filters}
\end{table}%

%setting aside for now
%\begin{table}
%\caption{FitModel}
%\begin{center}
%%\resizebox{\textwidth}{!}{%
%\begin{tabular}{lllllllllllll}
%\hline
%\hline
%fitModelID&name&description&param1&param2&param3&param4&param5&param6&param7&param8&param9&param10\\
%\hline
%0&PS\_MODEL\_GAUSS&Gaussian Profile&local sky&Io (normalization)&X position&Y position&Sigma\_XX&Sigma\_YY&Sigma\_XY&-999&-999&-999\\
%1&PS\_MODEL\_PGAUSS&Pseudo-Gaussian Profile (Waussian)&local sky&Io (normalization)&X position&Y position&Sigma\_XX&Sigma\_YY&Sigma\_XY&-999&-999&-999\\
%2&PS\_MODEL\_QGAUSS&Power-law with $r^{4.5}$&local sky&Io (normalization)&X position&Y position&Sigma\_XX&Sigma\_YY&Sigma\_XY&k (core scale)&-999&-999\\
%3&PS\_MODEL\_PS1\_V1&Power-law with $r^{3.33}$&local sky&Io (normalization)&X position&Y position&Sigma\_XX&Sigma\_YY&Sigma\_XY&k (core scale)&-999&-999\\
%4&PS\_MODEL\_RGAUSS&Power-law with fitted radial exponent&local sky&Io (normalization)&X position&Y position&Sigma\_XX&Sigma\_YY&Sigma\_XY&power-law slope&-999&-999\\
%5&PS\_MODEL\_SERSIC&\citet{Sersic1963} Galaxy Model Fit&local sky&Io (normalization)&X position&Y position&Sigma\_XX&Sigma\_YY&Sigma\_XY&Sersic index&-999&-999\\
%6&PS\_MODEL\_EXP&Exponential Galaxy Model&local sky&Io (normalization)&X position&Y position&Sigma\_XX&Sigma\_YY&Sigma\_XY&-999&-999&-999\\
%7&PS\_MODEL\_DEV&deVaucouleur (1948) Galaxy Model Fit&local sky&Io (normalization)&X position&Y position&Sigma\_XX&Sigma\_YY&Sigma\_XY&-999&-999&-999\\
%8&PS\_MODEL\_TRAIL&Trailed Asteroid Fit&local sky&Io (normalization)&X position&Y position&Length&position angle&PSF sigma&-999&-999&-999\\
%\hline
%\end{tabular}}
%\end{center}
%\label{table:psmodel}
%\end{table}%


%% HAF removing this for now, MH suggests it's not useful
%\begin{table}
%\caption{Survey}
%\begin{center}
%\resizebox{\textwidth}{!}{%
%\begin{tabular}{lll}
%\hline
%\hline
%surveyID&name&description\\
%\hline
%0&3PI&PS1 3PI Survey\\
%1&MD01&PS1 MD01 XMM-LSS-DXS 022224-043000\\
%2&MD02&PS1 MD02 CDFS/GOODS/GEMS 033224-274800\\
%3&MD03&PS1 MD03 IFA/Lynx 084300+444000\\
%4&MD04&PS1 MD04 COSMOS 100000+021200\\
%5&MD05&PS1 MD05 Lockman-DXS 110000+570000\\
%6&MD06&PS1 MD06 NGC 4258 121857+471814\\
%7&MD07&PS1 MD07 VISTA-Video1 140000+050000\\
%8&MD08&PS1 MD08 EliasN1-DXS 160000+570000\\
%9&MD09&PS1 MD09 Vimos4-DXS-SSA 220000+003000\\
%10&MD10&PS1 MD10 Deep2 233000+000000\\
%11&M31&PS1 M31 Andromeda 004242+411600\\
%12&STS1&PS1 STS1 Outskirts of Bulge 195048+170339\\
%13&CAL01&PS1 Cal North Pole 000000+900000\\
%14&CAL02&PS1 Cal SA92 Dense Landolt Std Field 005808+004232\\
%15&CAL03&PS1 Cal Perseus Cluster / Abell 426 031900+413300\\
%16&CAL04&PS1 Cal SA95 Dense Landolt Std Field 065207+001710\\
%17&CAL05&PS1 Cal Taurus dark cloud (diverse extinction) 043000+250000\\
%18&CAL06&PS1 Cal SA98 Densle Landolt Std Field 065207+001710\\
%19&CAL07&PS1 Cal M81-M82-HolmIX (Local Group) 095640+692200\\
%20&CAL08&PS1 Cal Virgo Cluster (Center) 123000+130000\\
%21&CAL09&PS1 Cal Hercules Cluster (Center) 160508+1745+28\\
%22&CAL10&PS1 Cal M17-M24 Region 181400+000544\\
%23&CAL11&PS1 Cal SA110 Dense Landolt Std Field 184207+000544\\
%24&CAL12&PS1 Cal Kepler Mission Astrometric field 192240+443000\\
%25&CAL13&PS1 Cal 3C454.1 (Northern field) 225033+712919\\
%26&STS2&PS1 STS2 Hyades 004000+150000\\
%27&STS3&PS1 STS3 Praesepe 083000+200000\\
%28&SSS&PS1 Solar System Sweet Spot Survey\\
%29&CNP&PS1 Celestial North Pole Survey\\
%30&SAS&PS1 SAS\\
%254&UNK&PS1 undefined\\
%\hline
%\end{tabular}
%\end{center}
%\label{table:surveys}
%\end{table}%



%% HAF removing this for now, MH suggests its not usefule
%\begin{table}
%\caption{Photcal: this is a truncated version of the table. Photcodes 10001-10476 contain entries for each of the 64 OTAs. The information is the same, the only thing that changes is the photoCalID and the filterID, it follows the form of photoCalID = 100(XY), filterID = GPC1.g.XY(XY) where (XY) is the OTA number. See Chambers et. al. 2016 for more information.}
%\begin{center}
%\resizebox{\textwidth}{!}{%
%\begin{tabular}{lllllllllll}
%\hline
%\hline
%(a)&(b)&(c)&(d)&(e)&(f)&(g)&(h)&(i)&(j)&(k)\\
%\hline
%10001&1&GPC1.g.XY01&0&24.58&-0.15&0&0&0&0&54000 \\
%.... &1& .... &0&24.58&-0.15&0&0&0&0&54000\\
%10076&1&GPC1.g.XY76&0&24.58&-0.15&0&0&0&0&54000 \\
%10101&2&GPC1.r.XY01&0&24.8&-0.1&0&0&0&0&54000 \\
%....&2& .... &0&24.8&-0.1&0&0&0&0&54000 \\
%10176&2&GPC1.r.XY76&0&24.8&-0.1&0&0&0&0&54000 \\
%10201&3&GPC1.i.XY01&0&24.74&-0.04&0&0&0&0&54000 \\
%....&3&....&0&24.74&-0.04&0&0&0&0&54000 \\
%10276&3&GPC1.i.XY76&0&24.74&-0.04&0&0&0&0&54000 \\
%%10301&4&GPC1.z.XY01&0&24.26&-0.03&0&0&0&0&54000 \\
%.... &4&....&0&24.26&-0.03&0&0&0&0&54000 \\
%10376&4&GPC1.z.XY76&0&24.26&-0.03&0&0&0&0&54000 \\
%10401&5&GPC1.y.XY01&0&23.41&-0.03&0&0&0&0&54000 \\
%.... &5&....&0&23.41&-0.03&0&0&0&0&54000\\
%10476&5&GPC1.y.XY76&0&23.41&-0.03&0&0&0&0&54000 \\
%11000&1&GPC1.g.SkyChip&0&25&0&0&0&0&0&54000 \\
%11100&2&GPC1.r.SkyChip&0&25&0&0&0&0&0&54000 \\
%11200&3&GPC1.i.SkyChip&0&25&0&0&0&0&0&54000 \\
%11300&4&GPC1.z.SkyChip&0&25&0&0&0&0&0&54000 \\
%11400&5&GPC1.y.SkyChip&0&25&0&0&0&0&0&54000 \\
%12000&1&GPC1.g.ForcedWarp&0&25&0&0&0&0&0&54000 \\
%12100&2&GPC1.r.ForcedWarp&0&25&0&0&0&0&0&54000 \\
%12200&3&GPC1.i.ForcedWarp&0&25&0&0&0&0&0&54000 \\
%12300&4&GPC1.z.ForcedWarp&0&25&0&0&0&0&0&54000 \\
%12400&5&GPC1.y.ForcedWarp&0&25&0&0&0&0&0&54000 \\
%\hline
%\end{tabular}
%\end{center}

%(a) photoCalID \\
%(b) filterID \\
%(c) photoCodeDesc \\
%(d) AB \\
%(e) zeropoint \\
%(f) extinction \\
%%(g) colorterm \\
%(h) colorExtn \\
%(i) orphanCalColor \\
%(j) orphanCalColorErr\\
%\label{table:photcal}
%\end{table}%

%%%HAF removing this for now, MH says not useufl

%\begin{table}
%\caption{StackType}
%\begin{center}
%\resizebox{\textwidth}{!}{%
%\begin{tabular}{lll}
%\hline
%\hline
%stackTypeID&name&description\\
%\hline
%0&NIGHTLY\_STACK&Nightly stack\\
%1&DEEP\_STACK&Deep stack\\
%2&IQ\_STACK&IQ stack\\
%3&REF\_S1\_STACK&Reference {\em stack} excluding data from season 1\\
%4&REF\_S2\_STACK&Reference {\em stack} excluding data from season 2\\
%5&REF\_S3\_STACK&Reference {\em stack} excluding data from season 3\\
%6&REF\_S4\_STACK&Reference {\em stack} excluding data from season 4\\
%7&REF\_S5\_STACK&Reference {\em stack} excluding data from season 5\\
%\hline
%\end{tabular}
%\end{center}
%\label{table:stacktype}
%\end{table}%

%%HAF removing this for now, mark says not useful
%\begin{table}
%\caption{DiffType}
%\begin{center}
%\resizebox{\textwidth}{!}{%
%\begin{tabular}{lll}
%\hline
%\hline
%diffTypeID&name&description\\
%\hline
%1&WARP\_WARP&warp-warp difference image\\
%2&WARP\_STACK&warp-stack difference image\\
%3&STACK\_WARP&stack-warp difference image\\
%\hline
%\end{tabular}
%\end{center}
%\label{table:difftype}
%\end{table}%


%%HAF removing this for now, mark says not helfpul
%\begin{table}
%\caption{TessellationType}
%\begin{center}
%\resizebox{\textwidth}{!}{%
%\begin{tabular}{lll}
%\hline
%\hline
%tessID&name&description\\
%\hline
%1&CNP.LAP&Tessellation for the 3$\pi$ survey pole regions (LOCAL)\\
%2&RINGS.V3&Tessellation for the 3pi survey; ex pole regions\\
%3&MD01.V3&Tessellation for MD01 field (LOCAL)\\
%4&MD02.V3&Tessellation for MD02 field (LOCAL)\\
%5&MD03.V3&Tessellation for MD03 field (LOCAL)\\
%6&MD04.V3&Tessellation for MD04 field (LOCAL)\\
%7&MD05.V3&Tessellation for MD05 field (LOCAL)\\
%8&MD06.V3&Tessellation for MD06 field (LOCAL)\\
%9&MD07.V3&Tessellation for MD07 field (LOCAL)\\
%10&MD08.V3&Tessellation for MD08 field (LOCAL)\\
%11&MD09.V3&Tessellation for MD09 field (LOCAL)\\
%12&MD10.V3&Tessellation for MD10 field (LOCAL)\\
%13&M31.V4&Tessellation for M31 (LOCAL)\\
%\hline
%\end{tabular}
%\end{center}%
%\label{table:tessellationtype}
%\end{table}%

%\end{document}

\section{Schema}
\label{sec:schema}

\subsection{System Metadata Tables}
%
%{\color{red} needs to be added}

\subsection{Object / Mean Object Tables}

\begin{table}
\caption{ObjectThin: Contains the positional information for objects in a number of coordinate systems.  The objects associate single epoch detections and the stacked detections within a one arcsecond radius.  The mean position from the single epoch data is used as the basis for coordinates when available, or the position of an object in the {\em stack} when it is not.  The right ascension and declination for both the {\em stack} and single epoch mean is provided.  The number of detections in each filter from single epoch data is listed, along with which filters the object has a {\em stack} detection \citep[see]{Szalay2007}.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objName & - & VARCHAR(32) & NA  &IAU name for this object.\\
objPSOName & - & VARCHAR(32) & NA  &Alternate Pan-STARRS name for this object.\\
objAltName1 & - & VARCHAR(32) & NA  &Alternate name for this object.\\
objAltName2 & - & VARCHAR(32) &   &Altername name for this object.\\
objAltName3 & - & VARCHAR(32) &   &Altername name for this object.\\
objPopularName & - & VARCHAR(140) &   &Well known name for this object.\\
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsOBid & - & BIGINT & NA  &Unique internal PSPS object identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
htmID & - & BIGINT & NA  &Hierarchical triangular mesh (Szalay 2007) index.\\
zoneID & - & INT & NA  &Local zone index, found by dividing the sky into bands of declination 1/2\\  
&   &     &     & arcminute in height: zoneID=floor((90+Dec)/0.0083333).\\
tessID & - & TINYINT & 0  &Tessellation identifier.  Details in the TessellationType table.\\
projectionID & - & SMALLINT & -1  &Projection cell identifier.\\
skyCellID & - & TINYINT & 255  &Skycell region identifier.\\
randomID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
batchID & - & BIGINT & NA  &Internal database batch identifier.\\
dvoRegionID & - & INT & -1  &Internal DVO region identifier.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
objInfoFlag & - & INT & 0  &Information flag bitmask indicating details of the photometry.  Values\\ 
& & & & listed in ObjectInfoFlags.\\
qualityFlag & - & TINYINT & 0  &Subset of objInfoFlag denoting whether this object is real or a likely\\
& & & &false positive.  Values listed in ObjectQualityFlags.\\
raStack & degrees & FLOAT & -999  &Right ascension from {\em stack} detections, weighted mean value across \\
& & & & filters, in equinox J2000.  See StackObjectThin for {\em stack} epoch information.\\
decStack & degrees & FLOAT & -999  &Declination from {\em stack} detections, weighted mean value across\\
& & & & filters, in equinox J2000.  See StackObjectThin for {\em stack} epoch information.\\
raStackErr & arcsec & REAL & -999  &Right ascension standard deviation from {\em stack} detections.\\
decStackErr & arcsec & REAL & -999  &Declination standard deviation from {\em stack} detections.\\
raMean & degrees & FLOAT & -999  &Right ascension from single epoch detections (weighted mean) in \\
& & & & equinox J2000 at the mean epoch given by epochMean.\\
decMean & degrees & FLOAT & -999  &Declination from single epoch detections (weighted mean) in equinox\\
& & & & J2000 at the mean epoch given by epochMean.\\
raMeanErr & arcsec & REAL & -999  &Right ascension standard deviation from single epoch detections.\\
decMeanErr & arcsec & REAL & -999  &Declination standard deviation from single epoch detections.\\
epochMean & days & FLOAT & -999  &Modified Julian Date of the mean epoch corresponding to raMean,\\
& & & & decMean (equinox J2000).\\
posMeanChisq & - & REAL & -999  &Reduced chi squared value of mean position.\\
cx & - & FLOAT & NA  &Cartesian x on a unit sphere. \\
cy & - & FLOAT & NA  &Cartesian y on a unit sphere. \\
cz & - & FLOAT & NA  &Cartesian z on a unit sphere. \\
lambda & degrees & FLOAT & -999  &Ecliptic longitude.\\
beta & degrees & FLOAT & -999  &Ecliptic latitude.\\
l & degrees & FLOAT & -999  &Galactic longitude.\\
b & degrees & FLOAT & -999  &Galactic latitude.\\
nStackObjectRows & - & SMALLINT & -999  &Nr. of independent StackObjectThin rows associated with this object.\\
nStackDetections & - & SMALLINT & -999  &Number of {\em stack} detections.\\
nDetections & - & SMALLINT & -999  &Number of single epoch detections in all filters.\\
ng & - & SMALLINT & -999  &Number of single epoch detections in g filter.\\
nr & - & SMALLINT & -999  &Number of single epoch detections in r filter.\\
ni & - & SMALLINT & -999  &Number of single epoch detections in i filter.\\
nz & - & SMALLINT & -999  &Number of single epoch detections in z filter.\\
ny & - & SMALLINT & -999  &Number of single epoch detections in y filter.\\
\hline
\end{tabular}
\end{center}
\label{table:ObjectThin}
\end{table}%




\begin{table}
\caption{MeanObject: Contains the mean photometric information for objects based on the single epoch data, calculated as described in \citet{Magnier2013}.  To be included in this table, an object must be bright enough to have been detected at least once in an individual exposure.  PSF, Kron (1980), and aperture magnitudes and statistics are listed for all filters.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsOBid & - & BIGINT & NA  &Unique internal PSPS object identifier.\\
gQfPerfect & - & REAL & -999  &Maximum PSF weighted fraction of pixels totally unmasked\\
& & & & from g filter detections.\\
gMeanPSFMag & AB & REAL & -999  &Mean PSF magnitude from g filter detections.\\
gMeanPSFMagErr & AB & REAL & -999  &Error in mean PSF magnitude from g filter \\
& & & & detections.\\
gMeanPSFMagStd & AB & REAL & -999  &Standard deviation of PSF magnitudes from g filter\\
& & & & detections.\\
gMeanPSFMagNpt & - & SMALLINT & -999  &Number of measurements included in mean PSF\\
& & & & magnitude from g filter detections.\\
gMeanPSFMagMin & AB & REAL & -999  &Minimum PSF magnitude from g filter detections.\\
gMeanPSFMagMax & AB & REAL & -999  &Maximum PSF magnitude from g filter detections.\\
gMeanKronMag & AB & REAL & -999  &Mean Kron (1980) magnitude from g filter detections.\\
gMeanKronMagErr & AB & REAL & -999  &Error in mean Kron (1980) magnitude from g filter\\
& & & & detections.\\
gMeanKronMagStd & AB & REAL & -999  &Standard deviation of Kron (1980) magnitudes from\\
& & & & g filter detections.\\
gMeanKronMagNpt & - & SMALLINT & -999  &Number of measurements included in mean Kron\\
& & & & (1980) magnitude from g filter detections.\\
gMeanApMag & AB & REAL & -999  &Mean aperture magnitude from g filter detections.\\
gMeanApMagErr & AB & REAL & -999  &Error in mean aperture magnitude from g filter \\
& & & & detections.\\
gMeanApMagStd & AB & REAL & -999  &Standard deviation of aperture magnitudes from g\\
& & & & filter detections.\\
gMeanApMagNpt & - & SMALLINT & -999  &Number of measurements included in mean aperture\\
& & & & magnitude from g filter detections.\\
gFlags & - & INT & 0  &Information flag bitmask for mean object from g filter\\
& & & & detections.  Values listed in ObjectFilterFlags.\\
rQfPerfect \\
... & & & & same entries repeated for r, i, z, and y filters \\
yFlags \\
\hline
\end{tabular}
\end{center}
\label{table:MeanObject}
\end{table}%

%\end{document}

\subsection{GaiaFrameCoordinate}


\begin{table}
\caption{GaiaFrameCoordinate: PSPS objects calibrated against Gaia astrometry}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsGOid & - & BIGINT & NA  &Unique internal PSPS object identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
batchID & - & BIGINT & NA  &Internal database batch identifier.\\
gaiaFlag & - & INT &   &Information flag bitmask.\\
ra & degrees & FLOAT & -999  &Right ascension from single epoch detections (weighted mean) in\\
& & & & equinox J2000 at the mean epoch given by epochMean and calibrated against Gaia.\\
dec & degrees & FLOAT & -999  &Declination from single epoch detections (weighted mean) in equinox\\
& & & & J2000 at the mean epoch given by epochMean and calibrated against Gaia.\\
raErr & arcsec & REAL & -999  &Right ascension standard deviation from single epoch detections.\\
decErr & arcsec & REAL & -999  &Declination standard deviation from single epoch detections.\\
\hline
\end{tabular}
\end{center}
\label{table:GaiaFrameCoordinate}
\end{table}%

%\end{document}

%one of the stack table breaks

\subsection{Stack Tables}

\begin{table}
\caption{StackMeta: Contains the metadata describing the stacked image produced from the combination of a set of single epoch exposures.  The nature of the {\em stack} is given by the StackTypeID.  The astrometric and photometric calibration of the stacked image are listed.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
stackImageID & - & BIGINT & NA  &Unique {\em stack} identifier.\\
batchID & - & BIGINT & NA  &Internal database batch identifier.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
stackTypeID & - & TINYINT & 0  &Stack type identifier.  Details in the StackType table.\\
tessID & - & TINYINT & 0  &Tessellation identifier.  Details in the TessellationType table.\\
projectionID & - & SMALLINT & -1  &Projection cell identifier.\\
skyCellID & - & TINYINT & 255  &Skycell region identifier.\\
photoCalID & - & INT & NA  &Photometric calibration identifier.  Details in the PhotoCal table.\\
analysisVer & - & VARCHAR(100) &   &IPP software analysis release version.\\
md5sum & - & VARCHAR(100) &   &IPP MD5 Checksum.\\
expTime & seconds & REAL & -999  &Exposure time of the stack.  Necessary for converting listed\\
& & & & fluxes and magnitudes back to measured ADU counts.\\
nP2Images & - & SMALLINT & -999  &Number of input exposures/frames contributing to this stack.\\
detectionThreshold & magnitudes & REAL & -999  &Reference magnitude for detection efficiency calculation.\\
astroScat & - & REAL & -999  &Measurement of the calibration (not astrometric error) defined to\\
& & & & be the sum in quadrature of the standard deviations in the X and\\
& & & & Y directions.\\
photoScat & - & REAL & -999  &Photometric scatter relative to reference catalog.\\
nAstroRef & - & INT & -999  &Number of astrometric reference sources.\\
nPhotoRef & - & INT & -999  &Number of photometric reference sources.\\
recalAstroScatX & arcsec & REAL & -999  &Measurement of the re-calibration (not astrometric error)\\
& & & & in the X direction.\\
recalAstroScatY & arcsec & REAL & -999  &Measurement of the re-calibration (not astrometric error)\\
& & & & in the Y direction.\\
recalNAstroStars & - & INT & -999  &Number of astrometric reference sources used in\\
& & & & recalibration.\\
recalphotoScat & magnitudes & REAL & -999  &Photometric scatter relative to reference catalog.\\
recalNPhotoStars & - & INT & -999  &Number of astrometric reference sources used in\\
& & & & recalibration.\\
psfModelID & - & INT & -999  &PSF model identifier.\\
psfFWHM & arcsec & REAL & -999  &Mean PSF full width at half maximum at image center.\\
psfWidMajor & arcsec & REAL & -999  &PSF major axis FWHM at image center.\\
psfWidMinor & arcsec & REAL & -999  &PSF minor axis FWHM at image center.\\
psfTheta & degrees & REAL & -999  &PSF major axis orientation at image center.\\
photoZero & magnitudes & REAL & -999  &Locally derived photometric zero point for this stack.\\
ctype1 & - & VARCHAR(100) &   &Name of astrometric projection in right ascension.\\
ctype2 & - & VARCHAR(100) &   &Name of astrometric projection in declination.\\
crval1 & degrees & FLOAT & -999  &Right ascension corresponding to reference pixel.\\
crval2 & degrees & FLOAT & -999  &Declination corresponding to reference pixel.\\
crpix1 & sky pixels & FLOAT & -999  &Reference pixel for right ascension.\\
crpix2 & sky pixels & FLOAT & -999  &Reference pixel for declination.\\
cdelt1 & degrees/pixel & FLOAT & -999  &Pixel scale in right ascension.\\
cdelt2 & degrees/pixel & FLOAT & -999  &Pixel scale in declination.\\
pc001001 & - & FLOAT & -999  &Linear transformation matrix element between image pixel x and \\
& & & & right ascension.\\
pc001002 & - & FLOAT & -999  &Linear transformation matrix element between image pixel y and \\
& & & & right ascension.\\
pc002001 & - & FLOAT & -999  &Linear transformation matrix element between image pixel x and \\
& & & & declination.\\
pc002002 & - & FLOAT & -999  &Linear transformation matrix element between image pixel y and \\
& & & & declination.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
\hline
\end{tabular}
\end{center}
\label{table:StackMeta}
\end{table}%

%end{document} %happy

\begin{table}
\caption{StackObjectThin: Contains the positional and photometric information for point-source photometry of {\em stack} detections.  The information for all filters are joined into a single row, with metadata indicating if this {\em stack} object represents the primary detection.  Due to overlaps in the {\em stack} tessellations, an object may appear in multiple {\em stack} images.  The primary detection is the unique detection from the {\em stack} image that provides the best coverage with minimal projection stretching.  All other detections of the object in that filter are secondary, regardless of their properties.  The detection flagged as best is the primary detection if that detection has a psfQf value greater than 0.98;  if that is not met, then any of the primary or secondary detections with the highest psfQf value is flagged as best.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
tessID & - & TINYINT & 0  &Tessellation identifier.  Details in the TessellationType table.\\
projectionID & - & SMALLINT & -1  &Projection cell identifier.\\
skyCellID & - & TINYINT & 255  &Skycell region identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection.\\
dvoRegionID & - & INT & -1  &Internal DVO region identifier.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gra & degrees & FLOAT & -999  &Right ascension from g filter {\em stack} detection.\\
gdec & degrees & FLOAT & -999  &Declination from g filter {\em stack} detection.\\
graErr & arcsec & REAL & -999  &Right ascension error from g filter {\em stack} detection.\\
gdecErr & arcsec & REAL & -999  &Declination error from g filter {\em stack} detection.\\
gEpoch & days & FLOAT & -999  &Modified Julian Date of the mean epoch of images contributing to the\\
& & & & g-band {\em stack} (equinox J2000).\\
gPSFMag & AB & REAL & -999  &PSF magnitude from g filter {\em stack} detection.\\
gPSFMagErr & AB & REAL & -999  &Error in PSF magnitude from g filter {\em stack} detection.\\
gApMag & AB & REAL & -999  &Aperture magnitude from g filter {\em stack} detection.\\
gApMagErr & AB & REAL & -999  &Error in aperture magnitude from g filter {\em stack} detection.\\
gKronMag & AB & REAL & -999  &Kron (1980) magnitude from g filter {\em stack} detection.\\
gKronMagErr & AB & REAL & -999  &Error in Kron (1980) magnitude from g filter {\em stack} detection.\\
ginfoFlag & - & BIGINT & 0  &Information flag bitmask indicating details of the g filter {\em stack}\\
& & & & photometry.  Values listed in DetectionFlags.\\
ginfoFlag2 & - & INT & 0  &Information flag bitmask indicating details of the g filter {\em stack}\\
& & & & photometry.  Values listed in DetectionFlags2.\\
ginfoFlag3 & - & INT & 0  &Information flag bitmask indicating details of the g filter {\em stack}\\
& & & & photometry.  Values listed in DetectionFlags3.\\
gnFrames & - & INT & -999  &Number of input frames/exposures contributing to the g filter {\em stack}\\
& & & & detection.\\
rippDetectID \\
... & & & & same entries repeated for r, i, z, and y filters \\
ynFrames \\
\hline
\end{tabular}
\end{center}
\label{table:StackObjectThin}
\end{table}%

\begin{table}
\caption{StackObjectAttributes: Contains the PSF, \citet{Kron1980}, and aperture fluxes for all filters in a single row, along with point-source object shape parameters.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.
}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gxPos & sky pixels & REAL & -999  &PSF x center location from g filter {\em stack} detection.\\
gyPos & sky pixels & REAL & -999  &PSF y center location from g filter {\em stack} detection.\\
gxPosErr & sky pixels & REAL & -999  &Error in PSF x center location from g filter {\em stack} detection.\\
gyPosErr & sky pixels & REAL & -999  &Error in PSF y center location from g filter {\em stack} detection.\\
gpsfMajorFWHM & arcsec & REAL & -999  &PSF major axis FWHM from g filter {\em stack} detection.\\
gpsfMinorFWHM & arcsec & REAL & -999  &PSF minor axis FWHM from g filter {\em stack} detection.\\
gpsfTheta & degrees & REAL & -999  &PSF major axis orientation from g filter {\em stack} detection.\\
gpsfCore & - & REAL & -999  &PSF core parameter k from g filter {\em stack} detection, where \\
& & & & $F = F0 / (1 + k r^2 + r^{3.33})$.\\
gpsfLikelihood & - & REAL & -999  &Likelihood that this g filter {\em stack} detection is best fit\\
& & & & by a PSF.\\
gpsfQf & - & REAL & -999  &PSF coverage factor for g filter {\em stack} detection.\\
gpsfQfPerfect & - & REAL & -999  &PSF-weighted fraction of pixels totally unmasked for g filter {\em stack} detection.\\
gpsfChiSq & - & REAL & -999  &Reduced chi squared value of the PSF model fit for g filter {\em stack} detection.\\
gmomentXX & $arcsec^2$ & REAL & -999  &Second moment $M_{xx}$ for g filter {\em stack} detection.\\
gmomentXY & $arcsec^2$ & REAL & -999  &Second moment $M_{xy}$ for g filter {\em stack} detection.\\
gmomentYY & $arcsec^2$ & REAL & -999  &Second moment $M_{yy}$ for g filter {\em stack} detection.\\
gmomentR1 & arcsec & REAL & -999  &First radial moment for g filter {\em stack} detection.\\
gmomentRH & $arcsec^{0.5}$ & REAL & -999  &Half radial moment ($r^{0.5}$ weighting) for g filter {\em stack} detection.\\
gPSFFlux & Jy & REAL & -999  &PSF flux from g filter {\em stack} detection.\\
gPSFFluxErr & Jy & REAL & -999  &Error in PSF flux from g filter {\em stack} detection.\\
gApFlux & Jy & REAL & -999  &Aperture flux from g filter {\em stack} detection.\\
gApFluxErr & Jy & REAL & -999  &Error in aperture flux from g filter {\em stack} detection.\\
gApFillFac & - & REAL & -999  &Aperture fill factor from g filter {\em stack} detection.\\
gApRadius & arcsec & REAL & -999  &Aperture radius for g filter {\em stack} detection.\\
gKronFlux & Jy & REAL & -999  &Kron (1980) flux from g filter {\em stack} detection.\\
gKronFluxErr & Jy & REAL & -999  &Error in Kron (1980) flux from g filter {\em stack} detection.\\
gKronRad & arcsec & REAL & -999  &Kron (1980) radius from g filter {\em stack} detection.\\
gexpTime & seconds & REAL & -999  &Exposure time of the g filter stack.  Necessary for converting \\
& & & & listed fluxes and magnitudes back to measured ADU counts.\\
gExtNSigma & - & REAL & -999  &An extendedness measure for the g filter {\em stack} detection based on\\
& & & & the deviation between PSF and Kron (1980) magnitudes, normalized \\
& & & & by the PSF magnitude uncertainty.\\
gsky & $Jy/arcsec^2$ & REAL & -999  &Residual background sky level at the g filter {\em stack} detection.\\
gskyErr & $Jy/arcsec^2$ & REAL & -999  &Error in residual background sky level at the g filter {\em stack} detection.\\
gzp & magnitudes & REAL & 0  &Photometric zeropoint for the g filter stack.  Necessary for converting\\
& & & & listed fluxes and magnitudes back to measured ADU counts.\\
gPlateScale & arcsec/pixel & REAL & 0  &Local plate scale for the g filter stack.\\
rippDetectID \\
... & & & & same entries repeated for r, i, z, and y filters \\
yPlateScale \\
\hline
\end{tabular}
\end{center}
\label{table:StackObjectAttributes}
\end{table}%

\begin{table}
\caption{StackApFlx: Contains the unconvolved fluxes within the SDSS R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), and R7 (r = 7.43 arcsec) apertures \citep{Stoughton2002}.  Convolved fluxes within these same apertures are also provided for images convolved to 6 sky pixels (1.5 arcsec) and 8 sky pixels (2.0 arcsec).  All filters are matched into a single row.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gflxR5 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 3.00 arcsec.\\
gflxR5Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 3.00 arcsec.\\
gflxR5Std & Jy & REAL & -999  &Standard deviation of g filter flux within an aperture of radius r = 3.00 arcsec.\\
gflxR5Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 3.00 arcsec.\\
gflxR6 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 4.63 arcsec.\\
gflxR6Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 4.63 arcsec.\\
gflxR6Std & Jy & REAL & -999  &Standard deviation of g filter flux within an aperture of radius r = 4.63 arcsec.\\
gflxR6Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 4.63 arcsec.\\
gflxR7 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 7.43 arcsec.\\
gflxR7Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 7.43 arcsec.\\
gflxR7Std & Jy & REAL & -999  &Standard deviation of g filter flux within an aperture of radius r = 7.43 arcsec.\\
gflxR7Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 7.43 arcsec.\\
gc6flxR5 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels\\
& & & & (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
gc6flxR5Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of \\
& & & & 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
gc6flxR5Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to \\
& & & & a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
gc6flxR5Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a \\
& & & & target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
gc6flxR6 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels\\
& & & & (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
gc6flxR6Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of \\
& & & & 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
gc6flxR6Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to \\
& & & & a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
gc6flxR6Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of \\
& & & & 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
gc6flxR7 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels\\
& & & & (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
gc6flxR7Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of \\
& & & & 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
gc6flxR7Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of \\
& & & & 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
gc6flxR7Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 6 sky \\
& & & & pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
gc8flxR5 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels\\
& & & & (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
gc8flxR5Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels \\
& & & & (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
gc8flxR5Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 8 sky \\
& & & & pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
gc8flxR5Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky \\
& & & & pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
gc8flxR6 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels\\
& & & & (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
gc8flxR6Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels\\
& & & & (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
gc8flxR6Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of \\
& & & & 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
gc8flxR6Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
& & & & (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
gc8flxR7 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels (2.0 arcsec) \\
& & & & within an aperture of radius r = 7.43 arcsec.\\
gc8flxR7Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target 8 sky pixels \\
& & & & (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
gc8flxR7Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of \\
& & & & 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
gc8flxR7Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
& & & & (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
rstackDetectID \\
... & & & & same entries repeated for r, i, z, and y filters \\
%rstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%rstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for r filter detection.\\
%rippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%rflxR5 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 3.00 arcsec.\\
%rflxR5Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 3.00 arcsec.\\
%rflxR5Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 3.00 arcsec.\\
%rflxR5Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 3.00 arcsec.\\
%rflxR6 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 4.63 arcsec.\\
%rflxR6Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 4.63 arcsec.\\
%rflxR6Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 4.63 arcsec.\\
%rflxR6Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 4.63 arcsec.\\
%rflxR7 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 7.43 arcsec.\\
%rflxR7Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 7.43 arcsec.\\
%rflxR7Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 7.43 arcsec.\\
%rflxR7Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 7.43 arcsec.\\
%rc6flxR5 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc6flxR5Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc6flxR5Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc6flxR5Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc6flxR6 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc6flxR6Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc6flxR6Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc6flxR6Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc6flxR7 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc6flxR7Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc6flxR7Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc6flxR7Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc8flxR5 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc8flxR5Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc8flxR5Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc8flxR5Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc8flxR6 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc8flxR6Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc8flxR6Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc8flxR6Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc8flxR7 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc8flxR7Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc8flxR7Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc8flxR7Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%istackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%istackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for i filter detection.\\
%iippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%iflxR5 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 3.00 arcsec.\\
%iflxR5Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 3.00 arcsec.\\
%iflxR5Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 3.00 arcsec.\\
%iflxR5Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 3.00 arcsec.\\
%iflxR6 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 4.63 arcsec.\\
%iflxR6Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 4.63 arcsec.\\
%iflxR6Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 4.63 arcsec.\\
%iflxR6Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 4.63 arcsec.\\
%iflxR7 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 7.43 arcsec.\\
%iflxR7Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 7.43 arcsec.\\
%iflxR7Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 7.43 arcsec.\\
%iflxR7Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 7.43 arcsec.\\
%ic6flxR5 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic6flxR5Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic6flxR5Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic6flxR5Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic6flxR6 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic6flxR6Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic6flxR6Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic6flxR6Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic6flxR7 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic6flxR7Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic6flxR7Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic6flxR7Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic8flxR5 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic8flxR5Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic8flxR5Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic8flxR5Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic8flxR6 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic8flxR6Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic8flxR6Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic8flxR6Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic8flxR7 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic8flxR7Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic8flxR7Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic8flxR7Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%zstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for z filter detection.\\
%zippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%zflxR5 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 3.00 arcsec.\\
%zflxR5Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 3.00 arcsec.\\
%zflxR5Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 3.00 arcsec.\\
%zflxR5Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 3.00 arcsec.\\
%zflxR6 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 4.63 arcsec.\\
%zflxR6Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 4.63 arcsec.\\
%zflxR6Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 4.63 arcsec.\\
%zflxR6Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 4.63 arcsec.\\
%zflxR7 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 7.43 arcsec.\\
%zflxR7Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 7.43 arcsec.\\
%zflxR7Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 7.43 arcsec.\\
%zflxR7Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 7.43 arcsec.\\
%zc6flxR5 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc6flxR5Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc6flxR5Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc6flxR5Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc6flxR6 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc6flxR6Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc6flxR6Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc6flxR6Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc6flxR7 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc6flxR7Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc6flxR7Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc6flxR7Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc8flxR5 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc8flxR5Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc8flxR5Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc8flxR5Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc8flxR6 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc8flxR6Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc8flxR6Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc8flxR6Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc8flxR7 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc8flxR7Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc8flxR7Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc8flxR7Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ystackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%ystackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for y filter detection.\\
%yippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%yflxR5 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 3.00 arcsec.\\
%yflxR5Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 3.00 arcsec.\\
%yflxR5Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 3.00 arcsec.\\
%yflxR5Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 3.00 arcsec.\\
%yflxR6 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 4.63 arcsec.\\
%yflxR6Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 4.63 arcsec.\\
%yflxR6Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 4.63 arcsec.\\
%yflxR6Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 4.63 arcsec.\\
%yflxR7 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 7.43 arcsec.\\
%yflxR7Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 7.43 arcsec.\\
%yflxR7Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 7.43 arcsec.\\
%yflxR7Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 7.43 arcsec.\\
%yc6flxR5 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc6flxR5Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc6flxR5Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc6flxR5Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc6flxR6 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc6flxR6Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc6flxR6Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc6flxR6Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc6flxR7 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc6flxR7Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc6flxR7Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc6flxR7Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc8flxR5 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc8flxR5Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc8flxR5Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc8flxR5Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc8flxR6 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc8flxR6Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc8flxR6Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc8flxR6Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc8flxR7 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc8flxR7Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc8flxR7Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc8flxR7Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
yc8flxR7Fill\\
\hline
\end{tabular}
\end{center}
\label{table:StackApFlx}
\end{table}%

\begin{table}
\caption{StackModelFitExtra: Contains the galaxy shape and concentration parameters measured from the {\em stack} detections.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections \citep[see]{Blakeslee2006,Cheng2011,Schade1995,Simard2011,Simard2002}}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection. \\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gS2 & - & REAL & -999  &Smoothness parameter s2 from g filter {\em stack} detection\\
& & & & \citep{Cheng2011,Simard2002}.\\
glogRT & - & REAL & -999  &Total residual from elliptically symmetric model from g filter {\em stack}\\
& & & & detection \citep{Cheng2011,Simard2002,Schade1995}.\\
glogRA & - & REAL & -999  &Asymmetric residual from elliptically symmetric model from g filter \\
& & & & {\em stack} detection \citep{Cheng2011,Simard2002,Schade1995}.\\
gbumpy & - & REAL & -999  &Bumpiness parameter from g filter {\em stack} detection\\
& & & & \citep{Blakeslee2006}.\\
ghalfLightRad & arcsec & REAL & -999  &Half-light radius from g filter {\em stack} detection.\\
rippDetectID\\
... & & & & same entries repeated for r, i, z, and y filters \\
%rippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%rstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%rstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for r filter detection.\\
%rS2 & - & REAL & -999  &Smoothness parameter s2 from r filter {\em stack} detection (Cheng 2011; Simard 2002).\\
%rlogRT & - & REAL & -999  &Total residual from elliptically symmetric model from r filter {\em stack} detection (Cheng 2011; Simard 2002; Schade 1995).\\
%rlogRA & - & REAL & -999  &Asymmetric residual from elliptically symmetric model from r filter {\em stack} detection (Cheng 2011; Simard 2002; Schade 1995).\\
%rbumpy & - & REAL & -999  &Bumpiness parameter from r filter {\em stack} detection (Blakeslee 2006).\\
%rhalfLightRad & arcsec & REAL & -999  &Half-light radius from r filter {\em stack} detection.\\
%iippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%istackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%istackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for i filter detection.\\
%iS2 & - & REAL & -999  &Smoothness parameter s2 from i filter {\em stack} detection (Cheng 2011; Simard 2002).\\
%ilogRT & - & REAL & -999  &Total residual from elliptically symmetric model from i filter {\em stack} detection (Cheng 2011; Simard 2002; Schade 1995).\\
%ilogRA & - & REAL & -999  &Asymmetric residual from elliptically symmetric model from i filter {\em stack} detection (Cheng 2011; Simard 2002; Schade 1995).\\
%ibumpy & - & REAL & -999  &Bumpiness parameter from i filter {\em stack} detection (Blakeslee 2006).\\
%ihalfLightRad & arcsec & REAL & -999  &Half-light radius from i filter {\em stack} detection.\\
%zippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%zstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%zstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for z filter detection.\\
%zS2 & - & REAL & -999  &Smoothness parameter s2 from z filter {\em stack} detection (Cheng 2011; Simard 2002).\\
%zlogRT & - & REAL & -999  &Total residual from elliptically symmetric model from z filter {\em stack} detection (Cheng 2011; Simard 2002; Schade 1995).\\
%zlogRA & - & REAL & -999  &Asymmetric residual from elliptically symmetric model from z filter {\em stack} detection (Cheng 2011; Simard 2002; Schade 1995).\\
%zbumpy & - & REAL & -999  &Bumpiness parameter from z filter {\em stack} detection (Blakeslee 2006).\\
%zhalfLightRad & arcsec & REAL & -999  &Half-light radius from z filter {\em stack} detection.\\
%yippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%ystackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%ystackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for y filter detection.\\
%yS2 & - & REAL & -999  &Smoothness parameter s2 from y filter {\em stack} detection (Cheng 2011; Simard 2002).\\
%ylogRT & - & REAL & -999  &Total residual from elliptically symmetric model from y filter {\em stack} detection (Cheng 2011; Simard 2002; Schade 1995).\\
%ylogRA & - & REAL & -999  &Asymmetric residual from elliptically symmetric model from y filter {\em stack} detection (Cheng 2011; Simard 2002; Schade 1995).\\
%ybumpy & - & REAL & -999  &Bumpiness parameter from y filter {\em stack} detection (Blakeslee 2006).\\
%yhalfLightRad & arcsec & REAL & -999  &Half-light radius from y filter {\em stack} detection.\\
yhalfLightRad\\
\hline
\end{tabular}
\end{center}
\label{table:StackModelFitExtra}
\end{table}%

\begin{table}
\caption{StackModelFitExp: Contains the exponential fit parameters to extended sources.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections. }
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gExpRadius & arcsec & REAL & -999  &Exponential fit radius for g filter {\em stack} detection.\\
gExpRadiusErr & arcsec & REAL & -999  &Error in exponential fit radius for g filter {\em stack} detection.\\
gExpMag & AB & REAL & -999  &Exponential fit magnitude for g filter {\em stack} detection.\\
gExpMagErr & AB & REAL & -999  &Error in exponential fit magnitude for g filter {\em stack} detection.\\
gExpAb & - & REAL & -999  &Exponential fit axis ratio for g filter {\em stack} detection.\\
gExpAbErr & - & REAL & -999  &Error in exponential fit axis ratio for g filter {\em stack} detection.\\
gExpPhi & degrees & REAL & -999  &Major axis position angle, phi, of exponential fit for g \\
& & & & filter {\em stack} detection.\\
gExpPhiErr & degrees & REAL & -999  &Error in major axis position angle of exponential fit for g\\
& & & & filter {\em stack} detection.\\
gExpRa & degrees & FLOAT & -999  &Right ascension of exponential fit center for g filter \\
& & & & {\em stack} detection.\\
gExpDec & degrees & FLOAT & -999  &Declination of exponential fit center for g filter \\
& & & & {\em stack} detection.\\
gExpRaErr & arcsec & REAL & -999  &Error in right ascension of exponential fit center for g \\
& & & & filter {\em stack} detection.\\
gExpDecErr & arcsec & REAL & -999  &Error in declination of exponential fit center for g \\
& & & & filter {\em stack} detection.\\
gExpChisq & - & REAL & -999  &Exponential fit reduced chi squared for g filter {\em stack}
detection.\\
rippDetectID \\
... & & & & same entries repeated for r, i, z, and y filters \\
%rippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%rstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%rstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for r filter detection.\\
%rExpRadius & arcsec & REAL & -999  &Exponential fit radius for r filter {\em stack} detection.\\
%rExpRadiusErr & arcsec & REAL & -999  &Error in exponential fit radius for r filter {\em stack} detection.\\
%rExpMag & AB & REAL & -999  &Exponential fit magnitude for r filter {\em stack} detection.\\
%rExpMagErr & AB & REAL & -999  &Error in exponential fit magnitude for r filter {\em stack} detection.\\
%rExpAb & - & REAL & -999  &Exponential fit axis ratio for r filter {\em stack} detection.\\
%rExpAbErr & - & REAL & -999  &Error in exponential fit axis ratio for r filter {\em stack} detection.\\
%rExpPhi & degrees & REAL & -999  &Major axis position angle, phi, of exponential fit for r filter {\em stack} detection.\\
%rExpPhiErr & degrees & REAL & -999  &Error in major axis position angle of exponential fit for r filter {\em stack} detection.\\
%rExpRa & degrees & FLOAT & -999  &Right ascension of exponential fit center for r filter {\em stack} detection.\\
%rExpDec & degrees & FLOAT & -999  &Declination of exponential fit center for r filter {\em stack} detection.\\
%rExpRaErr & arcsec & REAL & -999  &Error in right ascension of exponential fit center for r filter {\em stack} detection.\\
%rExpDecErr & arcsec & REAL & -999  &Error in declination of exponential fit center for r filter {\em stack} detection.\\
%rExpChisq & - & REAL & -999  &Exponential fit reduced chi squared for r filter {\em stack} detection.\\
%iippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%istackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%istackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for i filter detection.\\
%iExpRadius & arcsec & REAL & -999  &Exponential fit radius for i filter {\em stack} detection.\\
%iExpRadiusErr & arcsec & REAL & -999  &Error in exponential fit radius for i filter {\em stack} detection.\\
%iExpMag & AB & REAL & -999  &Exponential fit magnitude for i filter {\em stack} detection.\\
%iExpMagErr & AB & REAL & -999  &Error in exponential fit magnitude for i filter {\em stack} detection.\\
%iExpAb & - & REAL & -999  &Exponential fit axis ratio for i filter {\em stack} detection.\\
%iExpAbErr & - & REAL & -999  &Error in exponential fit axis ratio for i filter {\em stack} detection.\\
%iExpPhi & degrees & REAL & -999  &Major axis position angle, phi, of exponential fit for i filter {\em stack} detection.\\
%iExpPhiErr & degrees & REAL & -999  &Error in major axis position angle of exponential fit for i filter {\em stack} detection.\\
%iExpRa & degrees & FLOAT & -999  &Right ascension of exponential fit center for i filter {\em stack} detection.\\
%iExpDec & degrees & FLOAT & -999  &Declination of exponential fit center for i filter {\em stack} detection.\\
%iExpRaErr & arcsec & REAL & -999  &Error in right ascension of exponential fit center for i filter {\em stack} detection.\\
%iExpDecErr & arcsec & REAL & -999  &Error in declination of exponential fit center for i filter {\em stack} detection.\\
%iExpChisq & - & REAL & -999  &Exponential fit reduced chi squared for i filter {\em stack} detection.\\
%zippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%zstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%zstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for z filter detection.\\
%zExpRadius & arcsec & REAL & -999  &Exponential fit radius for z filter {\em stack} detection.\\
%zExpRadiusErr & arcsec & REAL & -999  &Error in exponential fit radius for z filter {\em stack} detection.\\
%zExpMag & AB & REAL & -999  &Exponential fit magnitude for z filter {\em stack} detection.\\
%zExpMagErr & AB & REAL & -999  &Error in exponential fit magnitude for z filter {\em stack} detection.\\
%zExpAb & - & REAL & -999  &Exponential fit axis ratio for z filter {\em stack} detection.\\
%zExpAbErr & - & REAL & -999  &Error in exponential fit axis ratio for z filter {\em stack} detection.\\
%zExpPhi & degrees & REAL & -999  &Major axis position angle, phi, of exponential fit for z filter {\em stack} detection.\\
%zExpPhiErr & degrees & REAL & -999  &Error in major axis position angle of exponential fit for z filter {\em stack} detection.\\
%zExpRa & degrees & FLOAT & -999  &Right ascension of exponential fit center for z filter {\em stack} detection.\\
%zExpDec & degrees & FLOAT & -999  &Declination of exponential fit center for z filter {\em stack} detection.\\
%zExpRaErr & arcsec & REAL & -999  &Error in right ascension of exponential fit center for z filter {\em stack} detection.\\
%zExpDecErr & arcsec & REAL & -999  &Error in declination of exponential fit center for z filter {\em stack} detection.\\
%zExpChisq & - & REAL & -999  &Exponential fit reduced chi squared for z filter {\em stack} detection.\\
%yippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%ystackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%ystackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for y filter detection.\\
%yExpRadius & arcsec & REAL & -999  &Exponential fit radius for y filter {\em stack} detection.\\
%yExpRadiusErr & arcsec & REAL & -999  &Error in exponential fit radius for y filter {\em stack} detection.\\
%yExpMag & AB & REAL & -999  &Exponential fit magnitude for y filter {\em stack} detection.\\
%yExpMagErr & AB & REAL & -999  &Error in exponential fit magnitude for y filter {\em stack} detection.\\
%yExpAb & - & REAL & -999  &Exponential fit axis ratio for y filter {\em stack} detection.\\
%yExpAbErr & - & REAL & -999  &Error in exponential fit axis ratio for y filter {\em stack} detection.\\
%yExpPhi & degrees & REAL & -999  &Major axis position angle, phi, of exponential fit for y filter {\em stack} detection.\\
%yExpPhiErr & degrees & REAL & -999  &Error in major axis position angle of exponential fit for y filter {\em stack} detection.\\
%yExpRa & degrees & FLOAT & -999  &Right ascension of exponential fit center for y filter {\em stack} detection.\\
%yExpDec & degrees & FLOAT & -999  &Declination of exponential fit center for y filter {\em stack} detection.\\
%yExpRaErr & arcsec & REAL & -999  &Error in right ascension of exponential fit center for y filter {\em stack} detection.\\
%yExpDecErr & arcsec & REAL & -999  &Error in declination of exponential fit center for y filter {\em stack} detection.\\
%yExpChisq & - & REAL & -999  &Exponential fit reduced chi squared for y filter {\em stack} detection.\\
yExpChisq \\
\hline
\end{tabular}
\end{center}
\label{table:StackModelFitExp}
\end{table}%

\begin{table}
\caption{StackModelFitDeV: Contains the \citet{deVaucouleurs1948} fit parameters to extended sources.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gDeVRadius & arcsec & REAL & -999  &\citet{deVaucouleurs1948} fit radius for g filter {\em stack} detection.\\
gDeVRadiusErr & arcsec & REAL & -999  &Error in \citet{deVaucouleurs1948} fit radius for g filter {\em stack} detection.\\
gDeVMag & AB & REAL & -999  &\citet{deVaucouleurs1948} fit magnitude for g filter {\em stack} detection.\\
gDeVMagErr & AB & REAL & -999  &Error in \citet{deVaucouleurs1948} fit magnitude for g filter {\em stack} detection.\\
gDeVAb & - & REAL & -999  &\citet{deVaucouleurs1948} fit axis ratio for g filter {\em stack} detection.\\
gDeVAbErr & - & REAL & -999  &Error in \citet{deVaucouleurs1948} fit axis ratio for g filter {\em stack} detection.\\
gDeVPhi & degrees & REAL & -999  &Major axis position angle, phi, of \citet{deVaucouleurs1948} fit for g filter \\
& & & & {\em stack} detection.\\
gDeVPhiErr & degrees & REAL & -999  &Error in major axis position angle of \citet{deVaucouleurs1948} fit for g filter\\
& & & & {\em stack} detection.\\
gDeVRa & degrees & FLOAT & -999  &Right ascension of \citet{deVaucouleurs1948} fit center for g filter {\em stack} \\
& & & & detection.\\
gDeVDec & degrees & FLOAT & -999  &Declination of \citet{deVaucouleurs1948} fit center for g filter \\
& & & & {\em stack} detection.\\
gDeVRaErr & arcsec & REAL & -999  &Error in right ascension of \citet{deVaucouleurs1948} fit center for g filter {\em stack} \\
& & & & detection.\\
gDeVDecErr & arcsec & REAL & -999  &Error in declination of \citet{deVaucouleurs1948} fit center for g filter {\em stack} detection.\\
gDeVChisq & - & REAL & -999  &\citet{deVaucouleurs1948} fit reduced chi squared for g filter {\em stack} detection.\\
rippDetectID \\
... & & & & same entries repeated for r, i, z, and y filters \\
%rippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%rstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%rstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for r filter detection.\\
%rDeVRadius & arcsec & REAL & -999  &\citet{deVaucouleurs1948} fit radius for r filter {\em stack} detection.\\
%rDeVRadiusErr & arcsec & REAL & -999  &Error in \citet{deVaucouleurs1948} fit radius for r filter {\em stack} detection.\\
%rDeVMag & AB & REAL & -999  &\citet{deVaucouleurs1948} fit magnitude for r filter {\em stack} detection.\\
%rDeVMagErr & AB & REAL & -999  &Error in \citet{deVaucouleurs1948} fit magnitude for r filter {\em stack} detection.\\
%rDeVAb & - & REAL & -999  &\citet{deVaucouleurs1948} fit axis ratio for r filter {\em stack} detection.\\
%rDeVAbErr & - & REAL & -999  &Error in \citet{deVaucouleurs1948} fit axis ratio for r filter {\em stack} detection.\\
%rDeVPhi & degrees & REAL & -999  &Major axis position angle, phi, of \citet{deVaucouleurs1948} fit for r filter {\em stack} detection.\\
%rDeVPhiErr & degrees & REAL & -999  &Error in major axis position angle of \citet{deVaucouleurs1948} fit for r filter {\em stack} detection.\\
%rDeVRa & degrees & FLOAT & -999  &Right ascension of \citet{deVaucouleurs1948} fit center for r filter {\em stack} detection.\\
%rDeVDec & degrees & FLOAT & -999  &Declination of \citet{deVaucouleurs1948} fit center for r filter {\em stack} detection.\\
%rDeVRaErr & arcsec & REAL & -999  &Error in right ascension of \citet{deVaucouleurs1948} fit center for r filter {\em stack} detection.\\
%rDeVDecErr & arcsec & REAL & -999  &Error in declination of \citet{deVaucouleurs1948} fit center for r filter {\em stack} detection.\\
%rDeVChisq & - & REAL & -999  &\citet{deVaucouleurs1948} fit reduced chi squared for r filter {\em stack} detection.\\
%iippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%istackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%istackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for i filter detection.\\
%iDeVRadius & arcsec & REAL & -999  &\citet{deVaucouleurs1948} fit radius for i filter {\em stack} detection.\\
%iDeVRadiusErr & arcsec & REAL & -999  &Error in \citet{deVaucouleurs1948} fit radius for i filter {\em stack} detection.\\
%iDeVMag & AB & REAL & -999  &\citet{deVaucouleurs1948} fit magnitude for i filter {\em stack} detection.\\
%iDeVMagErr & AB & REAL & -999  &Error in \citet{deVaucouleurs1948} fit magnitude for i filter {\em stack} detection.\\
%iDeVAb & - & REAL & -999  &\citet{deVaucouleurs1948} fit axis ratio for i filter {\em stack} detection.\\
%iDeVAbErr & - & REAL & -999  &Error in \citet{deVaucouleurs1948} fit axis ratio for i filter {\em stack} detection.\\
%iDeVPhi & degrees & REAL & -999  &Major axis position angle, phi, of \citet{deVaucouleurs1948} fit for i filter {\em stack} detection.\\
%iDeVPhiErr & degrees & REAL & -999  &Error in major axis position angle of \citet{deVaucouleurs1948} fit for i filter {\em stack} detection.\\
%iDeVRa & degrees & FLOAT & -999  &Right ascension of \citet{deVaucouleurs1948} fit center for i filter {\em stack} detection.\\
%iDeVDec & degrees & FLOAT & -999  &Declination of \citet{deVaucouleurs1948} fit center for i filter {\em stack} detection.\\
%iDeVRaErr & arcsec & REAL & -999  &Error in right ascension of \citet{deVaucouleurs1948} fit center for i filter {\em stack} detection.\\
%iDeVDecErr & arcsec & REAL & -999  &Error in declination of \citet{deVaucouleurs1948} fit center for i filter {\em stack} detection.\\
%iDeVChisq & - & REAL & -999  &\citet{deVaucouleurs1948} fit reduced chi squared for i filter {\em stack} detection.\\
%zippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%zstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%zstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for z filter detection.\\
%zDeVRadius & arcsec & REAL & -999  &\citet{deVaucouleurs1948} fit radius for z filter {\em stack} detection.\\
%zDeVRadiusErr & arcsec & REAL & -999  &Error in \citet{deVaucouleurs1948} fit radius for z filter {\em stack} detection.\\
%zDeVMag & AB & REAL & -999  &\citet{deVaucouleurs1948} fit magnitude for z filter {\em stack} detection.\\
%zDeVMagErr & AB & REAL & -999  &Error in \citet{deVaucouleurs1948} fit magnitude for z filter {\em stack} detection.\\
%zDeVAb & - & REAL & -999  &\citet{deVaucouleurs1948} fit axis ratio for z filter {\em stack} detection.\\
%zDeVAbErr & - & REAL & -999  &Error in \citet{deVaucouleurs1948} fit axis ratio for z filter {\em stack} detection.\\
%zDeVPhi & degrees & REAL & -999  &Major axis position angle, phi, of \citet{deVaucouleurs1948} fit for z filter {\em stack} detection.\\
%zDeVPhiErr & degrees & REAL & -999  &Error in major axis position angle of \citet{deVaucouleurs1948} fit for z filter {\em stack} detection.\\
%zDeVRa & degrees & FLOAT & -999  &Right ascension of \citet{deVaucouleurs1948} fit center for z filter {\em stack} detection.\\
%zDeVDec & degrees & FLOAT & -999  &Declination of \citet{deVaucouleurs1948} fit center for z filter {\em stack} detection.\\
%zDeVRaErr & arcsec & REAL & -999  &Error in right ascension of \citet{deVaucouleurs1948} fit center for z filter {\em stack} detection.\\
%zDeVDecErr & arcsec & REAL & -999  &Error in declination of \citet{deVaucouleurs1948} fit center for z filter {\em stack} detection.\\
%zDeVChisq & - & REAL & -999  &\citet{deVaucouleurs1948} fit reduced chi squared for z filter {\em stack} detection.\\
%yippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%ystackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%ystackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for y filter detection.\\
%yDeVRadius & arcsec & REAL & -999  &\citet{deVaucouleurs1948} fit radius for y filter {\em stack} detection.\\
%yDeVRadiusErr & arcsec & REAL & -999  &Error in \citet{deVaucouleurs1948} fit radius for y filter {\em stack} detection.\\
%yDeVMag & AB & REAL & -999  &\citet{deVaucouleurs1948} fit magnitude for y filter {\em stack} detection.\\
%yDeVMagErr & AB & REAL & -999  &Error in \citet{deVaucouleurs1948} fit magnitude for y filter {\em stack} detection.\\
%yDeVAb & - & REAL & -999  &\citet{deVaucouleurs1948} fit axis ratio for y filter {\em stack} detection.\\
%yDeVAbErr & - & REAL & -999  &Error in \citet{deVaucouleurs1948} fit axis ratio for y filter {\em stack} detection.\\
%yDeVPhi & degrees & REAL & -999  &Major axis position angle, phi, of \citet{deVaucouleurs1948} fit for y filter {\em stack} detection.\\
%yDeVPhiErr & degrees & REAL & -999  &Error in major axis position angle of \citet{deVaucouleurs1948} fit for y filter {\em stack} detection.\\
%yDeVRa & degrees & FLOAT & -999  &Right ascension of \citet{deVaucouleurs1948} fit center for y filter {\em stack} detection.\\
%yDeVDec & degrees & FLOAT & -999  &Declination of \citet{deVaucouleurs1948} fit center for y filter {\em stack} detection.\\
%yDeVRaErr & arcsec & REAL & -999  &Error in right ascension of \citet{deVaucouleurs1948} fit center for y filter {\em stack} detection.\\
%yDeVDecErr & arcsec & REAL & -999  &Error in declination of \citet{deVaucouleurs1948} fit center for y filter {\em stack} detection.\\
%yDeVChisq & - & REAL & -999  &\citet{deVaucouleurs1948} fit reduced chi squared for y filter {\em stack} detection.\\
yDeVChisq \\
\hline
\end{tabular}
\end{center}
\label{table:StackModelFitDeV}
\end{table}%

\begin{table}
\caption{StackModelFitSer: Contains the \citet{Sersic1963} fit parameters to extended sources.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections \citep{Sersic1963}.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gSerRadius & arcsec & REAL & -999  &\citet{Sersic1963} fit radius for g filter {\em stack} detection.\\
gSerRadiusErr & arcsec & REAL & -999  &Error in \citet{Sersic1963} fit radius for g filter {\em stack} detection.\\
gSerMag & AB & REAL & -999  &\citet{Sersic1963} fit magnitude for g filter {\em stack} detection.\\
gSerMagErr & AB & REAL & -999  &Error in \citet{Sersic1963} fit magnitude for g filter {\em stack} detection.\\
gSerAb & - & REAL & -999  &\citet{Sersic1963} fit axis ratio for g filter {\em stack} detection.\\
gSerAbErr & - & REAL & -999  &Error in \citet{Sersic1963} fit axis ratio for g filter {\em stack} detection.\\
gSerNu & - & REAL & -999  &\citet{Sersic1963} fit index for g filter {\em stack} detection.\\
gSerNuErr & - & REAL & -999  &Error in \citet{Sersic1963} fit index for g filter {\em stack} detection.\\
gSerPhi & degrees & REAL & -999  &Major axis position angle, phi, of \citet{Sersic1963} fit for g filter {\em stack} detection.\\
gSerPhiErr & degrees & REAL & -999  &Error in major axis position angle of \citet{Sersic1963} fit for g filter {\em stack} detection.\\
gSerRa & degrees & FLOAT & -999  &Right ascension of \citet{Sersic1963} fit center for g filter {\em stack} detection.\\
gSerDec & degrees & FLOAT & -999  &Declination of \citet{Sersic1963} fit center for g filter {\em stack} detection.\\
gSerRaErr & arcsec & REAL & -999  &Error in right ascension of \citet{Sersic1963} fit center for g filter {\em stack} detection.\\
gSerDecErr & arcsec & REAL & -999  &Error in declination of \citet{Sersic1963} fit center for g filter {\em stack} detection.\\
gSerChisq & - & REAL & -999  &\citet{Sersic1963} fit reduced chi squared for g filter {\em stack} detection.\\
rippDetectID \\
... & & & & same entries repeated for r, i, z, and y filters \\
%rippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%rstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%rstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for r filter detection.\\
%rSerRadius & arcsec & REAL & -999  &\citet{Sersic1963} fit radius for r filter {\em stack} detection.\\
%rSerRadiusErr & arcsec & REAL & -999  &Error in \citet{Sersic1963} fit radius for r filter {\em stack} detection.\\
%rSerMag & AB & REAL & -999  &\citet{Sersic1963} fit magnitude for r filter {\em stack} detection.\\
%rSerMagErr & AB & REAL & -999  &Error in \citet{Sersic1963} fit magnitude for r filter {\em stack} detection.\\
%rSerAb & - & REAL & -999  &\citet{Sersic1963} fit axis ratio for r filter {\em stack} detection.\\
%rSerAbErr & - & REAL & -999  &Error in \citet{Sersic1963} fit axis ratio for r filter {\em stack} detection.\\
%rSerNu & - & REAL & -999  &\citet{Sersic1963} fit index for r filter {\em stack} detection.\\
%rSerNuErr & - & REAL & -999  &Error in \citet{Sersic1963} fit index for r filter {\em stack} detection.\\
%rSerPhi & degrees & REAL & -999  &Major axis position angle, phi, of \citet{Sersic1963} fit for r filter {\em stack} detection.\\
%rSerPhiErr & degrees & REAL & -999  &Error in major axis position angle of \citet{Sersic1963} fit for r filter {\em stack} detection.\\
%rSerRa & degrees & FLOAT & -999  &Right ascension of \citet{Sersic1963} fit center for r filter {\em stack} detection.\\
%rSerDec & degrees & FLOAT & -999  &Declination of \citet{Sersic1963} fit center for r filter {\em stack} detection.\\
%rSerRaErr & arcsec & REAL & -999  &Error in right ascension of \citet{Sersic1963} fit center for r filter {\em stack} detection.\\
%rSerDecErr & arcsec & REAL & -999  &Error in declination of \citet{Sersic1963} fit center for r filter {\em stack} detection.\\
%rSerChisq & - & REAL & -999  &\citet{Sersic1963} fit reduced chi squared for r filter {\em stack} detection.\\
%iippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%istackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%istackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for i filter detection.\\
%iSerRadius & arcsec & REAL & -999  &\citet{Sersic1963} fit radius for i filter {\em stack} detection.\\
%iSerRadiusErr & arcsec & REAL & -999  &Error in \citet{Sersic1963} fit radius for i filter {\em stack} detection.\\
%iSerMag & AB & REAL & -999  &\citet{Sersic1963} fit magnitude for i filter {\em stack} detection.\\
%iSerMagErr & AB & REAL & -999  &Error in \citet{Sersic1963} fit magnitude for i filter {\em stack} detection.\\
%iSerAb & - & REAL & -999  &\citet{Sersic1963} fit axis ratio for i filter {\em stack} detection.\\
%iSerAbErr & - & REAL & -999  &Error in \citet{Sersic1963} fit axis ratio for i filter {\em stack} detection.\\
%iSerNu & - & REAL & -999  &\citet{Sersic1963} fit index for i filter {\em stack} detection.\\
%iSerNuErr & - & REAL & -999  &Error in \citet{Sersic1963} fit index for i filter {\em stack} detection.\\
%iSerPhi & degrees & REAL & -999  &Major axis position angle, phi, of \citet{Sersic1963} fit for i filter {\em stack} detection.\\
%iSerPhiErr & degrees & REAL & -999  &Error in major axis position angle of \citet{Sersic1963} fit for i filter {\em stack} detection.\\
%iSerRa & degrees & FLOAT & -999  &Right ascension of \citet{Sersic1963} fit center for i filter {\em stack} detection.\\
%iSerDec & degrees & FLOAT & -999  &Declination of \citet{Sersic1963} fit center for i filter {\em stack} detection.\\
%iSerRaErr & arcsec & REAL & -999  &Error in right ascension of \citet{Sersic1963} fit center for i filter {\em stack} detection.\\
%iSerDecErr & arcsec & REAL & -999  &Error in declination of \citet{Sersic1963} fit center for i filter {\em stack} detection.\\
%iSerChisq & - & REAL & -999  &\citet{Sersic1963} fit reduced chi squared for i filter {\em stack} detection.\\
%zippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%zstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%zstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for z filter detection.\\
%zSerRadius & arcsec & REAL & -999  &\citet{Sersic1963} fit radius for z filter {\em stack} detection.\\
%zSerRadiusErr & arcsec & REAL & -999  &Error in \citet{Sersic1963} fit radius for z filter {\em stack} detection.\\
%zSerMag & AB & REAL & -999  &\citet{Sersic1963} fit magnitude for z filter {\em stack} detection.\\
%zSerMagErr & AB & REAL & -999  &Error in \citet{Sersic1963} fit magnitude for z filter {\em stack} detection.\\
%zSerAb & - & REAL & -999  &\citet{Sersic1963} fit axis ratio for z filter {\em stack} detection.\\
%zSerAbErr & - & REAL & -999  &Error in \citet{Sersic1963} fit axis ratio for z filter {\em stack} detection.\\
%zSerNu & - & REAL & -999  &\citet{Sersic1963} fit index for z filter {\em stack} detection.\\
%zSerNuErr & - & REAL & -999  &Error in \citet{Sersic1963} fit index for z filter {\em stack} detection.\\
%zSerPhi & degrees & REAL & -999  &Major axis position angle, phi, of \citet{Sersic1963} fit for z filter {\em stack} detection.\\
%zSerPhiErr & degrees & REAL & -999  &Error in major axis position angle of \citet{Sersic1963} fit for z filter {\em stack} detection.\\
%zSerRa & degrees & FLOAT & -999  &Right ascension of \citet{Sersic1963} fit center for z filter {\em stack} detection.\\
%zSerDec & degrees & FLOAT & -999  &Declination of \citet{Sersic1963} fit center for z filter {\em stack} detection.\\
%zSerRaErr & arcsec & REAL & -999  &Error in right ascension of \citet{Sersic1963} fit center for z filter {\em stack} detection.\\
%zSerDecErr & arcsec & REAL & -999  &Error in declination of \citet{Sersic1963} fit center for z filter {\em stack} detection.\\
%zSerChisq & - & REAL & -999  &\citet{Sersic1963} fit reduced chi squared for z filter {\em stack} detection.\\
%yippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%ystackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%ystackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for y filter detection.\\
%ySerRadius & arcsec & REAL & -999  &\citet{Sersic1963} fit radius for y filter {\em stack} detection.\\
%ySerRadiusErr & arcsec & REAL & -999  &Error in \citet{Sersic1963} fit radius for y filter {\em stack} detection.\\
%ySerMag & AB & REAL & -999  &\citet{Sersic1963} fit magnitude for y filter {\em stack} detection.\\
%ySerMagErr & AB & REAL & -999  &Error in \citet{Sersic1963} fit magnitude for y filter {\em stack} detection.\\
%ySerAb & - & REAL & -999  &\citet{Sersic1963} fit axis ratio for y filter {\em stack} detection.\\
%ySerAbErr & - & REAL & -999  &Error in \citet{Sersic1963} fit axis ratio for y filter {\em stack} detection.\\
%ySerNu & - & REAL & -999  &\citet{Sersic1963} fit index for y filter {\em stack} detection.\\
%ySerNuErr & - & REAL & -999  &Error in \citet{Sersic1963} fit index for y filter {\em stack} detection.\\
%ySerPhi & degrees & REAL & -999  &Major axis position angle, phi, of \citet{Sersic1963} fit for y filter {\em stack} detection.\\
%ySerPhiErr & degrees & REAL & -999  &Error in major axis position angle of \citet{Sersic1963} fit for y filter {\em stack} detection.\\
%ySerRa & degrees & FLOAT & -999  &Right ascension of \citet{Sersic1963} fit center for y filter {\em stack} detection.\\
%ySerDec & degrees & FLOAT & -999  &Declination of \citet{Sersic1963} fit center for y filter {\em stack} detection.\\
%ySerRaErr & arcsec & REAL & -999  &Error in right ascension of \citet{Sersic1963} fit center for y filter {\em stack} detection.\\
%ySerDecErr & arcsec & REAL & -999  &Error in declination of \citet{Sersic1963} fit center for y filter {\em stack} detection.\\
%ySerChisq & - & REAL & -999  &\citet{Sersic1963} fit reduced chi squared for y filter {\em stack} detection.\\
ySerChisq \\
\hline
\end{tabular}
\end{center}
\label{table:StackModelFitSer}
\end{table}%

\clearpage
%\end{document} %happy

\begin{table}
\caption{StackApFlxExGalUnc: Contains the unconvolved fluxes within the SDSS R3 (r = 1.03 arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21 arcsec) apertures \citep{Stoughton2002} for extended sources.  These measurements are only provided for objects in the extragalactic sky, i.e., they are not provided for objects in the Galactic plane because they are not useful in crowded areas.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.  }
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gflxR3 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 1.03 arcsec.\\
gflxR3Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 1.03 arcsec.\\
gflxR3Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection within an aperture of radius \\
& & & & r = 1.03 arcsec.\\
gflxR3Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 1.03 arcsec.\\
gflxR4 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 1.76 arcsec.\\
gflxR4Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 1.76 arcsec.\\
gflxR4Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection within an aperture of radius \\
& & & & r = 1.76 arcsec.\\
gflxR4Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 1.76 arcsec.\\
gflxR5 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 3.00 arcsec.\\
gflxR5Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 3.00 arcsec.\\
gflxR5Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection within an aperture of radius \\
& & & & r = 3.00 arcsec.\\
gflxR5Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 3.00 arcsec.\\
gflxR6 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 4.63 arcsec.\\
gflxR6Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 4.63 arcsec.\\
gflxR6Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection within an aperture of radius \\
& & & & r = 4.63 arcsec.\\
gflxR6Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 4.63 arcsec.\\
gflxR7 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 7.43 arcsec.\\
gflxR7Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 7.43 arcsec.\\
gflxR7Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection within an aperture of radius \\
& & & & r = 7.43 arcsec.\\
gflxR7Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 7.43 arcsec.\\
gflxR8 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 11.42 arcsec.\\
gflxR8Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 11.42 arcsec.\\
gflxR8Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection within an aperture of radius \\
& & & & r = 11.42 arcsec.\\
gflxR8Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 11.42 arcsec.\\
gflxR9 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 18.20 arcsec.\\
gflxR9Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 18.20 arcsec.\\
gflxR9Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection within an aperture of radius \\
& & & & r = 18.20 arcsec.\\
gflxR9Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 18.20 arcsec.\\
gflxR10 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 28.20 arcsec.\\
gflxR10Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 28.20 arcsec.\\
gflxR10Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection within an aperture of radius \\
& & & & r = 28.20 arcsec.\\
gflxR10Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 28.20 arcsec.\\
gflxR11 & Jy & REAL & -999  &Flux from g filter detection within an aperture of radius r = 44.21 arcsec.\\
gflxR11Err & Jy & REAL & -999  &Error in flux from g filter detection within an aperture of radius r = 44.21 arcsec.\\
gflxR11Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection within an aperture of radius \\
& & & & r = 44.21 arcsec.\\
gflxR11Fill & - & REAL & -999  &Aperture fill factor for g filter detection within an aperture of radius r = 44.21 arcsec.\\
rippDetectID\\
... & & & & same entries repeated for r, i, z, and y filters \\
%rippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%rstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%rstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for r filter detection.\\
%rflxR3 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 1.03 arcsec.\\
%rflxR3Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 1.03 arcsec.\\
%rflxR3Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 1.03 arcsec.\\
%rflxR3Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 1.03 arcsec.\\
%rflxR4 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 1.76 arcsec.\\
%rflxR4Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 1.76 arcsec.\\
%rflxR4Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 1.76 arcsec.\\
%rflxR4Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 1.76 arcsec.\\
%rflxR5 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 3.00 arcsec.\\
%rflxR5Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 3.00 arcsec.\\
%rflxR5Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 3.00 arcsec.\\
%rflxR5Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 3.00 arcsec.\\
%rflxR6 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 4.63 arcsec.\\
%rflxR6Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 4.63 arcsec.\\
%rflxR6Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 4.63 arcsec.\\
%rflxR6Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 4.63 arcsec.\\
%rflxR7 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 7.43 arcsec.\\
%rflxR7Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 7.43 arcsec.\\
%rflxR7Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 7.43 arcsec.\\
%rflxR7Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 7.43 arcsec.\\
%rflxR8 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 11.42 arcsec.\\
%rflxR8Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 11.42 arcsec.\\
%rflxR8Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 11.42 arcsec.\\
%rflxR8Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 11.42 arcsec.\\
%rflxR9 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 18.20 arcsec.\\
%rflxR9Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 18.20 arcsec.\\
%rflxR9Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 18.20 arcsec.\\
%rflxR9Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 18.20 arcsec.\\
%rflxR10 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 28.20 arcsec.\\
%rflxR10Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 28.20 arcsec.\\
%rflxR10Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 28.20 arcsec.\\
%rflxR10Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 28.20 arcsec.\\
%rflxR11 & Jy & REAL & -999  &Flux from r filter detection within an aperture of radius r = 44.21 arcsec.\\
%rflxR11Err & Jy & REAL & -999  &Error in flux from r filter detection within an aperture of radius r = 44.21 arcsec.\\
%rflxR11Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection within an aperture of radius r = 44.21 arcsec.\\
%rflxR11Fill & - & REAL & -999  &Aperture fill factor for r filter detection within an aperture of radius r = 44.21 arcsec.\\
%iippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%istackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%istackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for i filter detection.\\
%iflxR3 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 1.03 arcsec.\\
%iflxR3Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 1.03 arcsec.\\
%iflxR3Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 1.03 arcsec.\\
%iflxR3Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 1.03 arcsec.\\
%iflxR4 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 1.76 arcsec.\\
%iflxR4Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 1.76 arcsec.\\
%iflxR4Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 1.76 arcsec.\\
%iflxR4Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 1.76 arcsec.\\
%iflxR5 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 3.00 arcsec.\\
%iflxR5Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 3.00 arcsec.\\
%iflxR5Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 3.00 arcsec.\\
%iflxR5Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 3.00 arcsec.\\
%iflxR6 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 4.63 arcsec.\\
%iflxR6Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 4.63 arcsec.\\
%iflxR6Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 4.63 arcsec.\\
%iflxR6Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 4.63 arcsec.\\
%iflxR7 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 7.43 arcsec.\\
%iflxR7Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 7.43 arcsec.\\
%iflxR7Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 7.43 arcsec.\\
%iflxR7Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 7.43 arcsec.\\
%iflxR8 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 11.42 arcsec.\\
%iflxR8Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 11.42 arcsec.\\
%iflxR8Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 11.42 arcsec.\\
%iflxR8Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 11.42 arcsec.\\
%iflxR9 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 18.20 arcsec.\\
%iflxR9Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 18.20 arcsec.\\
%iflxR9Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 18.20 arcsec.\\
%iflxR9Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 18.20 arcsec.\\
%iflxR10 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 28.20 arcsec.\\
%iflxR10Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 28.20 arcsec.\\
%iflxR10Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 28.20 arcsec.\\
%iflxR10Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 28.20 arcsec.\\
%iflxR11 & Jy & REAL & -999  &Flux from i filter detection within an aperture of radius r = 44.21 arcsec.\\
%iflxR11Err & Jy & REAL & -999  &Error in flux from i filter detection within an aperture of radius r = 44.21 arcsec.\\
%iflxR11Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection within an aperture of radius r = 44.21 arcsec.\\
%iflxR11Fill & - & REAL & -999  &Aperture fill factor for i filter detection within an aperture of radius r = 44.21 arcsec.\\
%zippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%zstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%zstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for z filter detection.\\
%zflxR3 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 1.03 arcsec.\\
%zflxR3Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 1.03 arcsec.\\
%zflxR3Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 1.03 arcsec.\\
%zflxR3Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 1.03 arcsec.\\
%flxR4 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 1.76 arcsec.\\
%zflxR4Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 1.76 arcsec.\\
%zflxR4Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 1.76 arcsec.\\
%zflxR4Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 1.76 arcsec.\\
%zflxR5 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 3.00 arcsec.\\
%zflxR5Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 3.00 arcsec.\\
%zflxR5Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 3.00 arcsec.\\
%flxR5Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 3.00 arcsec.\\
%zflxR6 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 4.63 arcsec.\\
%zflxR6Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 4.63 arcsec.\\
%zflxR6Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 4.63 arcsec.\\
%zflxR6Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 4.63 arcsec.\\
%zflxR7 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 7.43 arcsec.\\
%zflxR7Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 7.43 arcsec.\\
%zflxR7Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 7.43 arcsec.\\
%zflxR7Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 7.43 arcsec.\\
%zflxR8 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 11.42 arcsec.\\
%zflxR8Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 11.42 arcsec.\\
%zflxR8Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 11.42 arcsec.\\
%flxR8Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 11.42 arcsec.\\
%zflxR9 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 18.20 arcsec.\\
%zflxR9Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 18.20 arcsec.\\
%zflxR9Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 18.20 arcsec.\\
%zflxR9Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 18.20 arcsec.\\
%zflxR10 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 28.20 arcsec.\\
%zflxR10Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 28.20 arcsec.\\
%zflxR10Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 28.20 arcsec.\\
%zflxR10Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 28.20 arcsec.\\
%zflxR11 & Jy & REAL & -999  &Flux from z filter detection within an aperture of radius r = 44.21 arcsec.\\
%zflxR11Err & Jy & REAL & -999  &Error in flux from z filter detection within an aperture of radius r = 44.21 arcsec.\\
%zflxR11Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection within an aperture of radius r = 44.21 arcsec.\\
%zflxR11Fill & - & REAL & -999  &Aperture fill factor for z filter detection within an aperture of radius r = 44.21 arcsec.\\
%yippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%ystackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%ystackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for y filter detection.\\
%yflxR3 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 1.03 arcsec.\\
%yflxR3Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 1.03 arcsec.\\
%yflxR3Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 1.03 arcsec.\\
%yflxR3Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 1.03 arcsec.\\
%yflxR4 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 1.76 arcsec.\\
%yflxR4Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 1.76 arcsec.\\
%yflxR4Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 1.76 arcsec.\\
%yflxR4Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 1.76 arcsec.\\
%yflxR5 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 3.00 arcsec.\\
%yflxR5Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 3.00 arcsec.\\
%yflxR5Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 3.00 arcsec.\\
%yflxR5Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 3.00 arcsec.\\
%yflxR6 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 4.63 arcsec.\\
%yflxR6Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 4.63 arcsec.\\
%yflxR6Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 4.63 arcsec.\\
%yflxR6Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 4.63 arcsec.\\
%yflxR7 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 7.43 arcsec.\\
%yflxR7Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 7.43 arcsec.\\
%yflxR7Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 7.43 arcsec.\\
%yflxR7Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 7.43 arcsec.\\
%yflxR8 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 11.42 arcsec.\\
%yflxR8Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 11.42 arcsec.\\
%flxR8Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 11.42 arcsec.\\
%yflxR8Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 11.42 arcsec.\\
%yflxR9 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 18.20 arcsec.\\
%yflxR9Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 18.20 arcsec.\\
%yflxR9Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 18.20 arcsec.\\
%yflxR9Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 18.20 arcsec.\\
%yflxR10 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 28.20 arcsec.\\
%yflxR10Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 28.20 arcsec.\\
%yflxR10Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 28.20 arcsec.\\
%yflxR10Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 28.20 arcsec.\\
%yflxR11 & Jy & REAL & -999  &Flux from y filter detection within an aperture of radius r = 44.21 arcsec.\\
%flxR11Err & Jy & REAL & -999  &Error in flux from y filter detection within an aperture of radius r = 44.21 arcsec.\\
%yflxR11Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection within an aperture of radius r = 44.21 arcsec.\\
%yflxR11Fill & - & REAL & -999  &Aperture fill factor for y filter detection within an aperture of radius r = 44.21 arcsec.\\
yflxR11Fill\\
\hline
\end{tabular}
\end{center}
\label{table:StackApFlxExGalUnc}
\end{table}%

\begin{table}
\caption{StackApFlxExGalCon6: Contains the fluxes within the SDSS R3 (r = 1.03 arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21 arcsec) apertures (\citep{Stoughton2002} for extended sources after the images have been convolved to a target of 6 sky pixels (1.5 arcsec).  These measurements are only provided for objects in the extragalactic sky, i.e., they are not provided for objects in the Galactic plane because they are not useful in crowded areas.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gc6flxR3 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels (1.5 arcsec) \\
& & & & within an aperture of radius r = 1.03 arcsec.\\
gc6flxR3Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 6 sky pixels \\
& & & & (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
gc6flxR3Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 6 \\
& & & & sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
gc6flxR3Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 6 sky pixels \\
& & & & (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%gc6flxR4 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels (1.5 arcsec) \\
%& & & & within an aperture of radius r = 1.76 arcsec.\\
%gc6flxR4Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%gc6flxR4Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 6 \\
%& & & & sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%gc6flxR4Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%gc6flxR5 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels (1.5 arcsec) \\
%& & & & within an aperture of radius r = 3.00 arcsec.\\
%gc6flxR5Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%gc6flxR5Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 6 \\
%& & & & sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%gc6flxR5Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%gc6flxR6 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels (1.5 arcsec) \\
%& & & & within an aperture of radius r = 4.63 arcsec.\\
%gc6flxR6Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%gc6flxR6Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 6 \\
%& & & & sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%gc6flxR6Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%gc6flxR7 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels (1.5 arcsec) \\
%& & & & within an aperture of radius r = 7.43 arcsec.\\
%gc6flxR7Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%gc6flxR7Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 6 \\
%& & & & sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%gc6flxR7Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%gc6flxR8 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels (1.5 arcsec) \\
%& & & & within an aperture of radius r = 11.42 arcsec.\\
%gc6flxR8Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%gc6flxR8Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 6 \\
%& & & & sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%gc6flxR8Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%gc6flxR9 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels (1.5 arcsec) \\
%& & & & within an aperture of radius r = 18.20 arcsec.\\
%gc6flxR9Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%gc6flxR9Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 6 \\
%& & & & sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%gc6flxR9Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%gc6flxR10 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels (1.5 arcsec) \\
%& & & & within an aperture of radius r = 28.20 arcsec.\\
%gc6flxR10Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%gc6flxR10Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 6 \\
%& & & & sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%gc6flxR10Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 6 sky pixels \\
%& & & & (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
... &  & & & gc6flxR3 ... gc6flxR3Fill columns repeated for R4 (r = 1.76 arcsec).\\
... &  & & & repeated for R5 (r = 3.00 arcsec).\\
... &  & & & repeated for R6 (r = 4.63 arcsec).\\
... &  & & & repeated for R7 (r = 7.43 arcsec).\\
... &  & & & repeated for R8 (r = 11.42 arcsec).\\
... &  & & & repeated for R9 (r = 18.20 arcsec).\\
... &  & & & repeated for R10 (r = 28.20 arcsec).\\
gc6flxR11 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 6 sky pixels (1.5 arcsec) \\
& & & & within an aperture of radius r = 44.21 arcsec.\\
gc6flxR11Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 6 sky pixels \\
& & & & (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
gc6flxR11Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 6 \\
& & & & sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
gc6flxR11Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 6 sky pixels \\
& & & & (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
rippDetectID\\
... & & & & same entries repeated for r, i, z, and y filters \\
%rippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%rstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%rstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for r filter detection.\\
%rc6flxR3 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%rc6flxR3Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%rc6flxR3Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%rc6flxR3Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%rc6flxR4 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%rc6flxR4Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%rc6flxR4Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%rc6flxR4Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%rc6flxR5 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc6flxR5Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc6flxR5Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc6flxR5Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc6flxR6 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc6flxR6Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc6flxR6Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc6flxR6Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc6flxR7 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc6flxR7Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc6flxR7Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc6flxR7Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc6flxR8 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%rc6flxR8Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%rc6flxR8Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%rc6flxR8Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%rc6flxR9 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%rc6flxR9Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%rc6flxR9Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%rc6flxR9Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%rc6flxR10 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%rc6flxR10Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%rc6flxR10Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%rc6flxR10Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%rc6flxR11 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%rc6flxR11Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%rc6flxR11Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%rc6flxR11Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%iippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%istackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%istackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for i filter detection.\\
%ic6flxR3 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%ic6flxR3Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%ic6flxR3Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%ic6flxR3Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%ic6flxR4 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%ic6flxR4Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%ic6flxR4Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%ic6flxR4Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%ic6flxR5 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic6flxR5Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic6flxR5Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic6flxR5Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic6flxR6 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic6flxR6Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic6flxR6Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic6flxR6Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic6flxR7 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic6flxR7Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic6flxR7Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic6flxR7Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic6flxR8 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%ic6flxR8Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%ic6flxR8Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%ic6flxR8Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%ic6flxR9 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%ic6flxR9Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%ic6flxR9Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%ic6flxR9Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%ic6flxR10 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%ic6flxR10Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%ic6flxR10Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%ic6flxR10Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%ic6flxR11 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%ic6flxR11Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%ic6flxR11Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%ic6flxR11Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%zippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%zstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%zstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for z filter detection.\\
%zc6flxR3 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%zc6flxR3Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%zc6flxR3Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%zc6flxR3Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%zc6flxR4 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%zc6flxR4Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%zc6flxR4Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%zc6flxR4Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%zc6flxR5 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc6flxR5Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc6flxR5Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc6flxR5Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc6flxR6 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc6flxR6Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc6flxR6Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc6flxR6Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc6flxR7 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc6flxR7Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc6flxR7Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc6flxR7Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc6flxR8 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%zc6flxR8Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%zc6flxR8Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%zc6flxR8Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%zc6flxR9 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%zc6flxR9Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%zc6flxR9Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%zc6flxR9Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%zc6flxR10 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%zc6flxR10Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%zc6flxR10Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%zc6flxR10Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%zc6flxR11 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%zc6flxR11Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%zc6flxR11Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%zc6flxR11Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%yippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%ystackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%ystackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for y filter detection.\\
%yc6flxR3 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%yc6flxR3Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%yc6flxR3Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%yc6flxR3Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%yc6flxR4 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%yc6flxR4Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%yc6flxR4Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%yc6flxR4Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%yc6flxR5 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc6flxR5Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc6flxR5Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc6flxR5Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc6flxR6 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc6flxR6Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc6flxR6Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc6flxR6Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc6flxR7 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc6flxR7Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc6flxR7Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc6flxR7Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc6flxR8 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%yc6flxR8Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%yc6flxR8Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%yc6flxR8Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%yc6flxR9 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%yc6flxR9Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%yc6flxR9Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%yc6flxR9Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%yc6flxR10 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%yc6flxR10Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%yc6flxR10Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%yc6flxR10Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%yc6flxR11 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%yc6flxR11Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%yc6flxR11Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%yc6flxR11Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 6 sky pixels (1.5 arcsec) within an aperture of radius r = 44.21 arcsec.\\
yc6flxR11Fill \\
\hline
\end{tabular}
\end{center}
\label{table:StackApFlxExGalCon6}
\end{table}%

\begin{table}
\caption{StackApFlxExGalCon8: Contains the fluxes within the SDSS R3 (r = 1.03 arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21 arcsec) apertures \citep{Stoughton2002} for extended sources after the images have been convolved to a target of 8 sky pixels (2.0 arcsec).  These measurements are only provided for objects in the extragalactic sky, i.e., they are not provided for objects in the Galactic plane because they are not useful in crowded areas.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gc8flxR3 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels (2.0 arcsec) \\
& & & & within an aperture of radius r = 1.03 arcsec.\\
gc8flxR3Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels \\
& & & & (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
gc8flxR3Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 8 \\
& & & & sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
gc8flxR3Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
& & & & (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%gc8flxR4 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels (2.0 arcsec) \\
%& & & & within an aperture of radius r = 1.76 arcsec.\\
%gc8flxR4Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%gc8flxR4Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 8 \\
%& & & & sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%gc8flxR4Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%gc8flxR5 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels (2.0 arcsec) \\
%& & & & within an aperture of radius r = 3.00 arcsec.\\
%gc8flxR5Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%gc8flxR5Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 8 \\
%& & & & sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%gc8flxR5Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%gc8flxR6 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels (2.0 arcsec) \\
%& & & & within an aperture of radius r = 4.63 arcsec.\\
%gc8flxR6Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%gc8flxR6Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 8 \\
%& & & & sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%gc8flxR6Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%gc8flxR7 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels (2.0 arcsec) \\
%& & & & within an aperture of radius r = 7.43 arcsec.\\
%gc8flxR7Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%gc8flxR7Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 8 \\
%& & & & sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%gc8flxR7Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%gc8flxR8 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels (2.0 arcsec) \\
%& & & & within an aperture of radius r = 11.42 arcsec.\\
%gc8flxR8Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%gc8flxR8Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 8 \\
%& & & & sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%gc8flxR8Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%gc8flxR9 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels (2.0 arcsec) \\
%& & & & within an aperture of radius r = 18.20 arcsec.\\
%gc8flxR9Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%gc8flxR9Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 8 \\
%& & & & sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%gc8flxR9Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%gc8flxR10 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels (2.0 arcsec) \\
%& & & & within an aperture of radius r = 28.20 arcsec.\\
%gc8flxR10Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels \\
%& & & & (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%gc8flxR10Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 8 \\
%& & & & sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%gc8flxR10Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
... &  & & & gc8flxR3 ... gc8flxR3Fill columns repeated for R4 (r = 1.76 arcsec).\\
... &  & & & repeated for R5 (r = 3.00 arcsec).\\
... &  & & & repeated for R6 (r = 4.63 arcsec).\\
... &  & & & repeated for R7 (r = 7.43 arcsec).\\
... &  & & & repeated for R8 (r = 11.42 arcsec).\\
... &  & & & repeated for R9 (r = 18.20 arcsec).\\
... &  & & & repeated for R10 (r = 28.20 arcsec).\\
gc8flxR11 & Jy & REAL & -999  &Flux from g filter detection convolved to a target of 8 sky pixels (2.0 arcsec) \\
& & & & within an aperture of radius r = 44.21 arcsec.\\
gc8flxR11Err & Jy & REAL & -999  &Error in flux from g filter detection convolved to a target of 8 sky pixels \\
& & & & (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
gc8flxR11Std & Jy & REAL & -999  &Standard deviation of flux from g filter detection convolved to a target of 8 \\
& & & & sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
gc8flxR11Fill & - & REAL & -999  &Aperture fill factor for g filter detection convolved to a target of 8 sky pixels \\
& & & & (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
rippDetectID \\
... & & & & same entries repeated for r, i, z, and y filters \\
%rippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%rstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%rstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for r filter detection.\\
%rc8flxR3 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%rc8flxR3Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%rc8flxR3Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%rc8flxR3Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%rc8flxR4 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%rc8flxR4Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%rc8flxR4Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%rc8flxR4Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%rc8flxR5 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc8flxR5Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc8flxR5Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc8flxR5Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%rc8flxR6 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc8flxR6Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc8flxR6Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc8flxR6Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%rc8flxR7 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc8flxR7Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc8flxR7Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc8flxR7Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%rc8flxR8 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%rc8flxR8Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%rc8flxR8Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%rc8flxR8Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%rc8flxR9 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%rc8flxR9Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%rc8flxR9Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%rc8flxR9Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%rc8flxR10 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%rc8flxR10Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%rc8flxR10Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%rc8flxR10Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%rc8flxR11 & Jy & REAL & -999  &Flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%rc8flxR11Err & Jy & REAL & -999  &Error in flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%rc8flxR11Std & Jy & REAL & -999  &Standard deviation of flux from r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%rc8flxR11Fill & - & REAL & -999  &Aperture fill factor for r filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%iippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%istackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%istackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for i filter detection.\\
%ic8flxR3 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%ic8flxR3Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%ic8flxR3Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%ic8flxR3Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%ic8flxR4 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%ic8flxR4Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%ic8flxR4Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%ic8flxR4Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%ic8flxR5 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic8flxR5Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic8flxR5Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic8flxR5Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%ic8flxR6 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic8flxR6Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic8flxR6Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic8flxR6Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%ic8flxR7 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic8flxR7Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic8flxR7Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic8flxR7Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%ic8flxR8 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%ic8flxR8Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%ic8flxR8Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%ic8flxR8Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%ic8flxR9 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%ic8flxR9Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%ic8flxR9Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%ic8flxR9Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%ic8flxR10 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%ic8flxR10Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%ic8flxR10Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%ic8flxR10Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%ic8flxR11 & Jy & REAL & -999  &Flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%ic8flxR11Err & Jy & REAL & -999  &Error in flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%ic8flxR11Std & Jy & REAL & -999  &Standard deviation of flux from i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%ic8flxR11Fill & - & REAL & -999  &Aperture fill factor for i filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%zippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%zstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%zstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for z filter detection.\\
%zc8flxR3 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%zc8flxR3Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%zc8flxR3Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%zc8flxR3Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%zc8flxR4 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%zc8flxR4Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%zc8flxR4Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%zc8flxR4Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%zc8flxR5 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc8flxR5Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc8flxR5Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc8flxR5Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%zc8flxR6 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc8flxR6Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc8flxR6Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc8flxR6Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%zc8flxR7 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc8flxR7Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc8flxR7Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc8flxR7Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%zc8flxR8 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%zc8flxR8Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%zc8flxR8Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%zc8flxR8Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%zc8flxR9 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%zc8flxR9Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%zc8flxR9Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%zc8flxR9Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%zc8flxR10 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%zc8flxR10Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%zc8flxR10Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%zc8flxR10Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%zc8flxR11 & Jy & REAL & -999  &Flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%zc8flxR11Err & Jy & REAL & -999  &Error in flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%zc8flxR11Std & Jy & REAL & -999  &Standard deviation of flux from z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%zc8flxR11Fill & - & REAL & -999  &Aperture fill factor for z filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%yippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%ystackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%ystackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for y filter detection.\\
%yc8flxR3 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%yc8flxR3Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%yc8flxR3Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%yc8flxR3Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.03 arcsec.\\
%yc8flxR4 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%yc8flxR4Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%yc8flxR4Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%yc8flxR4Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 1.76 arcsec.\\
%yc8flxR5 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc8flxR5Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc8flxR5Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc8flxR5Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 3.00 arcsec.\\
%yc8flxR6 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc8flxR6Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc8flxR6Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc8flxR6Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 4.63 arcsec.\\
%yc8flxR7 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc8flxR7Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc8flxR7Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc8flxR7Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 7.43 arcsec.\\
%yc8flxR8 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%yc8flxR8Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%yc8flxR8Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%yc8flxR8Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 11.42 arcsec.\\
%yc8flxR9 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%yc8flxR9Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%yc8flxR9Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%yc8flxR9Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 18.20 arcsec.\\
%yc8flxR10 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%yc8flxR10Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%yc8flxR10Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%yc8flxR10Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 28.20 arcsec.\\
%yc8flxR11 & Jy & REAL & -999  &Flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%yc8flxR11Err & Jy & REAL & -999  &Error in flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%yc8flxR11Std & Jy & REAL & -999  &Standard deviation of flux from y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
%yc8flxR11Fill & - & REAL & -999  &Aperture fill factor for y filter detection convolved to a target of 8 sky pixels (2.0 arcsec) within an aperture of radius r = 44.21 arcsec.\\
yc8flxR11Fill \\
\hline
\end{tabular}
\end{center}
\label{table:StackApFlxExGalCon8}
\end{table}%

\clearpage

%\end{document} %happy

\begin{table}
\caption{StackPetrosian: Contains the \citet{Petrosian1976} magnitudes and radii for extended sources.  See {\em StackObjectThin} table for discussion of primary, secondary, and best detections.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsSTid & - & BIGINT & NA  &Unique internal PSPS {\em stack} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomStackObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
primaryDetection & - & TINYINT & 255  &Identifies if this row is the primary {\em stack} detection.\\
bestDetection & - & TINYINT & 255  &Identifies if this row is the best detection.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for g filter detection.\\
gpetRadius & arcsec & REAL & -999  &Petrosian (1976) fit radius for g filter {\em stack} detection.\\
gpetRadiusErr & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for g filter {\em stack} detection.\\
gpetMag & AB & REAL & -999  &Petrosian (1976) magnitude from g filter {\em stack} detection.\\
gpetMagErr & AB & REAL & -999  &Error in Petrosian (1976) magnitude from g filter {\em stack} detection.\\
gpetR50 & arcsec & REAL & -999  &Petrosian (1976) fit radius for g filter {\em stack} detection. at 50\% light\\
gpetR50Err & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for g filter {\em stack} detection. at 50\% light\\
gpetR90 & arcsec & REAL & -999  &Petrosian (1976) fit radius for g filter {\em stack} detection. at 90\% light\\
gpetR90Err & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for g filter {\em stack} detection. at 90\% light\\
gpetCf & - & REAL & -999  &Petrosian (1976) fit coverage factor for g filter {\em stack} detection.\\
rippDetectID \\
... & & & & same entries repeated for r, i, z, and y filters \\
%rippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%rstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%rstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for r filter detection.\\
%rpetRadius & arcsec & REAL & -999  &Petrosian (1976) fit radius for r filter {\em stack} detection.\\
%rpetRadiusErr & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for r filter {\em stack} detection.\\
%rpetMag & AB & REAL & -999  &Petrosian (1976) magnitude from r filter {\em stack} detection.\\
%rpetMagErr & AB & REAL & -999  &Error in Petrosian (1976) magnitude from r filter {\em stack} detection.\\
%rpetR50 & arcsec & REAL & -999  &Petrosian (1976) fit radius for r filter {\em stack} detection. at 50\% light\\
%rpetR50Err & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for r filter {\em stack} detection. at 50\% light\\
%rpetR90 & arcsec & REAL & -999  &Petrosian (1976) fit radius for r filter {\em stack} detection. at 90\% light\\
%rpetR90Err & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for r filter {\em stack} detection. at 90\% light\\
%rpetCf & - & REAL & -999  &Petrosian (1976) fit coverage factor for r filter {\em stack} detection.\\
%iippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%istackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%istackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for i filter detection.\\
%ipetRadius & arcsec & REAL & -999  &Petrosian (1976) fit radius for i filter {\em stack} detection.\\
%ipetRadiusErr & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for i filter {\em stack} detection.\\
%ipetMag & AB & REAL & -999  &Petrosian (1976) magnitude from i filter {\em stack} detection.\\
%ipetMagErr & AB & REAL & -999  &Error in Petrosian (1976) magnitude from i filter {\em stack} detection.\\
%ipetR50 & arcsec & REAL & -999  &Petrosian (1976) fit radius for i filter {\em stack} detection. at 50\% light\\
%ipetR50Err & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for i filter {\em stack} detection. at 50\% light\\
%ipetR90 & arcsec & REAL & -999  &Petrosian (1976) fit radius for i filter {\em stack} detection. at 90\% light\\
%ipetR90Err & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for i filter {\em stack} detection. at 90\% light\\
%ipetCf & - & REAL & -999  &Petrosian (1976) fit coverage factor for i filter {\em stack} detection.\\
%zippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%zstackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%zstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for z filter detection.\\
%zpetRadius & arcsec & REAL & -999  &Petrosian (1976) fit radius for z filter {\em stack} detection.\\
%zpetRadiusErr & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for z filter {\em stack} detection.\\
%zpetMag & AB & REAL & -999  &Petrosian (1976) magnitude from z filter {\em stack} detection.\\
%zpetMagErr & AB & REAL & -999  &Error in Petrosian (1976) magnitude from z filter {\em stack} detection.\\
%zpetR50 & arcsec & REAL & -999  &Petrosian (1976) fit radius for z filter {\em stack} detection. at 50\% light\\
%zpetR50Err & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for z filter {\em stack} detection. at 50\% light\\
%zpetR90 & arcsec & REAL & -999  &Petrosian (1976) fit radius for z filter {\em stack} detection. at 90\% light\\
%zpetR90Err & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for z filter {\em stack} detection. at 90\% light\\
%zpetCf & - & REAL & -999  &Petrosian (1976) fit coverage factor for z filter {\em stack} detection.\\
%yippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%ystackDetectID & - & BIGINT & NA  &Unique {\em stack} detection identifier.\\
%ystackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for y filter detection.\\
%ypetRadius & arcsec & REAL & -999  &Petrosian (1976) fit radius for y filter {\em stack} detection.\\
%ypetRadiusErr & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for y filter {\em stack} detection.\\
%ypetMag & AB & REAL & -999  &Petrosian (1976) magnitude from y filter {\em stack} detection.\\
%ypetMagErr & AB & REAL & -999  &Error in Petrosian (1976) magnitude from y filter {\em stack} detection.\\
%ypetR50 & arcsec & REAL & -999  &Petrosian (1976) fit radius for y filter {\em stack} detection. at 50\% light\\
%ypetR50Err & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for y filter {\em stack} detection. at 50\% light\\
%ypetR90 & arcsec & REAL & -999  &Petrosian (1976) fit radius for y filter {\em stack} detection. at 90\% light\\
%ypetR90Err & arcsec & REAL & -999  &Error in Petrosian (1976) fit radius for y filter {\em stack} detection. at 90\% light\\
%ypetCf & - & REAL & -999  &Petrosian (1976) fit coverage factor for y filter {\em stack} detection.\\
ypetCf \\
\hline
\end{tabular}
\end{center}
\label{table:StackPetrosian}
\end{table}%

\begin{table}
\caption{StackToImage: Contains the mapping of which input images were used to construct a particular stack.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
stackImageID & - & BIGINT & NA  &Unique {\em stack} identifier.\\
imageID & - & BIGINT & NA  &Unique image identifier.  Constructed as (100 * frameID + ccdID).\\
\hline
\end{tabular}
\end{center}
\label{table:StackToImage}
\end{table}%

%\end{document} happy

\begin{table}
\caption{StackToFrame: Contains the mapping of input frames used to construct a particular {\em stack} along with processing stats.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
stackImageID & - & BIGINT & NA  &Unique {\em stack} identifier.\\
frameID & - & INT & NA  &Unique frame/exposure identifier.\\
scaleFactor & - & REAL & 0  &normalization factor applied to input image before stacking.\\
zp & magnitudes & REAL & 0  &Photometric zeropoint.  Necessary for converting listed fluxes and \\ 
& & & & magnitudes back to measured ADU counts.\\
expTime & seconds & REAL & -999  &Exposure time of the frame/exposure.  Necessary for converting \\
& & & & listed fluxes and magnitudes back to measured ADU counts.\\
airMass & - & REAL & 0  &Airmass at midpoint of the exposure.  Necessary for converting \\ 
& & & & listed fluxes and magnitudes back to measured ADU counts.\\
\hline
\end{tabular}
\end{center}
\label{table:StackToFrame}
\end{table}%
%{\color{red} StackDetEffMeta won't compile, I end here. GH: now it is happy}

%\end{document}

%this table is broken FIXXXXX AFFTER LUNCH
\begin{table}
\caption{StackDetEffMeta: Contains the detection efficiency information for a given stacked image.  Provides the number of recovered sources out of 500 injected sources for each magnitude bin and statistics about the magnitudes of the recovered sources for a range of magnitude offsets.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name  & units    & data type & default & description\\
\hline
stackImageID & -         & BIGINT& NA  &Unique  stack identifier.\\
magref      & magnitudes & REAL & NA  &Detection efficiency reference magnitude.\\
nInjected   & -          & INT  & NA  &Number of fake sources injected in each magnitude bin.\\
offset01    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 1.\\
counts01    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 1.\\
diffMean01  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 1.\\
diffStdev01 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 1.\\
errMean01   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 1.\\
offset02    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 2.\\
counts02    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 2.\\
diffMean02  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 2.\\
diffStdev02 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 2.\\
errMean02   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 2.\\
offset03    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 3.\\
counts03    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 3.\\
diffMean03  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 3.\\
diffStdev03 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 3.\\
errMean03   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 3.\\
offset04    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 4.\\
counts04    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 4.\\
diffMean04  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 4.\\
diffStdev04 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 4.\\
errMean04   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 4.\\
offset05    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 5.\\
counts05    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 5.\\
diffMean05  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 5.\\
diffStdev05 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 5.\\
errMean05   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 5.\\
offset06    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 6.\\
counts06    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 6.\\
diffMean06  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 6.\\
diffStdev06 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 6.\\
errMean06   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 6.\\
offset07    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 7.\\
counts07    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 7.\\
diffMean07  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 7.\\
diffStdev07 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 7.\\
errMean07   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 7.\\
offset08    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 8.\\
counts08    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 8.\\
diffMean08  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 8.\\
diffStdev08 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 8.\\
errMean08   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 8.\\
offset09    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 9.\\
counts09    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 9.\\
diffMean09  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 9.\\
diffStdev09 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 9.\\
errMean09   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 9.\\
offset10    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 10.\\
counts10    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 10.\\
diffMean10  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 10.\\
diffStdev10 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 10.\\
errMean10   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 10.\\
offset11    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 11.\\
counts11    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 11.\\
diffMean11  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 11.\\
diffStdev11 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 11.\\
errMean11   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 11.\\
offset12    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 12.\\
counts12    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 12.\\
diffMean12  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 12.\\
diffStdev12 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 12.\\
errMean12   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 12.\\
offset13    & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 13.\\
counts13    & -          & REAL & NA  &Detection efficiency count of recovered sources in bin 13.\\
diffMean13  & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 13.\\
diffStdev13 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 13.\\
errMean13   & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 13.\\
\hline
\end{tabular}
\end{center}
\label{table:StackDetEffMeta}
\end{table}%

\clearpage

%\end{document} %unhappy (now it is happy, GH)
\subsection{Single Exposure Detection Tables}

%\end{document}

\begin{table}
\caption{FrameMeta: Contains metadata related to an individual exposure.  A "Frame" refers to the collection of all images obtained by the 60 OTA devices in the camera in a single exposure. The camera configuration, telescope pointing, observation time, and astrometric solution from the detector focal plane (L,M) to the sky (RA,Dec) is provided.}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
frameID & - & INT & NA  &Unique frame/exposure identifier.\\
frameName & - & VARCHAR(32) & NA  &Frame/exposure name provided by the camera software.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
ippChipID & - & INT & NA  &IPP chipRun identifier.\\
ippCamID & - & INT & NA  &IPP camRun identifier.\\
ippWarpID & - & INT & NA  &IPP warpRun identifier.\\
cameraID & - & SMALLINT & NA  &Camera identifier.  Details in the CameraConfig table.\\
cameraConfigID & - & SMALLINT & NA  &Camera configuration identifier.  Details in the CameraConfig table.\\
telescopeID & - & SMALLINT & NA  &Telescope identifier.\\
analysisVer & - & VARCHAR(100) &   &IPP software analysis release version.\\
md5sum & - & VARCHAR(100) &   &IPP MD5 Checksum.\\
nOTA & - & SMALLINT & -999  &Number of valid OTA images in this frame/exposure.\\
photoScat & magnitudes & REAL & -999  &Photometric scatter relative to reference catalog across the full FOV.\\
nPhotoRef & - & INT & -999  &Number of photometric reference sources.\\
expStart & days & FLOAT & -999  &Modified Julian Date at the start of the exposure.\\
expTime & seconds & REAL & -999  &Exposure time of the frame/exposure.  Necessary for converting listed\\
& & & & fluxes and magnitudes back to measured ADU counts.\\
airmass & - & REAL & 0  &Airmass at midpoint of the exposure.  Necessary for converting listed \\
& & & & fluxes and magnitudes back to measured ADU counts.\\
raBore & degrees & FLOAT & -999  &Right ascension of telescope boresight.\\
decBore & degrees & FLOAT & -999  &Declination of telescope boresight.\\
ctype1 & - & VARCHAR(100) &   &Name of astrometric projection in RA.\\
ctype2 & - & VARCHAR(100) &   &Name of astrometric projection in Dec.\\
crval1 & degrees & FLOAT & -999  &Right ascension corresponding to reference pixel.\\
crval2 & degrees & FLOAT & -999  &Declination corresponding to reference pixel.\\
crpix1 & pixels & FLOAT & -999  &Reference pixel for RA.\\
crpix2 & pixels & FLOAT & -999  &Reference pixel for Dec.\\
cdelt1 & degrees/pixel & FLOAT & -999  &Pixel scale in RA.\\
cdelt2 & degrees/pixel & FLOAT & -999  &Pixel scale in Dec.\\
pc001001 & - & FLOAT & -999  &Linear transformation matrix element between focal plane pixel L and RA.\\
pc001002 & - & FLOAT & -999  &Linear transformation matrix element between focal plane pixel M and RA.\\
pc002001 & - & FLOAT & -999  &Linear transformation matrix element between focal plane pixel L and Dec.\\
pc002002 & - & FLOAT & -999  &Linear transformation matrix element between focal plane pixel M and Dec.\\
polyOrder & - & TINYINT & 255  &Polynomial order of astrometric fit between detector focal plane and sky.\\
pca1x3y0 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^3$ $y^0$) for RA.\\
pca1x2y1 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^2$ $y^1$) for RA.\\
pca1x1y2 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^1$ $y^2$) for RA.\\
pca1x0y3 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^0$ $y^3$) for RA.\\
pca1x2y0 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^2$ $y^0$) for RA.\\
pca1x1y1 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^1$ $y^1$) for RA.\\
pca1x0y2 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^0$ $y^2$) for RA.\\
pca2x3y0 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^3$ $y^0$) for Dec.\\
pca2x2y1 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^2$ $y^1$) for Dec.\\
pca2x1y2 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^1$ $y^2$) for Dec.\\
pca2x0y3 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^0$ $y^3$) for Dec.\\
pca2x2y0 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^2$ $y^0$) for Dec.\\
pca2x1y1 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^1$ $y^1$) for Dec.\\
pca2x0y2 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^0$ $y^2$) for Dec.\\
batchID & - & BIGINT & NA  &Internal database batch identifier.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
\hline
\end{tabular}}
\end{center}
\label{table:FrameMeta}
\end{table}%

\begin{table}
\caption{ImageMeta: Contains metadata related to an individual OTA image that comprises a portion of the full exposure.  The characterization of the image quality, the detrends applied, and the astrometric solution from the raw pixels (X,Y) to the detector focal plane (L,M) is provided.}
\begin{center} %cheaing here, if I do resizebox it compiles
\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
imageID & - & BIGINT & NA  &Unique image identifier.  Constructed as (100 * frameID + ccdID).\\
frameID & - & INT & NA  &Unique frame/exposure identifier.\\
ccdID & - & SMALLINT & NA  &OTA identifier based on location in the focal plane, specific to an individual device.\\
photoCalID & - & INT & NA  &Photometric calibration identifier.  Details in the PhotoCal table.\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
bias & adu & REAL & -999  &OTA bias level.\\
biasScat & adu & REAL & -999  &Scatter in bias level.\\
sky & $Jy/arcsec^2$ & REAL & -999  &Mean sky brightness.\\
skyScat & $Jy/arcsec^2$ & REAL & -999  &Scatter in mean sky brightness.\\
nDetect & - & INT & -999  &Number of detections in this image.\\
detectionThreshold & magnitudes & REAL & -999  &Reference magnitude for detection efficiency calculation.\\
astroScat & arcsec & REAL & -999  &Measurement of the calibration (not astrometric error) defined to be the sum in quadrature of the \\
& & & & standard deviations in the X and Y directions.\\
photoScat & magnitudes & REAL & -999  &Photometric scatter relative to reference catalog.\\
nAstroRef & - & INT & -999  &Number of astrometric reference sources.\\
nPhotoRef & - & INT & -999  &Number of photometric reference sources.\\
recalAstroScatX & arcsec & REAL & -999  &Measurement of the re-calibration (not astrometric error) in the X direction.\\
recalAstroScatY & arcsec & REAL & -999  &Measurement of the re-calibration (not astrometric error) in the Y direction.\\
recalNAstroStars & - & INT & -999  &Number of astrometric reference sources used in recalibration.\\
recalphotoScat & magnitudes & REAL & -999  &Photometric scatter relative to reference catalog.\\
recalNPhotoStars & - & INT & -999  &Number of astrometric reference sources used in recalibration.\\
nAxis1 & pixels & SMALLINT & -999  &Image dimension in x.\\
nAxis2 & pixels & SMALLINT & -999  &Image dimension in y.\\
psfModelID & - & INT & -999  &PSF model identifier.\\
psfFWHM & arcsec & REAL & -999  &Mean PSF full width at half maximum at image center.\\
psfWidMajor & arcsec & REAL & -999  &PSF major axis FWHM at image center.\\
psfWidMinor & arcsec & REAL & -999  &PSF minor axis FWHM at image center.\\
psfTheta & degrees & REAL & -999  &PSF major axis orientation at image center.\\
momentMajor & arcsec & REAL & -999  &PSF major axis second moment.\\
momentMinor & arcsec & REAL & -999  &PSF minor axis second moment.\\
momentM2C & $arcsec^2$ & REAL & -999  &Moment $M2C = M_{xx} - M_{yy}$.\\
momentM2S & $arcsec^2$ & REAL & -999  &Moment $M2S = 2 * M_{xy}$.\\
momentM3 & $arcsec^2$ & REAL & -999  &trefoil second moment = $sqrt( (M_{xxx} - 3 * M_{xyy})^2 + (3 * M_{xxy} - M_{yyy})^2 )$.\\
momentM4 & $arcsec^2$ & REAL & -999  &quadrupole second moment = $sqrt( (M_{xxxx} - 6 * M_{xxyy} + M_{yyyy})^2 + (4 * M_{xxxy} - 4 * M_{xyyy})^2 )$.\\
apResid & magnitudes & REAL & -999  &Residual of aperture corrections.\\
dapResid & magnitudes & REAL & -999  &Scatter of aperture corrections.\\
detectorID & - & VARCHAR(100) &   &Identifier for each individual OTA detector device.\\
qaFlags & - & BIGINT & -999  &Q/A flags for this image.  Values listed in ImageFlags.\\
detrend1 & - & VARCHAR(100) &   &Identifier for detrend image 1, the static mask.\\
detrend2 & - & VARCHAR(100) &   &Identifier for detrend image 2, the dark model.\\
detrend3 & - & VARCHAR(100) &   &Identifier for detrend image 3, the flat.\\
detrend4 & - & VARCHAR(100) &   &Identifier for detrend image 4, the fringe.\\
detrend5 & - & VARCHAR(100) &   &Identifier for detrend image 5, the noisemap.\\
detrend6 & - & VARCHAR(100) &   &Identifier for detrend image 6, the non-linearity correction.\\
detrend7 & - & VARCHAR(100) &   &Identifier for detrend image 7, the video dark model.\\
detrend8 & - & VARCHAR(100) &   &Identifier for detrend image 8.\\
photoZero & magnitudes & REAL & -999  &Locally derived photometric zero point for this image.\\
ctype1 & - & VARCHAR(100) &   &Name of astrometric projection in focal plane L.\\
ctype2 & - & VARCHAR(100) &   &Name of astrometric projection in focal plane M.\\
crval1 & focal plane pixels & FLOAT & -999  &Focal plane L corresponding to reference pixel.\\
crval2 & focal plane pixels & FLOAT & -999  &Focal plane M corresponding to reference pixel.\\
crpix1 & raw pixels & FLOAT & -999  &Reference pixel for focal plane L.\\
crpix2 & raw pixels & FLOAT & -999  &Reference pixel for focal plane M.;\\
cdelt1 & focal plane pixels/raw pixel & FLOAT & -999  &Pixel scale in focal plane x.\\
cdelt2 & focal plane pixels/raw pixel & FLOAT & -999  &Pixel scale in focal plane y.\\
pc001001 & - & FLOAT & -999  &Linear transformation matrix element between image pixel x and focal plane pixel L.\\
pc001002 & - & FLOAT & -999  &Linear transformation matrix element between image pixel y and focal plane pixel L.\\
pc002001 & - & FLOAT & -999  &Linear transformation matrix element between image pixel x and focal plane pixel M.\\
pc002002 & - & FLOAT & -999  &Linear transformation matrix element between image pixel y and focal plane pixel M.\\
polyOrder & - & TINYINT & 255  &Polynomial order of astrometric fit between the image pixels and the detector focal plane.\\
pca1x3y0 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^3$ $y^0$) for focal plane L.\\
pca1x2y1 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^2$ $y^1$) for focal plane L.\\
pca1x1y2 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^1$ $y^2$) for focal plane L.\\
pca1x0y3 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^0$ $y^3$) for focal plane L.\\
pca1x2y0 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^2$ $y^0$) for focal plane L.\\
pca1x1y1 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^1$ $y^1$) for focal plane L.\\
pca1x0y2 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^0$ $y^2$) for focal plane L.\\
pca2x3y0 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^3$ $y^0$) for focal plane M.\\
pca2x2y1 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^2$ $y^1$) for focal plane M.\\
pca2x1y2 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^1$ $y^2$) for focal plane M.\\
pca2x0y3 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^0$ $y^3$) for focal plane M.\\
pca2x2y0 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^2$ $y^0$) for focal plane M.\\
pca2x1y1 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^1$ $y^1$) for focal plane M.\\
pca2x0y2 & - & FLOAT & -999  &Polynomial coefficient for the astrometric fit component ($x^0$ $y^2$) for focal plane M.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
\hline
\end{tabular}}
\end{center}
\label{table:ImageMeta}
\end{table}%





\begin{table}
\caption{Detection: Contains single epoch photometry of individual detections from a single exposure.  The identifiers connecting the detection back to the original image and to the object association are provided.  PSF, aperture, and \citet{Kron1980} photometry are included, along with sky and detector coordinate positions.}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsP2id & - & BIGINT & NA  &Unique internal PSPS detection identifier.\\
detectID & - & BIGINT & NA  &Unique detection identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
ippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
imageID & - & BIGINT & NA  &Unique image identifier.  Constructed as (100 * frameID + ccdID).\\
randomDetID & - & FLOAT & NA  &Random value drawn from the interval between zero and one. \\
dvoRegionID & - & INT & -1  &Internal DVO region identifier.\\
obsTime & days & FLOAT & -999  &Modified Julian Date at the midpoint of the observation.\\
xPos & raw pixels & REAL & -999  &PSF x center location.\\
yPos & raw pixels & REAL & -999  &PSF y center location.\\
xPosErr & raw pixels & REAL & -999  &Error in PSF x center location.\\
yPosErr & raw pixels & REAL & -999  &Error in PSF y center location.\\
pltScale & arcsec/pixel & REAL & -999  &Local plate scale at this location.\\
posAngle & degrees & REAL & -999  &Position angle (sky-to-chip) at this location.\\
ra & degrees & FLOAT & -999  &Right ascension.\\
dec & degrees & FLOAT & -999  &Declination.\\
raErr & arcsec & REAL & -999  &Right ascension error.\\
decErr & arcsec & REAL & -999  &Declination error.\\
extNSigma & - & REAL & 0  &An extendedness measure based on the deviation between PSF and Kron\\
& & & & magnitudes, normalized by the PSF magnitude uncertainty.\\
zp & magnitudes & REAL & 0  &Photometric zeropoint.  Necessary for converting listed fluxes and \\
& & & & magnitudes back to measured ADU counts.\\
telluricExt & magnitudes & REAL & NA  &Estimated Telluric extinction due to non-photometric observing conditions.\\
& & & & Necessary for converting listed fluxes and magnitudes back to measured ADU counts.\\
expTime & seconds & REAL & -999  &Exposure time of the frame/exposure.  Necessary for converting listed \\
& & & & fluxes and magnitudes back to measured ADU counts.\\
airMass & - & REAL & 0  &Airmass at midpoint of the exposure.  Necessary for converting listed \\
& & & & fluxes and magnitudes back to measured ADU counts.\\
psfFlux & Jy & REAL & -999  &Flux from PSF fit.\\
psfFluxErr & Jy & REAL & -999  &Error on flux from PSF fit.\\
psfMajorFWHM & arcsec & REAL & -999  &PSF major axis FWHM.\\
psfMinorFWHM & arcsec & REAL & -999  &PSF minor axis FWHM.\\
psfTheta & degrees & REAL & -999  &PSF major axis orientation.\\
psfCore & - & REAL & -999  &PSF core parameter k, where $F = F0 / (1 + k r^2 + r^{3.33})$.\\
psfQf & - & REAL & -999  &PSF coverage factor.\\
psfQfPerfect & - & REAL & -999  &PSF weighted fraction of pixels totally unmasked.\\
psfChiSq & - & REAL & -999  &Reduced chi squared value of the PSF model fit.\\
psfLikelihood & - & REAL & -999  &Likelihood that this detection is best fit by a PSF.\\
momentXX & $arcsec^2$ & REAL & -999  &Second moment $M_{xx}$.\\
momentXY & $arcsec^2$ & REAL & -999  &Second moment $M_{xy}$.\\
momentYY & $arcsec^2$ & REAL & -999  &Second moment $M_{yy}$.\\
momentR1 & arcsec & REAL & -999  &First radial moment.\\
momentRH & $arcsec^{0.5}$ & REAL & -999  &Half radial moment ($r^{0.5}$ weighting).\\
momentM3C & $arcsec^2$ & REAL & -999  &Cosine of trefoil second moment term: $r^2 cos(3 theta) = M_{xxx} - 3 * M_{xyy}$.\\
momentM3S & $arcsec^2$ & REAL & -999  &Sine of trefoil second moment: $r^2 sin (3 theta) = 3 * M_{xxy} - M_{yyy}$.\\
momentM4C & $arcsec^2$ & REAL & -999  &Cosine of quadrupole second moment: $r^2 cos (4 theta) = M_{xxxx} - 6 * M_{xxyy} + M_{yyyy}.$\\
momentM4S & $arcsec^2$ & REAL & -999  &Sine of quadrupole second moment: $r^2 sin (4 theta) = 4 * M_{xxxy} - 4 * M_{xyyy}$.\\
apFlux & Jy & REAL & -999  &Flux in seeing-dependent aperture.\\
apFluxErr & Jy & REAL & -999  &Error on flux in seeing-dependent aperture.\\
apFillF & - & REAL & -999  &Aperture fill factor.\\
apRadius & arcsec & REAL & -999  &Aperture radius.\\
kronFlux & Jy & REAL & -999  &Kron (1980) flux.\\
kronFluxErr & Jy & REAL & -999  &Error on Kron (1980) flux.\\
kronRad & arcsec & REAL & -999  &Kron (1980) radius.\\
sky & $Jy/arcsec^2$ & REAL & -999  &Background sky level.\\
skyErr & $Jy/arcsec^2$ & REAL & -999  &Error in background sky level.\\
infoFlag & - & BIGINT & 0  &Information flag bitmask indicating details of the photometry.  \\
& & & & Values listed in DetectionFlags.\\
infoFlag2 & - & INT & 0  &Information flag bitmask indicating details of the photometry.  \\
& & & & Values listed in DetectionFlags2.\\
infoFlag3 & - & INT & 0  &Information flag bitmask indicating details of the photometry.  \\
& & & & Values listed in DetectionFlags3.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
\hline
\end{tabular}}
\end{center}
\label{table:Detection}
\end{table}%



\begin{table}
\caption{ImageDetEffMeta: Contains the detection efficiency information for a given individual OTA image.  Provides the number of recovered sources out of 500 injected fake source and statistics about the magnitudes of the recovered sources for a range of magnitude offsets.}
\begin{center}
\resizebox{\textwidth}{!}{
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
imageID & - & BIGINT & NA  &Unique image identifier.  Constructed as (100 * frameID + ccdID).\\
frameID & - & INT & NA  &Unique frame/exposure identifier.\\
magref & magnitudes & REAL & NA  &Detection efficiency reference magnitude.\\
nInjected & - & INT & NA  &Number of fake sources injected in each magnitude bin.\\
offset01 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 1.\\
counts01 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 1.\\
diffMean01 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 1.\\
diffStdev01 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 1.\\
errMean01 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 1.\\
offset02 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 2.\\
counts02 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 2.\\
diffMean02 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 2.\\
diffStdev02 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 2.\\
errMean02 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 2.\\
offset03 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 3.\\
counts03 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 3.\\
diffMean03 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 3.\\
diffStdev03 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 3.\\
errMean03 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 3.\\
offset04 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 4.\\
counts04 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 4.\\
diffMean04 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 4.\\
diffStdev04 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 4.\\
errMean04 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 4.\\
offset05 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 5.\\
counts05 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 5.\\
diffMean05 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 5.\\
diffStdev05 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 5.\\
errMean05 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 5.\\
offset06 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 6.\\
counts06 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 6.\\
diffMean06 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 6.\\
diffStdev06 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 6.\\
errMean06 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 6.\\
offset07 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 7.\\
counts07 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 7.\\
diffMean07 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 7.\\
diffStdev07 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 7.\\
errMean07 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 7.\\
offset08 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 8.\\
counts08 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 8.\\
diffMean08 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 8.\\
diffStdev08 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 8.\\
errMean08 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 8.\\
offset09 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 9.\\
counts09 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 9.\\
diffMean09 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 9.\\
diffStdev09 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 9.\\
errMean09 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 9.\\
offset10 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 10.\\
counts10 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 10.\\
diffMean10 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 10.\\
diffStdev10 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 10.\\
errMean10 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 10.\\
offset11 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 11.\\
counts11 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 11.\\
diffMean11 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 11.\\
diffStdev11 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 11.\\
errMean11 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 11.\\
offset12 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 12.\\
counts12 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 12.\\
diffMean12 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 12.\\
diffStdev12 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 12.\\
errMean12 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 12.\\
offset13 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 13.\\
counts13 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 13.\\
diffMean13 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 13.\\
diffStdev13 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 13.\\
errMean13 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 13.\\
\hline
\end{tabular}}
\end{center}
\label{table:ImageDetEffMeta}
\end{table}%

\subsection{Forced Mean Object Tables}

\begin{table}
\caption{ForcedMeanObject: Contains the mean of single-epoch photometric information for sources detected in the stacked data, calculated as described in \citet{Magnier2013}.  The mean is calculated for detections associated into objects within a one arcsecond correlation radius.  PSF, \citet{Kron1980}, and SDSS aperture R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), and R7 (r = 7.43 arcsec) apertures \citep{Stoughton2002} magnitudes and statistics are listed for all filters. See also \citet{Kaiser1995}.}
\begin{center}
\resizebox{\textwidth}{!}{
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsFOid & - & BIGINT & NA  &Unique internal PSPS forced object identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomForcedObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
nDetections & - & SMALLINT & -999  &Number of single epoch detections in all filters.\\
batchID & - & BIGINT & NA  &Internal database batch identifier.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
gnTotal & - & SMALLINT & -999  &Number of forced single epoch detections in g filter.\\
gnIncPSFFlux & - & SMALLINT & -999  &Number of forced single epoch detections in PSF flux mean in g filter.\\
gnIncKronFlux & - & SMALLINT & -999  &Number of forced single epoch detections in Kron (1980) flux mean in g filter.\\
gnIncApFlux & - & SMALLINT & -999  &Number of forced single epoch detections in aperture flux mean in g filter.\\
gnIncR5 & - & SMALLINT & -999  &Number of forced single epoch detections in R5 (r = 3.00 arcsec) aperture flux mean in g filter.\\
gnIncR6 & - & SMALLINT & -999  &Number of forced single epoch detections in R6 (r = 4.63 arcsec) aperture flux mean in g filter.\\
gnIncR7 & - & SMALLINT & -999  &Number of forced single epoch detections in R7 (r = 7.43 arcsec) aperture flux mean in g filter.\\
gFPSFFlux & Jy & REAL & -999  &Mean PSF flux from forced single epoch g filter detections.\\
gFPSFFluxErr & Jy & REAL & -999  &Error in mean PSF flux from forced single epoch g filter detections.\\
gFPSFFluxStd & Jy & REAL & -999  &Standard deviation of PSF fluxes from forced single epoch g filter detections.\\
gFPSFMag & AB & REAL & -999  &Magnitude from mean PSF flux from forced single epoch g filter detections.\\
gFPSFMagErr & AB & REAL & -999  &Error in magnitude from mean PSF flux from forced single epoch g filter detections.\\
gFKronFlux & Jy & REAL & -999  &Mean Kron (1980) flux from forced single epoch g filter detections.\\
gFKronFluxErr & Jy & REAL & -999  &Error in mean Kron (1980) flux from forced single epoch g filter detections.\\
gFKronFluxStd & Jy & REAL & -999  &Standard deviation of Kron (198) fluxes from forced single epoch g filter detections.\\
gFKronMag & AB & REAL & -999  &Magnitude from mean Kron (1980) flux from forced single epoch g filter detections.\\
gFKronMagErr & AB & REAL & -999  &Error in magnitude from mean Kron (1980) flux from forced single epoch g filter detections.\\
gFApFlux & Jy & REAL & -999  &Mean aperture flux from forced single epoch g filter detections.\\
gFApFluxErr & Jy & REAL & -999  &Error in mean aperture flux from forced single epoch g filter detections.\\
gFApFluxStd & Jy & REAL & -999  &Standard deviation of aperture fluxes from forced single epoch g filter detections.\\
gFApMag & AB & REAL & -999  &Magnitude from mean aperture flux from forced single epoch g filter detections.\\
gFApMagErr & AB & REAL & -999  &Error in magnitude from mean aperture flux from forced single epoch g filter detections.\\
gFmeanflxR5 & Jy & REAL & -999  &Mean flux from forced single epoch g filter \\
& & & & detections within an aperture of radius r = 3.00 arcsec.\\
gFmeanflxR5Err & Jy & REAL & -999  &Error in mean flux from forced single epoch g filter \\
& & & & detections within an aperture of radius r = 3.00 arcsec.\\
gFmeanflxR5Std & Jy & REAL & -999  &Standard deviation of forced single epoch g filter \\
& & & & detection fluxes within an aperture of radius r = 3.00 arcsec.\\
gFmeanflxR5Fill & - & REAL & -999  &Aperture fill factor for forced single epoch g filter \\
& & & & detections within an aperture of radius r = 3.00 arcsec.\\
gFmeanMagR5 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch g filter \\
& & & & detections within an aperture of radius r = 3.00 arcsec.\\
gFmeanMagR5Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch \\
& & & & g filter detections within an aperture of radius r = 3.00 arcsec.\\
gFmeanflxR6 & Jy & REAL & -999  &Mean flux from forced single epoch g filter \\
& & & & detections within an aperture of radius r = 4.63 arcsec.\\
gFmeanflxR6Err & Jy & REAL & -999  &Error in mean flux from forced single epoch g filter \\
& & & & detections within an aperture of radius r = 4.63 arcsec.\\
gFmeanflxR6Std & Jy & REAL & -999  &Standard deviation of forced single epoch g filter \\
& & & & detection fluxes within an aperture of radius r = 4.63 arcsec.\\
gFmeanflxR6Fill & - & REAL & -999  &Aperture fill factor for forced single epoch g filter \\
& & & & detections within an aperture of radius r = 4.63 arcsec.\\
gFmeanMagR6 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch g filter \\
& & & & detections within an aperture of radius r = 4.63 arcsec.\\
gFmeanMagR6Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch \\
& & & & g filter detections within an aperture of radius r = 4.63 arcsec.\\
gFmeanflxR7 & Jy & REAL & -999  &Mean flux from forced single epoch g filter \\
& & & & detections within an aperture of radius r = 7.43 arcsec.\\
gFmeanflxR7Err & Jy & REAL & -999  &Error in mean flux from forced single epoch g filter\\
& & & & detections within an aperture of radius r = 7.43 arcsec.\\
gFmeanflxR7Std & Jy & REAL & -999  &Standard deviation of forced single epoch g filter \\
& & & & detection fluxes within an aperture of radius r = 7.43 arcsec.\\
gFmeanflxR7Fill & - & REAL & -999  &Aperture fill factor for forced single epoch g filter \\
& & & & detections within an aperture of radius r = 7.43 arcsec.\\
gFmeanMagR7 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch g filter\\
& & & & detections within an aperture of radius r = 7.43 arcsec.\\
gFmeanMagR7Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch\\
& & & & g filter detections within an aperture of radius r = 7.43 arcsec.\\
gFlags & - & INT & 0  &Information flag bitmask indicating details of the photometry from forced \\
& & & & single epoch g filter detections.  Values listed in ObjectInfoFlags.\\
gE1 & - & REAL & -999  &\citet{Kaiser1995} polarization parameter $e1 = (M_{xx} - M_{yy}) / (M_{xx} + M_{yy})$ \\
& & & & from forced single epoch g filter detections.\\
gE2 & - & REAL & -999  &\citet{Kaiser1995} polarization parameter $e2 =  (2 M_{xy}) / (M_{xx} + M_{yy}) $ \\
& & & & from forced single epoch g filter detections.\\
rnTotal\\
... & & & & same entries repeated for r, i, z, and y filters \\
%rnTotal & - & SMALLINT & -999  &Number of forced single epoch detections in r filter.\\
%rnIncPSFFlux & - & SMALLINT & -999  &Number of forced single epoch detections in PSF flux mean in r filter.\\
%rnIncKronFlux & - & SMALLINT & -999  &Number of forced single epoch detections in Kron (1980) flux mean in r filter.\\
%rnIncApFlux & - & SMALLINT & -999  &Number of forced single epoch detections in aperture flux mean in r filter.\\
%rnIncR5 & - & SMALLINT & -999  &Number of forced single epoch detections in R5 (r = 3.00 arcsec) aperture flux mean in r filter.\\
%rnIncR6 & - & SMALLINT & -999  &Number of forced single epoch detections in R6 (r = 4.63 arcsec) aperture flux mean in r filter.\\
%rnIncR7 & - & SMALLINT & -999  &Number of forced single epoch detections in R7 (r = 7.43 arcsec) aperture flux mean in r filter.\\
%rFPSFFlux & Jy & REAL & -999  &Mean PSF flux from forced single epoch r filter detections.\\
%rFPSFFluxErr & Jy & REAL & -999  &Error in mean PSF flux from forced single epoch r filter detections.\\
%rFPSFFluxStd & Jy & REAL & -999  &Standard deviation of PSF fluxes from forced single epoch r filter detections.\\
%rFPSFMag & AB & REAL & -999  &Magnitude from mean PSF flux from forced single epoch r filter detections.\\
%rFPSFMagErr & AB & REAL & -999  &Error in magnitude from mean PSF flux from forced single epoch r filter detections.\\
%rFKronFlux & Jy & REAL & -999  &Mean Kron (1980) flux from forced single epoch r filter detections.\\
%rFKronFluxErr & Jy & REAL & -999  &Error in mean Kron (1980) flux from forced single epoch r filter detections.\\
%rFKronFluxStd & Jy & REAL & -999  &Standard deviation of Kron (198) fluxes from forced single epoch r filter detections.\\
%rFKronMag & AB & REAL & -999  &Magnitude from mean Kron (1980) flux from forced single epoch r filter detections.\\
%rFKronMagErr & AB & REAL & -999  &Error in magnitude from mean Kron (1980) flux from forced single epoch r filter detections.\\
%rFApFlux & Jy & REAL & -999  &Mean aperture flux from forced single epoch r filter detections.\\
%rFApFluxErr & Jy & REAL & -999  &Error in mean aperture flux from forced single epoch r filter detections.\\
%rFApFluxStd & Jy & REAL & -999  &Standard deviation of aperture fluxes from forced single epoch g filter detections.\\
%rFApMag & AB & REAL & -999  &Magnitude from mean aperture flux from forced single epoch r filter detections.\\
%rFApMagErr & AB & REAL & -999  &Error in magnitude from mean aperture flux from forced single epoch r filter detections.\\
%rFmeanflxR5 & Jy & REAL & -999  &Mean flux from forced single epoch r filter detections within an aperture of radius r = 3.00 arcsec.\\
%rFmeanflxR5Err & Jy & REAL & -999  &Error in mean flux from forced single epoch r filter detections within an aperture of radius r = 3.00 arcsec.\\
%rFmeanflxR5Std & Jy & REAL & -999  &Standard deviation of forced single epoch r filter detection fluxes within an aperture of radius r = 3.00 arcsec.\\
%rFmeanflxR5Fill & - & REAL & -999  &Aperture fill factor for forced single epoch r filter detections within an aperture of radius r = 3.00 arcsec.\\
%rFmeanMagR5 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch r filter detections within an aperture of radius r = 3.00 arcsec.\\
%rFmeanMagR5Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch r filter detections within an aperture of radius r = 3.00 arcsec.\\
%rFmeanflxR6 & Jy & REAL & -999  &Mean flux from forced single epoch r filter detections within an aperture of radius r = 4.63 arcsec.\\
%rFmeanflxR6Err & Jy & REAL & -999  &Error in mean flux from forced single epoch r filter detections within an aperture of radius r = 4.63 arcsec.\\
%rFmeanflxR6Std & Jy & REAL & -999  &Standard deviation of forced single epoch r filter detection fluxes within an aperture of radius r = 4.63 arcsec.\\
%rFmeanflxR6Fill & - & REAL & -999  &Aperture fill factor for forced single epoch r filter detections within an aperture of radius r = 4.63 arcsec.\\
%rFmeanMagR6 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch r filter detections within an aperture of radius r = 4.63 arcsec.\\
%rFmeanMagR6Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch r filter detections within an aperture of radius r = 4.63 arcsec.\\
%rFmeanflxR7 & Jy & REAL & -999  &Mean flux from forced single epoch r filter detections within an aperture of radius r = 7.43 arcsec.\\
%rFmeanflxR7Err & Jy & REAL & -999  &Error in mean flux from forced single epoch r filter detections within an aperture of radius r = 7.43 arcsec.\\
%rFmeanflxR7Std & Jy & REAL & -999  &Standard deviation of forced single epoch r filter detection fluxes within an aperture of radius r = 7.43 arcsec.\\
%rFmeanflxR7Fill & - & REAL & -999  &Aperture fill factor for forced single epoch r filter detections within an aperture of radius r = 7.43 arcsec.\\
%rFmeanMagR7 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch r filter detections within an aperture of radius r = 7.43 arcsec.\\
%rFmeanMagR7Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch r filter detections within an aperture of radius r = 7.43 arcsec.\\
%rFlags & - & INT & 0  &Information flag bitmask indicating details of the photometry from forced single epoch r filter detections.  Values listed in ObjectInfoFlags.\\
%rE1 & - & REAL & -999  &\citet{Kaiser1995} polarization parameter e1 = (Mxx - Myy) / (Mxx + Myy) from forced single epoch r filter detections.\\
%rE2 & - & REAL & -999  &\citet{Kaiser1995} polarization parameter e2 =  (2 Mxy) / (Mxx + Myy) from forced single epoch r filter detections.\\
%inTotal & - & SMALLINT & -999  &Number of forced single epoch detections in i filter.\\
%inIncPSFFlux & - & SMALLINT & -999  &Number of forced single epoch detections in PSF flux mean in i filter.\\
%inIncKronFlux & - & SMALLINT & -999  &Number of forced single epoch detections in Kron (1980) flux mean in i filter.\\
%inIncApFlux & - & SMALLINT & -999  &Number of forced single epoch detections in aperture flux mean in i filter.\\
%inIncR5 & - & SMALLINT & -999  &Number of forced single epoch detections in R5 (r = 3.00 arcsec) aperture flux mean in i filter.\\
%inIncR6 & - & SMALLINT & -999  &Number of forced single epoch detections in R6 (r = 4.63 arcsec) aperture flux mean in i filter.\\
%inIncR7 & - & SMALLINT & -999  &Number of forced single epoch detections in R7 (r = 7.43 arcsec) aperture flux mean in i filter.\\
%iFPSFFlux & Jy & REAL & -999  &Mean PSF flux from forced single epoch i filter detections.\\
%iFPSFFluxErr & Jy & REAL & -999  &Error in mean PSF flux from forced single epoch i filter detections.\\
%iFPSFFluxStd & Jy & REAL & -999  &Standard deviation of PSF fluxes from forced single epoch i filter detections.\\
%iFPSFMag & AB & REAL & -999  &Magnitude from mean PSF flux from forced single epoch i filter detections.\\
%iFPSFMagErr & AB & REAL & -999  &Error in magnitude from mean PSF flux from forced single epoch i filter detections.\\
%iFKronFlux & Jy & REAL & -999  &Mean Kron (1980) flux from forced single epoch i filter detections.\\
%iFKronFluxErr & Jy & REAL & -999  &Error in mean Kron (1980) flux from forced single epoch i filter detections.\\
%iFKronFluxStd & Jy & REAL & -999  &Standard deviation of Kron (198) fluxes from forced single epoch i filter detections.\\
%iFKronMag & AB & REAL & -999  &Magnitude from mean Kron (1980) flux from forced single epoch i filter detections.\\
%iFKronMagErr & AB & REAL & -999  &Error in magnitude from mean Kron (1980) flux from forced single epoch i filter detections.\\
%iFApFlux & Jy & REAL & -999  &Mean aperture flux from forced single epoch i filter detections.\\
%iFApFluxErr & Jy & REAL & -999  &Error in mean aperture flux from forced single epoch i filter detections.\\
%iFApFluxStd & Jy & REAL & -999  &Standard deviation of aperture fluxes from forced single epoch i filter detections.\\
%iFApMag & AB & REAL & -999  &Magnitude from mean aperture flux from forced single epoch i filter detections.\\
%iFApMagErr & AB & REAL & -999  &Error in magnitude from mean aperture flux from forced single epoch i filter detections.\\
%iFmeanflxR5 & Jy & REAL & -999  &Mean flux from forced single epoch i filter detections within an aperture of radius r = 3.00 arcsec.\\
%iFmeanflxR5Err & Jy & REAL & -999  &Error in mean flux from forced single epoch i filter detections within an aperture of radius r = 3.00 arcsec.\\
%iFmeanflxR5Std & Jy & REAL & -999  &Standard deviation of forced single epoch i filter detection fluxes within an aperture of radius r = 3.00 arcsec.\\
%iFmeanflxR5Fill & - & REAL & -999  &Aperture fill factor for forced single epoch i filter detections within an aperture of radius r = 3.00 arcsec.\\
%iFmeanMagR5 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch i filter detections within an aperture of radius r = 3.00 arcsec.\\
%iFmeanMagR5Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch i filter detections within an aperture of radius r = 3.00 arcsec.\\
%iFmeanflxR6 & Jy & REAL & -999  &Mean flux from forced single epoch i filter detections within an aperture of radius r = 4.63 arcsec.\\
%iFmeanflxR6Err & Jy & REAL & -999  &Error in mean flux from forced single epoch i filter detections within an aperture of radius r = 4.63 arcsec.\\
%iFmeanflxR6Std & Jy & REAL & -999  &Standard deviation of forced single epoch i filter detection fluxes within an aperture of radius r = 4.63 arcsec.\\
%iFmeanflxR6Fill & - & REAL & -999  &Aperture fill factor for forced single epoch i filter detections within an aperture of radius r = 4.63 arcsec.\\
%iFmeanMagR6 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch i filter detections within an aperture of radius r = 4.63 arcsec.\\
%iFmeanMagR6Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch i filter detections within an aperture of radius r = 4.63 arcsec.\\
%iFmeanflxR7 & Jy & REAL & -999  &Mean flux from forced single epoch i filter detections within an aperture of radius r = 7.43 arcsec.\\
%iFmeanflxR7Err & Jy & REAL & -999  &Error in mean flux from forced single epoch i filter detections within an aperture of radius r = 7.43 arcsec.\\
%iFmeanflxR7Std & Jy & REAL & -999  &Standard deviation of forced single epoch i filter detection fluxes within an aperture of radius r = 7.43 arcsec.\\
%iFmeanflxR7Fill & - & REAL & -999  &Aperture fill factor for forced single epoch i filter detections within an aperture of radius r = 7.43 arcsec.\\
%iFmeanMagR7 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch i filter detections within an aperture of radius r = 7.43 arcsec.\\
%iFmeanMagR7Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch i filter detections within an aperture of radius r = 7.43 arcsec.\\
%iFlags & - & INT & 0  &Information flag bitmask indicating details of the photometry from forced single epoch i filter detections.  Values listed in ObjectInfoFlags.\\
%iE1 & - & REAL & -999  &\citet{Kaiser1995} polarization parameter e1 = (Mxx - Myy) / (Mxx + Myy) from forced single epoch i filter detections.\\
%iE2 & - & REAL & -999  &\citet{Kaiser1995} polarization parameter e2 =  (2 Mxy) / (Mxx + Myy) from forced single epoch i filter detections.\\
%znTotal & - & SMALLINT & -999  &Number of forced single epoch detections in z filter.\\
%znIncPSFFlux & - & SMALLINT & -999  &Number of forced single epoch detections in PSF flux mean in z filter.\\
%znIncKronFlux & - & SMALLINT & -999  &Number of forced single epoch detections in Kron (1980) flux mean in z filter.\\
%znIncApFlux & - & SMALLINT & -999  &Number of forced single epoch detections in aperture flux mean in z filter.\\
%znIncR5 & - & SMALLINT & -999  &Number of forced single epoch detections in R5 (r = 3.00 arcsec) aperture flux mean in z filter.\\
%znIncR6 & - & SMALLINT & -999  &Number of forced single epoch detections in R6 (r = 4.63 arcsec) aperture flux mean in z filter.\\
%znIncR7 & - & SMALLINT & -999  &Number of forced single epoch detections in R7 (r = 7.43 arcsec) aperture flux mean in z filter.\\
%zFPSFFlux & Jy & REAL & -999  &Mean PSF flux from forced single epoch z filter detections.\\
%zFPSFFluxErr & Jy & REAL & -999  &Error in mean PSF flux from forced single epoch z filter detections.\\
%zFPSFFluxStd & Jy & REAL & -999  &Standard deviation of PSF fluxes from forced single epoch z filter detections.\\
%zFPSFMag & AB & REAL & -999  &Magnitude from mean PSF flux from forced single epoch z filter detections.\\
%zFPSFMagErr & AB & REAL & -999  &Error in magnitude from mean PSF flux from forced single epoch z filter detections.\\
%zFKronFlux & Jy & REAL & -999  &Mean Kron (1980) flux from forced single epoch z filter detections.\\
%zFKronFluxErr & Jy & REAL & -999  &Error in mean Kron (1980) flux from forced single epoch z filter detections.\\
%zFKronFluxStd & Jy & REAL & -999  &Standard deviation of Kron (198) fluxes from forced single epoch z filter detections.\\
%zFKronMag & AB & REAL & -999  &Magnitude from mean Kron (1980) flux from forced single epoch z filter detections.\\
%zFKronMagErr & AB & REAL & -999  &Error in magnitude from mean Kron (1980) flux from forced single epoch z filter detections.\\
%zFApFlux & Jy & REAL & -999  &Mean aperture flux from forced single epoch z filter detections.\\
%zFApFluxErr & Jy & REAL & -999  &Error in mean aperture flux from forced single epoch z filter detections.\\
%zFApFluxStd & Jy & REAL & -999  &Standard deviation of aperture fluxes from forced single epoch z filter detections.\\
%zFApMag & AB & REAL & -999  &Magnitude from mean aperture flux from forced single epoch z filter detections.\\
%zFApMagErr & AB & REAL & -999  &Error in magnitude from mean aperture flux from forced single epoch z filter detections.\\
%zFmeanflxR5 & Jy & REAL & -999  &Mean flux from forced single epoch z filter detections within an aperture of radius r = 3.00 arcsec.\\
%zFmeanflxR5Err & Jy & REAL & -999  &Error in mean flux from forced single epoch z filter detections within an aperture of radius r = 3.00 arcsec.\\
%zFmeanflxR5Std & Jy & REAL & -999  &Standard deviation of forced single epoch z filter detection fluxes within an aperture of radius r = 3.00 arcsec.\\
%zFmeanflxR5Fill & - & REAL & -999  &Aperture fill factor for forced single epoch z filter detections within an aperture of radius r = 3.00 arcsec.\\
%zFmeanMagR5 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch z filter detections within an aperture of radius r = 3.00 arcsec.\\
%zFmeanMagR5Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch z filter detections within an aperture of radius r = 3.00 arcsec.\\
%zFmeanflxR6 & Jy & REAL & -999  &Mean flux from forced single epoch z filter detections within an aperture of radius r = 4.63 arcsec.\\
%zFmeanflxR6Err & Jy & REAL & -999  &Error in mean flux from forced single epoch z filter detections within an aperture of radius r = 4.63 arcsec.\\
%zFmeanflxR6Std & Jy & REAL & -999  &Standard deviation of forced single epoch z filter detection fluxes within an aperture of radius r = 4.63 arcsec.\\
%zFmeanflxR6Fill & - & REAL & -999  &Aperture fill factor for forced single epoch z filter detections within an aperture of radius r = 4.63 arcsec.\\
%zFmeanMagR6 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch z filter detections within an aperture of radius r = 4.63 arcsec.\\
%zFmeanMagR6Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch z filter detections within an aperture of radius r = 4.63 arcsec.\\
%zFmeanflxR7 & Jy & REAL & -999  &Mean flux from forced single epoch z filter detections within an aperture of radius r = 7.43 arcsec.\\
%zFmeanflxR7Err & Jy & REAL & -999  &Error in mean flux from forced single epoch z filter detections within an aperture of radius r = 7.43 arcsec.\\
%zFmeanflxR7Std & Jy & REAL & -999  &Standard deviation of forced single epoch z filter detection fluxes within an aperture of radius r = 7.43 arcsec.\\
%zFmeanflxR7Fill & - & REAL & -999  &Aperture fill factor for forced single epoch z filter detections within an aperture of radius r = 7.43 arcsec.\\
%zFmeanMagR7 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch z filter detections within an aperture of radius r = 7.43 arcsec.\\
%zFmeanMagR7Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch z filter detections within an aperture of radius r = 7.43 arcsec.\\
%zFlags & - & INT & 0  &Information flag bitmask indicating details of the photometry from forced single epoch z filter detections.  Values listed in ObjectInfoFlags.\\
%zE1 & - & REAL & -999  &\citet{Kaiser1995} polarization parameter e1 = (Mxx - Myy) / (Mxx + Myy) from forced single epoch z filter detections.\\
%zE2 & - & REAL & -999  &\citet{Kaiser1995} polarization parameter e2 =  (2 Mxy) / (Mxx + Myy) from forced single epoch z filter detections.\\
%ynTotal & - & SMALLINT & -999  &Number of forced single epoch detections in y filter.\\
%ynIncPSFFlux & - & SMALLINT & -999  &Number of forced single epoch detections in PSF flux mean in y filter.\\
%ynIncKronFlux & - & SMALLINT & -999  &Number of forced single epoch detections in Kron (1980) flux mean in y filter.\\
%ynIncApFlux & - & SMALLINT & -999  &Number of forced single epoch detections in aperture flux mean in y filter.\\
%ynIncR5 & - & SMALLINT & -999  &Number of forced single epoch detections in R5 (r = 3.00 arcsec) aperture flux mean in y filter.\\
%ynIncR6 & - & SMALLINT & -999  &Number of forced single epoch detections in R6 (r = 4.63 arcsec) aperture flux mean in y filter.\\
%ynIncR7 & - & SMALLINT & -999  &Number of forced single epoch detections in R7 (r = 7.43 arcsec) aperture flux mean in y filter.\\
%yFPSFFlux & Jy & REAL & -999  &Mean PSF flux from forced single epoch y filter detections.\\
%yFPSFFluxErr & Jy & REAL & -999  &Error in mean PSF flux from forced single epoch y filter detections.\\
%yFPSFFluxStd & Jy & REAL & -999  &Standard deviation of PSF fluxes from forced single epoch y filter detections.\\
%yFPSFMag & AB & REAL & -999  &Magnitude from mean PSF flux from forced single epoch y filter detections.\\
%yFPSFMagErr & AB & REAL & -999  &Error in magnitude from mean PSF flux from forced single epoch y filter detections.\\
%yFKronFlux & Jy & REAL & -999  &Mean Kron (1980) flux from forced single epoch y filter detections.\\
%yFKronFluxErr & Jy & REAL & -999  &Error in mean Kron (1980) flux from forced single epoch y filter detections.\\
%yFKronFluxStd & Jy & REAL & -999  &Standard deviation of Kron (198) fluxes from forced single epoch y filter detections.\\
%yFKronMag & AB & REAL & -999  &Magnitude from mean Kron (1980) flux from forced single epoch y filter detections.\\
%yFKronMagErr & AB & REAL & -999  &Error in magnitude from mean Kron (1980) flux from forced single epoch y filter detections.\\
%yFApFlux & Jy & REAL & -999  &Mean aperture flux from forced single epoch y filter detections.\\
%yFApFluxErr & Jy & REAL & -999  &Error in mean aperture flux from forced single epoch y filter detections.\\
%yFApFluxStd & Jy & REAL & -999  &Standard deviation of aperture fluxes from forced single epoch y filter detections.\\
%yFApMag & AB & REAL & -999  &Magnitude from mean aperture flux from forced single epoch y filter detections.\\
%yFApMagErr & AB & REAL & -999  &Error in magnitude from mean aperture flux from forced single epoch y filter detections.\\
%yFmeanflxR5 & Jy & REAL & -999  &Mean flux from forced single epoch y filter detections within an aperture of radius r = 3.00 arcsec.\\
%yFmeanflxR5Err & Jy & REAL & -999  &Error in mean flux from forced single epoch y filter detections within an aperture of radius r = 3.00 arcsec.\\
%yFmeanflxR5Std & Jy & REAL & -999  &Standard deviation of forced single epoch y filter detection fluxes within an aperture of radius r = 3.00 arcsec.\\
%yFmeanflxR5Fill & - & REAL & -999  &Aperture fill factor for forced single epoch y filter detections within an aperture of radius r = 3.00 arcsec.\\
%yFmeanMagR5 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch y filter detections within an aperture of radius r = 3.00 arcsec.\\
%yFmeanMagR5Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch y filter detections within an aperture of radius r = 3.00 arcsec.\\
%yFmeanflxR6 & Jy & REAL & -999  &Mean flux from forced single epoch y filter detections within an aperture of radius r = 4.63 arcsec.\\
%yFmeanflxR6Err & Jy & REAL & -999  &Error in mean flux from forced single epoch y filter detections within an aperture of radius r = 4.63 arcsec.\\
%yFmeanflxR6Std & Jy & REAL & -999  &Standard deviation of forced single epoch y filter detection fluxes within an aperture of radius r = 4.63 arcsec.\\
%yFmeanflxR6Fill & - & REAL & -999  &Aperture fill factor for forced single epoch y filter detections within an aperture of radius r = 4.63 arcsec.\\
%yFmeanMagR6 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch y filter detections within an aperture of radius r = 4.63 arcsec.\\
%yFmeanMagR6Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch y filter detections within an aperture of radius r = 4.63 arcsec.\\
%yFmeanflxR7 & Jy & REAL & -999  &Mean flux from forced single epoch y filter detections within an aperture of radius r = 7.43 arcsec.\\
%yFmeanflxR7Err & Jy & REAL & -999  &Error in mean flux from forced single epoch y filter detections within an aperture of radius r = 7.43 arcsec.\\
%yFmeanflxR7Std & Jy & REAL & -999  &Standard deviation of forced single epoch y filter detection fluxes within an aperture of radius r = 7.43 arcsec.\\
%yFmeanflxR7Fill & - & REAL & -999  &Aperture fill factor for forced single epoch y filter detections within an aperture of radius r = 7.43 arcsec.\\
%yFmeanMagR7 & AB & REAL & -999  &Magnitude from mean flux from forced single epoch y filter detections within an aperture of radius r = 7.43 arcsec.\\
%yFmeanMagR7Err & AB & REAL & -999  &Error in magnitude from  mean flux from forced single epoch y filter detections within an aperture of radius r = 7.43 arcsec.\\
%yFlags & - & INT & 0  &Information flag bitmask indicating details of the photometry from forced single epoch y filter detections.  Values listed in ObjectInfoFlags.\\
%yE1 & - & REAL & -999  &\citet{Kaiser1995} polarization parameter e1 = (Mxx - Myy) / (Mxx + Myy) from forced single epoch y filter detections.\\
%yE2 & - & REAL & -999  &\citet{Kaiser1995} polarization parameter e2 =  (2 Mxy) / (Mxx + Myy) from forced single epoch y filter detections.\\
yE2 \\
\hline
\end{tabular}}
\end{center}
\label{table:ForcedMeanObject}
\end{table}%



\begin{table}
\caption{ForcedMeanLensing: Contains the mean \citet[K95]{Kaiser1995} lensing parameters measured from the forced photometry of objects detected in stacked images on the individual single epoch data.}
\begin{center}
\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsFOid & - & BIGINT & NA  &Unique internal PSPS forced object identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
randomForcedObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
nDetections & - & SMALLINT & -999  &Number of single epoch detections in all filters.\\
batchID & - & BIGINT & NA  &Internal database batch identifier.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
gLensObjSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from forced g filter detections.\\
gLensObjSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from forced g filter detections.\\
gLensObjSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from forced g filter detections.\\
gLensObjSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from forced g filter detections.\\
gLensObjSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from forced g filter detections.\\
gLensObjShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from forced g filter detections.\\
gLensObjShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from forced g filter detections.\\
gLensObjShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from forced g filter detections.\\
gLensObjShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from forced g filter detections.\\
gLensObjShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from forced g filter detections.\\
gLensPSFSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from PSF model for forced g filter detections.\\
gLensPSFSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from PSF model for forced g filter detections.\\
gLensPSFSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from PSF model for forced g filter detections.\\
gLensPSFSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from PSF model for forced g filter detections.\\
gLensPSFSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from PSF model for forced g filter detections.\\
gLensPSFShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from PSF model for forced g filter detections.\\
gLensPSFShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from PSF model for forced g filter detections.\\
gLensPSFShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from PSF model for forced g filter detections.\\
gLensPSFShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from PSF model for forced g filter detections.\\
gLensPSFShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from PSF model forced g filter detections.\\
rlensObjSmearX11 \\
... & & & & same entries repeated for r, i, z, and y filters \\
%rlensObjSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from forced r filter detections.\\
%rlensObjSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from forced r filter detections.\\
%rlensObjSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from forced r filter detections.\\
%rlensObjSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from forced r filter detections.\\
%rlensObjSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from forced r filter detections.\\
%rlensObjShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from forced r filter detections.\\
%rlensObjShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from forced r filter detections.\\
%rlensObjShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from forced r filter detections.\\
%rlensObjShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from forced r filter detections.\\
%rlensObjShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from forced r filter detections.\\
%rlensPSFSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from PSF model for forced r filter detections.\\
%rlensPSFSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from PSF model for forced r filter detections.\\
%rlensPSFSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from PSF model for forced r filter detections.\\
%rlensPSFSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from PSF model for forced r filter detections.\\
%rlensPSFSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from PSF model for forced r filter detections.\\
%rlensPSFShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from PSF model for forced r filter detections.\\
%rlensPSFShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from PSF model for forced r filter detections.\\
%rlensPSFShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from PSF model for forced r filter detections.\\
%rlensPSFShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from PSF model for forced r filter detections.\\
%rlensPSFShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from PSF model forced r filter detections.\\
%ilensObjSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from forced i filter detections.\\
%ilensObjSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from forced i filter detections.\\
%ilensObjSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from forced i filter detections.\\
%ilensObjSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from forced i filter detections.\\
%ilensObjSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from forced i filter detections.\\
%ilensObjShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from forced i filter detections.\\
%ilensObjShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from forced i filter detections.\\
%ilensObjShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from forced i filter detections.\\
%ilensObjShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from forced i filter detections.\\
%ilensObjShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from forced i filter detections.\\
%ilensPSFSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from PSF model for forced i filter detections.\\
%ilensPSFSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from PSF model for forced i filter detections.\\
%ilensPSFSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from PSF model for forced i filter detections.\\
%ilensPSFSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from PSF model for forced i filter detections.\\
%ilensPSFSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from PSF model for forced i filter detections.\\
%ilensPSFShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from PSF model for forced i filter detections.\\
%ilensPSFShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from PSF model for forced i filter detections.\\
%ilensPSFShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from PSF model for forced i filter detections.\\
%ilensPSFShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from PSF model for forced i filter detections.\\
%ilensPSFShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from PSF model forced i filter detections.\\
%zlensObjSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from forced z filter detections.\\
%zlensObjSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from forced z filter detections.\\
%zlensObjSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from forced z filter detections.\\
%zlensObjSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from forced z filter detections.\\
%zlensObjSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from forced z filter detections.\\
%zlensObjShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from forced z filter detections.\\
%zlensObjShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from forced z filter detections.\\
%zlensObjShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from forced z filter detections.\\
%zlensObjShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from forced z filter detections.\\
%zlensObjShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from forced z filter detections.\\
%zlensPSFSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from PSF model for forced z filter detections.\\
%zlensPSFSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from PSF model for forced z filter detections.\\
%zlensPSFSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from PSF model for forced z filter detections.\\
%zlensPSFSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from PSF model for forced z filter detections.\\
%zlensPSFSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from PSF model for forced z filter detections.\\
%zlensPSFShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from PSF model for forced z filter detections.\\
%zlensPSFShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from PSF model for forced z filter detections.\\
%zlensPSFShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from PSF model for forced z filter detections.\\
%zlensPSFShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from PSF model for forced z filter detections.\\
%zlensPSFShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from PSF model forced z filter detections.\\
%ylensObjSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from forced y filter detections.\\
%ylensObjSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from forced y filter detections.\\
%ylensObjSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from forced y filter detections.\\
%ylensObjSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from forced y filter detections.\\
%ylensObjSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from forced y filter detections.\\
%ylensObjShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from forced y filter detections.\\
%ylensObjShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from forced y filter detections.\\
%ylensObjShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from forced y filter detections.\\
%ylensObjShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from forced y filter detections.\\
%ylensObjShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from forced y filter detections.\\
%ylensPSFSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from PSF model for forced y filter detections.\\
%ylensPSFSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from PSF model for forced y filter detections.\\
%ylensPSFSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from PSF model for forced y filter detections.\\
%ylensPSFSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from PSF model for forced y filter detections.\\
%ylensPSFSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from PSF model for forced y filter detections.\\
%ylensPSFShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from PSF model for forced y filter detections.\\
%ylensPSFShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from PSF model for forced y filter detections.\\
%ylensPSFShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from PSF model for forced y filter detections.\\
%ylensPSFShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from PSF model for forced y filter detections.\\
%ylensPSFShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from PSF model forced y filter detections.\\
ylensPSFShearE2 \\
\hline
\end{tabular}}
\end{center}
\label{table:ForcedMeanLensing}
\end{table}%

\subsection{Forced {\em warp} Exposure Tables}

\begin{table}
\caption{ForcedWarpMeta: Contains the metadata related to a sky-aligned distortion corrected {\em warp} image, upon which forced photometry is performed.  The astrometric and photometric calibration of the {\em warp} image are listed.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
forcedWarpID & - & BIGINT & NA  &Unique forced {\em warp} identifier.\\
batchID & - & BIGINT & NA  &Internal database batch identifier.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
frameID & - & INT & NA  &Frame/exposure identifier of the Frame associated with this warp.\\
ippSkycalID & - & INT & NA  &IPP skycal identifier for the run that generated the positions for forced\\
& & & & photometry.\\
stackMetaID & - & INT & NA  &Identifier for the {\em stack} which yielded the positions for forced photometry.\\
tessID & - & TINYINT & 0  &Tessellation identifier.  Details in the TessellationType table.\\
projectionID & - & SMALLINT & -1  &Projection cell identifier.\\
skyCellID & - & TINYINT & 255  &Skycell region identifier.\\
photoCalID & - & INT & NA  &Photometric calibration identifier.  Details in the PhotoCal table.\\
analysisVer & - & VARCHAR(100) &   &IPP software analysis release version.\\
md5sum & - & VARCHAR(100) &   &IPP MD5 Checksum.\\
expTime & seconds & REAL & -999  &Exposure time of the source frame/exposure for this {\em warp} image.  Necessary \\
& & & & for converting listed fluxes and magnitudes back to measured ADU counts.\\
recalAstroScatX & arcsec & REAL & -999  &Measurement of the re-calibration (not astrometric error) in the X direction.\\
recalAstroScatY & arcsec & REAL & -999  &Measurement of the re-calibration (not astrometric error) in the Y direction.\\
recalNAstroStars & - & INT & -999  &Number of astrometric reference sources used in recalibration.\\
recalphotoScat & magnitudes & REAL & -999  &Photometric scatter relative to reference catalog.\\
recalNPhotoStars & - & INT & -999  &Number of astrometric reference sources used in recalibration.\\
psfModelID & - & INT & -999  &PSF model identifier.\\
psfFWHM & arcsec & REAL & -999  &Mean PSF full width at half maximum at image center.\\
psfWidMajor & arcsec & REAL & -999  &PSF major axis FWHM at image center.\\
psfWidMinor & arcsec & REAL & -999  &PSF minor axis FWHM at image center.\\
psfTheta & degrees & REAL & -999  &PSF major axis orientation at image center.\\
photoZero & magnitudes & REAL & -999  &Locally derived photometric zero point for this {\em warp} image.\\
ctype1 & - & VARCHAR(100) &   &Name of astrometric projection in RA.\\
ctype2 & - & VARCHAR(100) &   &Name of astrometric projection in Dec.\\
crval1 & degrees & FLOAT & -999  &Right ascension corresponding to reference pixel.\\
crval2 & degrees & FLOAT & -999  &Declination corresponding to reference pixel.\\
crpix1 & sky pixels & FLOAT & -999  &Reference pixel for RA.\\
crpix2 & sky pixels & FLOAT & -999  &Reference pixel for Dec.\\
cdelt1 & degrees/pixel & FLOAT & -999  &Pixel scale in RA.\\
cdelt2 & degrees/pixel & FLOAT & -999  &Pixel scale in Dec.\\
pc001001 & - & FLOAT & -999  &Linear transformation matrix element between image pixel x and RA.\\
pc001002 & - & FLOAT & -999  &Linear transformation matrix element between image pixel y and RA.\\
pc002001 & - & FLOAT & -999  &Linear transformation matrix element between image pixel x and Dec.\\
pc002002 & - & FLOAT & -999  &Linear transformation matrix element between image pixel y and Dec.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
\hline
\end{tabular}
\end{center}
\label{table:ForcedWarpMeta}
\end{table}%




\begin{table}
\caption{ForcedWarpMeasurement: Contains single epoch forced photometry of individual measurements of objects detected in the stacked images.  The identifiers connecting the measurement back to the original image and to the object association are provided.  PSF, aperture, and \citet{Kron1980} photometry are included, along with sky and detector coordinate positions.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsFWid & - & BIGINT & NA  &Unique internal PSPS forced {\em warp} identifier.\\
detectID & - & BIGINT & NA  &Unique detection identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
ippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
forcedSummaryID & - & BIGINT & NA  &Unique forced {\em warp} summary identifier.\\
forcedWarpID & - & BIGINT & NA  &Unique forced {\em warp} identifier.\\
randomWarpID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
tessID & - & TINYINT & 0  &Tessellation identifier.  Details in the TessellationType table.\\
projectionID & - & SMALLINT & -1  &Projection cell identifier.\\
skyCellID & - & TINYINT & 255  &Skycell region identifier.\\
dvoRegionID & - & INT & -1  &Internal DVO region identifier.\\
obsTime & days & FLOAT & -999  &Modified Julian Date at the midpoint of the observation.\\
zp & magnitudes & REAL & 0  &Photometric zeropoint.  Necessary for converting listed fluxes and magnitudes \\
& & & & back to measured ADU counts.\\
telluricExt & magnitudes & REAL & NA  &Estimated Telluric extinction due to non-photometric observing conditions. \\
& & & & Necessary for converting listed fluxes and magnitudes back to measured ADU counts.\\
expTime & seconds & REAL & -999  &Exposure time of the frame/exposure.  Necessary for converting listed fluxes \\
& & & & and magnitudes back to measured ADU counts.\\
airMass & - & REAL & 0  &Airmass at midpoint of the exposure.  Necessary for converting listed fluxes \\
& & & & and magnitudes back to measured ADU counts.\\
FpsfFlux & Jy & REAL & -999  &PSF flux.\\
FpsfFluxErr & Jy & REAL & -999  &Error in PSF flux.\\
xPosChip & raw pixels & REAL & -999  &PSF x position in original chip pixels.\\
yPosChip & raw pixels & REAL & -999  &PSF y position in original chip pixels.\\
FccdID & - & SMALLINT & -999  &OTA identifier of original chip (see ImageMeta).\\
FpsfMajorFWHM & arcsec & REAL & -999  &PSF major axis FWHM.\\
FpsfMinorFWHM & arcsec & REAL & -999  &PSF minor axis FWHM.\\
FpsfTheta & degrees & REAL & -999  &PSF major axis orientation.\\
FpsfCore & - & REAL & -999  &PSF core parameter k, where $F = F0 / (1 + k r^2 + r^{3.33})$.\\
FpsfQf & - & REAL & -999  &PSF coverage factor.\\
FpsfQfPerfect & - & REAL & -999  &PSF weighted fraction of pixels totally unmasked.\\
FpsfChiSq & - & REAL & -999  &Reduced chi squared value of the PSF model fit.\\
FmomentXX & $arcsec^2$ & REAL & -999  &Second moment $M_{xx}$.\\
FmomentXY & $arcsec^2$ & REAL & -999  &Second moment $M_{xy}$.\\
FmomentYY & $arcsec^2$ & REAL & -999  &Second moment $M_{yy}$.\\
FmomentR1 & arcsec & REAL & -999  &First radial moment.\\
FmomentRH & $arcsec^{0.5}$ & REAL & -999  &Half radial moment ($r^{0.5}$ weighting).\\
FmomentM3C & $arcsec^2$ & REAL & -999  &Cosine of trefoil second moment term: $r^2 cos(3 theta) = M_{xxx} - 3 * M_{xyy}$.\\
FmomentM3S & $arcsec^2$ & REAL & -999  &Sine of trefoil second moment: $r^2 sin (3 theta) = 3 * M_{xxy} - M_{yyy}$.\\
FmomentM4C & $arcsec^2$ & REAL & -999  &Cosine of quadrupole second moment: $r^2 cos (4 theta) = M_{xxxx} - 6 * M_{xxyy} + M_{yyyy}$.\\
FmomentM4S & $arcsec^2$ & REAL & -999  &Sine of quadrupole second moment: $r^2 sin (4 theta) = 4 * M_{xxxy} - 4 * M_{xyyy}$.\\
FapFlux & Jy & REAL & -999  &Aperture flux.\\
FapFluxErr & Jy & REAL & -999  &Error in aperture flux.\\
FapFillF & - & REAL & -999  &Aperture fill factor.\\
FapRadius & arcsec & REAL & -999  &Aperture radius for forced {\em warp} detection.\\
FkronFlux & Jy & REAL & -999  &Kron (1980) flux.\\
FkronFluxErr & Jy & REAL & -999  &Error in Kron (1980) flux.\\
FkronRad & arcsec & REAL & -999  &Kron (1980) radius.\\
Fsky & $Jy/arcsec^2$ & REAL & -999  &Background sky level.\\
FskyErr & $Jy/arcsec^2$ & REAL & -999  &Error in background sky level.\\
FinfoFlag & - & BIGINT & 0  &Information flag bitmask indicating details of the photometry.  \\
& & & & Values listed in DetectionFlags.\\
FinfoFlag2 & - & INT & 0  &Information flag bitmask indicating details of the photometry.  \\
& & & & Values listed in DetectionFlags2.\\
FinfoFlag3 & - & INT & 0  &Information flag bitmask indicating details of the photometry.  \\
& & & & Values listed in DetectionFlags3.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
\hline
\end{tabular}
\end{center}
\label{table:ForcedWarpMeasurement}
\end{table}%



\begin{table}
\caption{ForcedWarpMasked: Contains an entry for objects detected in the stacked images which were in the footprint of a single epoch exposure, but for which there are no unmasked pixels at that epoch.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsFWid & - & BIGINT & NA  &Unique internal PSPS forced {\em warp} identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
ippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
forcedSummaryID & - & BIGINT & NA  &Forced {\em warp} summary meta identifier\\
forcedWarpID & - & BIGINT & NA  &Unique forced {\em warp} identifier.\\
randomWarpID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
tessID & - & TINYINT & 0  &Tessellation identifier.  Details in the TessellationType table.\\
projectionID & - & SMALLINT & -1  &Projection cell identifier.\\
skyCellID & - & REAL & -999  &Skycell region identifier.\\
dvoRegionID & - & REAL & -999  &Internal DVO region identifier.\\
obsTime & days & FLOAT & -999  &Modified Julian Date at the midpoint of the observation.\\
\hline
\end{tabular}
\end{center}
\label{table:ForcedWarpMasked}
\end{table}%

\begin{table}
\caption{ForcedWarpExtended: Contains the single epoch forced photometry fluxes within the SDSS R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), and R7 (r = 7.43 arcsec) apertures \citep{Stoughton2002} for objects detected in the stacked images.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsFWid & - & BIGINT & NA  &Unique internal PSPS forced {\em warp} identifier.\\
detectID & - & BIGINT & NA  &Unique detection identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
ippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
forcedWarpID & - & BIGINT & NA  &Unique forced {\em warp} identifier.\\
randomWarpID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
tessID & - & TINYINT & 0  &Tessellation identifier.  Details in the TessellationType table.\\
projectionID & - & SMALLINT & -1  &Projection cell identifier.\\
skyCellID & - & TINYINT & 255  &Skycell region identifier.\\
dvoRegionID & - & INT & -1  &Internal DVO region identifier.\\
obsTime & days & FLOAT & -999  &Modified Julian Date at the midpoint of the observation.\\
flxR5 & Jy & REAL & -999  &Flux from forced photometry measurement within an aperture of radius \\
& & & & r = 3.00 arcsec.\\
flxR5Err & Jy & REAL & -999  &Error in flux from forced photometry measurement within an aperture of\\
& & & & radius r = 3.00 arcsec.\\
flxR5Std & Jy & REAL & -999  &Standard deviation of flux from forced photometry measurement within \\
& & & & an aperture of radius r = 3.00 arcsec.\\
flxR5Fill & - & REAL & -999  &Aperture fill factor for forced photometry measurement within an \\
& & & & aperture of radius r = 3.00 arcsec.\\
flxR6 & Jy & REAL & -999  &Flux from forced photometry measurement within an aperture of radius \\
& & & & r = 4.63 arcsec.\\
flxR6Err & Jy & REAL & -999  &Error in flux from forced photometry measurement within an aperture of\\
& & & & radius r = 4.63 arcsec.\\
flxR6Std & Jy & REAL & -999  &Standard deviation of flux from forced photometry measurement within \\
& & & & an aperture of radius r = 4.63 arcsec.\\
flxR6Fill & - & REAL & -999  &Aperture fill factor for forced photometry measurement within an \\
& & & & aperture of radius r = 4.63 arcsec.\\
flxR7 & Jy & REAL & -999  &Flux from forced photometry measurement within an aperture of radius \\
& & & & r = 7.43 arcsec.\\
flxR7Err & Jy & REAL & -999  &Error in flux from forced photometry measurement within an aperture of\\
& & & & radius r = 7.43 arcsec.\\
flxR7Std & Jy & REAL & -999  &Standard deviation of flux from forced photometry measurement within \\
& & & & an aperture of radius r = 7.43 arcsec.\\
flxR7Fill & - & REAL & -999  &Aperture fill factor for forced photometry measurement within an \\
& & & & aperture of radius r = 7.43 arcsec.\\
\hline
\end{tabular}
\end{center}
\label{table:ForcedWarpExtended}
\end{table}%



\begin{table}
\caption{ForcedWarpLensing: Contains the \citet[K95]{Kaiser1995} lensing parameters measured from the forced photometry of objects detected in stacked images on the individual single epoch data.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsFWid & - & BIGINT & NA  &Unique internal PSPS forced {\em warp} identifier.\\
detectID & - & BIGINT & NA  &Unique detection identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
ippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
forcedWarpID & - & BIGINT & NA  &Unique forced {\em warp} identifier.\\
randomWarpID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
tessID & - & TINYINT & 0  &Tessellation identifier.  Details in the TessellationType table.\\
projectionID & - & SMALLINT & -1  &Projection cell identifier.\\
skyCellID & - & TINYINT & 255  &Skycell region identifier.\\
dvoRegionID & - & INT & -1  &Internal DVO region identifier.\\
obsTime & days & FLOAT & -999  &Modified Julian Date at the midpoint of the observation.\\
lensObjSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from forced photometry.\\
lensObjSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from forced photometry.\\
lensObjSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from forced photometry.\\
lensObjSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from forced photometry.\\
lensObjSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from forced photometry.\\
lensObjShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from forced photometry.\\
lensObjShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from forced photometry.\\
lensObjShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from forced photometry.\\
lensObjShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from forced photometry.\\
lensObjShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from forced photometry.\\
lensPSFSmearX11 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X11 term from PSF model for forced photometry.\\
lensPSFSmearX12 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X12 term from PSF model for forced photometry.\\
lensPSFSmearX22 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A11) smear polarizability X22 term from PSF model for forced photometry.\\
lensPSFSmearE1 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e1 term from PSF model for forced photometry.\\
lensPSFSmearE2 & $arcsec^{-2}$ & REAL & -999  &K95 eq. (A12) smear polarizability e2 term from PSF model for forced photometry.\\
lensPSFShearX11 & - & REAL & -999  &K95 eq. (B11) shear polarizability X11 term from PSF model for forced photometry.\\
lensPSFShearX12 & - & REAL & -999  &K95 eq. (B11) shear polarizability X12 term from PSF model for forced photometry.\\
lensPSFShearX22 & - & REAL & -999  &K95 eq. (B11) shear polarizability X22 term from PSF model for forced photometry.\\
lensPSFShearE1 & - & REAL & -999  &K95 eq. (B12) shear polarizability e1 term from PSF model for forced photometry.\\
lensPSFShearE2 & - & REAL & -999  &K95 eq. (B12) shear polarizability e2 term from PSF model for forced photometry.\\
psfE1 & - & REAL & -999  &K95 polarization parameter $e1 = (M_{xx} - M_{yy}) / (M_{xx} + M_{yy})$ from forced photometry.\\
psfE2 & - & REAL & -999  &K95 polarization parameter $e2 =  (2 M_{xy}) / (M_{xx} + M_{yy})$ from forced photometry.\\

\hline
\end{tabular}
\end{center}
\label{table:ForcedWarpLensing}
\end{table}%




\begin{table}
\caption{ForcedWarpToImage: Contains the mapping of which input image comprises a particular {\em warp} image used for forced photometry.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
forcedWarpID & - & BIGINT & NA  &Unique forced {\em warp} identifier.\\
imageID & - & BIGINT & NA  &Unique image identifier.  Constructed as (100 * frameID + ccdID).\\
\hline
\end{tabular}
\end{center}
\label{table:ForcedWarpToImage}
\end{table}%

\subsection{Forced Galaxy Tables}

\begin{table}
\caption{ForcedGalaxyShape: Contains the extended source galaxy shape parameters.  All filters are matched into a single row.  The positions, magnitudes, fluxes, and Sersic indices are inherited from their parent measurement in the StackModelFit tables, and are reproduced here for convenience.  The major and minor axes and orientation are recalculated on a warp-by-warp basis from the best fit given these inherited properties (\citep{Sersic1963}).}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
objID & - & BIGINT & NA  &Unique object identifier.\\
uniquePspsFGid & - & BIGINT & NA  &Unique internal PSPS forced galaxy identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
randomForcedGalID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
galModelType & - & TINYINT & -999  &Galaxy model identifier.\\
nFilter & - & TINYINT & -999  &Number of filters with valid model measurements.\\
gippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
gstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for the g filter {\em stack} that was the original detection source.\\
gGalMajor & arcsec & REAL & -999  &Galaxy major axis for g filter measurement.\\
gGalMajorErr & arcsec & REAL & -999  &Error in galaxy major axis for g filter measurement.\\
gGalMinor & arcsec & REAL & -999  &Galaxy minor axis for g filter measurement.\\
gGalMinorErr & arcsec & REAL & -999  &Error in galaxy minor axis for g filter measurement.\\
gGalMag & AB & REAL & -999  &Galaxy fit magnitude for g filter measurement.\\
gGalMagErr & AB & REAL & -999  &Error in galaxy fit magnitude for g filter measurement.\\
gGalPhi & degrees & REAL & -999  &Major axis position angle of the model fit for the g filter measurement.\\
gGalIndex & - & REAL & -999  &Sersic index of the model fit for the g filter measurement.\\
gGalFlags & - & SMALLINT & -999  &Analysis flags for the galaxy model chi-square fit (g filter measurement, values \\
& & & & defined in ForcedGalaxyShapeFlags).\\
gGalChisq & - & REAL & -999  &Reduced chi squared value for g filter measurement.\\
rippDetectID \\
... & & & & same entries repeated for r, i, z, and y filters \\
%rippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%rstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for the r filter {\em stack} that was the original detection source.\\
%rGalMajor & arcsec & REAL & -999  &Galaxy major axis for r filter measurement.\\
%rGalMajorErr & arcsec & REAL & -999  &Error in galaxy major axis for r filter measurement.\\
%rGalMinor & arcsec & REAL & -999  &Galaxy minor axis for r filter measurement.\\
%rGalMinorErr & arcsec & REAL & -999  &Error in galaxy minor axis for r filter measurement.\\
%rGalMag & AB & REAL & -999  &Galaxy fit magnitude for r filter measurement.\\
%rGalMagErr & AB & REAL & -999  &Error in galaxy fit magnitude for r filter measurement.\\
%rGalPhi & degrees & REAL & -999  &Major axis position angle of the model fit for the r filter measurement.\\
%rGalIndex & - & REAL & -999  &Sersic index of the model fit for the r filter measurement.\\
%rGalFlags & - & SMALLINT & -999  &Analysis flags for the galaxy model chi-square fit (r filter measurement, values defined in ForcedGalaxyShapeFlags).\\
%rGalChisq & - & REAL & -999  &Reduced chi squared value for r filter measurement.\\
%iippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%istackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for the i filter {\em stack} that was the original detection source.\\
%iGalMajor & arcsec & REAL & -999  &Galaxy major axis for i filter measurement.\\
%iGalMajorErr & arcsec & REAL & -999  &Error in galaxy major axis for i filter measurement.\\
%iGalMinor & arcsec & REAL & -999  &Galaxy minor axis for i filter measurement.\\
%iGalMinorErr & arcsec & REAL & -999  &Error in galaxy minor axis for i filter measurement.\\
%iGalMag & AB & REAL & -999  &Galaxy fit magnitude for i filter measurement.\\
%iGalMagErr & AB & REAL & -999  &Error in galaxy fit magnitude for i filter measurement.\\
%iGalPhi & degrees & REAL & -999  &Major axis position angle of the model fit for the i filter measurement.\\
%iGalIndex & - & REAL & -999  &Sersic index of the model fit for the i filter measurement.\\
%iGalFlags & - & SMALLINT & -999  &Analysis flags for the galaxy model chi-square fit (i filter measurement, values defined in ForcedGalaxyShapeFlags).\\
%iGalChisq & - & REAL & -999  &Reduced chi squared value for i filter measurement.\\
%zippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%zstackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for the z filter {\em stack} that was the original detection source.\\
%zGalMajor & arcsec & REAL & -999  &Galaxy major axis for z filter measurement.\\
%zGalMajorErr & arcsec & REAL & -999  &Error in galaxy major axis for z filter measurement.\\
%zGalMinor & arcsec & REAL & -999  &Galaxy minor axis for z filter measurement.\\
%zGalMinorErr & arcsec & REAL & -999  &Error in galaxy minor axis for z filter measurement.\\
%zGalMag & AB & REAL & -999  &Galaxy fit magnitude for z filter measurement.\\
%zGalMagErr & AB & REAL & -999  &Error in galaxy fit magnitude for z filter measurement.\\
%zGalPhi & degrees & REAL & -999  &Major axis position angle of the model fit for the z filter measurement.\\
%zGalIndex & - & REAL & -999  &Sersic index of the model fit for the z filter measurement.\\
%zGalFlags & - & SMALLINT & -999  &Analysis flags for the galaxy model chi-square fit (z filter measurement, values defined in ForcedGalaxyShapeFlags).\\
%zGalChisq & - & REAL & -999  &Reduced chi squared value for z filter measurement.\\
%yippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
%ystackImageID & - & BIGINT & NA  &Unique {\em stack} identifier for the z filter {\em stack} that was the original detection source.\\
%yGalMajor & arcsec & REAL & -999  &Galaxy major axis for y filter measurement.\\
%yGalMajorErr & arcsec & REAL & -999  &Error in galaxy major axis for y filter measurement.\\
%yGalMinor & arcsec & REAL & -999  &Galaxy minor axis for y filter measurement.\\
%yGalMinorErr & arcsec & REAL & -999  &Error in galaxy minor axis for y filter measurement.\\
%yGalMag & AB & REAL & -999  &Galaxy fit magnitude for y filter measurement.\\
%yGalMagErr & AB & REAL & -999  &Error in galaxy fit magnitude for y filter measurement.\\
%yGalPhi & degrees & REAL & -999  &Major axis position angle of the model fit for the y filter measurement.\\
%yGalIndex & - & REAL & -999  &Sersic index of the model fit for the y filter measurement.\\
%yGalFlags & - & SMALLINT & -999  &Analysis flags for the galaxy model chi-square fit (y filter measurement, values defined in ForcedGalaxyShapeFlags).\\
%yGalChisq & - & REAL & -999  &Reduced chi squared value for y filter measurement.\\
yGalChisq\\
\hline
\end{tabular}
\end{center}
\label{table:ForcedGalaxyShape}
\end{table}%

\subsection{Diff Object Tables}

\begin{table}
\caption{DiffDetObject: Contains the positional information for difference detection objects in a number of coordinate systems.  The objects associate difference detections within a one arcsecond radius.  The number of detections in each filter from is listed, along with maximum coverage fractions \citep[see][]{Szalay2007}.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
diffObjName & - & VARCHAR(32) & NA  &IAU name for this object.\\
diffObjPSOName & - & VARCHAR(32) & NA  &Alternate Pan-STARRS name for this object.\\
diffObjAltName1 & - & VARCHAR(32) &   &Altername name for this object.\\
diffObjAltName2 & - & VARCHAR(32) &   &Altername name for this object.\\
diffObjAltName3 & - & VARCHAR(32) &   &Altername name for this object.\\
diffObjPopularName & - & VARCHAR(140) &   &Well known name for this object.\\
diffObjID & - & BIGINT & NA  &Unique difference object identifier.\\
uniquePspsDOid & - & BIGINT & NA  &Unique internal PSPS difference object identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
htmID & - & BIGINT & NA  &Hierarchical triangular mesh (Szalay 2007) index.\\
zoneID & - & INT & NA  &Local zone index, found by dividing the sky into bands of declination \\
& & & & 1/2 arcminute in height: zoneID = floor((90 + declination)/0.0083333).\\
randomDiffObjID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
batchID & - & BIGINT & NA  &Internal database batch identifier.\\
dvoRegionID & - & INT & -1  &Internal DVO region identifier.\\
objInfoFlag & - & INT & 0  &Information flag bitmask indicating details of the photometry.  Values\\
& & & & listed in ObjectInfoFlags.\\
qualityFlag & - & TINYINT & 0  &Subset of objInfoFlag denoting whether this object is real or a\\
& & & & likely false positive.  Values listed in ObjectQualityFlags.\\
ra & degrees & FLOAT & -999  &Right ascension mean.\\
dec & degrees & FLOAT & -999  &Declination mean.\\
cx & - & FLOAT & NA  &Cartesian x on a unit sphere. \\
cy & - & FLOAT & NA  &Cartesian y on a unit sphere. \\
cz & - & FLOAT & NA  &Cartesian z on a unit sphere. \\
lambda & degrees & FLOAT & -999  &Ecliptic longitude.\\
beta & degrees & FLOAT & -999  &Ecliptic latitude.\\
l & degrees & FLOAT & -999  &Galactic longitude.\\
b & degrees & FLOAT & -999  &Galactic latitude.\\
gQfPerfect & - & REAL & -999  &Maximum PSF weighted fraction of pixels totally unmasked from g\\
& & & & filter detections.\\
rQfPerfect & - & REAL & -999  &Maximum PSF weighted fraction of pixels totally unmasked from r\\
& & & & filter detections.\\
iQfPerfect & - & REAL & -999  &Maximum PSF weighted fraction of pixels totally unmasked from i\\
& & & & filter detections.\\
zQfPerfect & - & REAL & -999  &Maximum PSF weighted fraction of pixels totally unmasked from z\\
& & & & filter detections.\\
yQfPerfect & - & REAL & -999  &Maximum PSF weighted fraction of pixels totally unmasked from y\\
& & & & filter detections.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
nDetections & - & SMALLINT & -999  &Number of difference detections in all filters.\\
ng & - & SMALLINT & -999  &Number of difference detections in g filter.\\
nr & - & SMALLINT & -999  &Number of difference detections in r filter.\\
ni & - & SMALLINT & -999  &Number of difference detections in i filter.\\
nz & - & SMALLINT & -999  &Number of difference detections in z filter.\\
ny & - & SMALLINT & -999  &Number of difference detections in y filter.\\
\hline
\end{tabular}
\end{center}
\label{table:DiffDetObject}
\end{table}%

\subsection{Diff Detection Tables}

\begin{table}
\caption{DiffMeta: Contains metadata related to a difference image constructed by subtracting a stacked image from a single epoch image, or in the case of the MD Survey from a nightly {\em stack} (stack made from all exposures in a single filter in a single night).  The astrometric calibration of the reference {\em stack} is listed.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
diffImageID & - & BIGINT & NA  &Unique difference identifier.\\
batchID & - & BIGINT & NA  &Internal database batch identifier.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
diffTypeID & - & TINYINT & 0  &Difference type identifier.  Details in the DiffType table.\\
frameID & - & INT & NA  &Frame/exposure identifier for the positive image in warp-stack \\
& & & & difference images; \\ %not populated for stack-stack differences.\\
posImageID & - & BIGINT & NA  &Image identifier for the positive image.  \\ %For warp-stack difference images, this corresponds to the ForcedWarpToImage.forcedWarpID entry.  For stack-stack difference images, this corresponds to StackMeta.stackImageID.\\
negImageID & - & BIGINT & NA  &Image identifier for the negative image.  \\%For warp-stack difference images, this corresponds to the StackMeta.stackImageID entry.\\
ippDiffID & - & BIGINT & NA  &IPP diffRun identifier.\\
tessID & - & TINYINT & 0  &Tessellation identifier.  Details in the TessellationType table.\\
projectionID & - & SMALLINT & -1  &Projection cell identifier.\\
skyCellID & - & TINYINT & 255  &Skycell region identifier.\\
photoCalID & - & INT & NA  &Photometric calibration identifier.  Details in the PhotoCal table.\\
analysisVer & - & VARCHAR(100) &   &IPP software analysis release version.\\
md5sum & - & VARCHAR(100) &   &IPP MD5 Checksum.\\
detectionThreshold & magnitudes & REAL & -999  &Reference magnitude for detection efficiency calculation.\\
expTime & seconds & REAL & -999  &Exposure time of positive image.  Necessary for converting listed \\
& & & & fluxes and magnitudes back to measured ADU counts.\\
psfModelID & - & INT & -999  &PSF model identifier.\\
psfFWHM & arcsec & REAL & -999  &Mean PSF full width at half maximum at image center.\\
psfWidMajor & arcsec & REAL & -999  &PSF major axis FWHM at image center.\\
psfWidMinor & arcsec & REAL & -999  &PSF minor axis FWHM at image center.\\
psfTheta & degrees & REAL & -999  &PSF major axis orientation at image center.\\
kernel & - & VARCHAR(100) &   &Subtraction kernel.\\
mode & - & TINYINT & 0  &Subtraction mode for which input to convolve.\\
numStamps & - & INT & -999  &Number of stamps.\\
stampDevMean & - & REAL & -999  &Mean stamp deviation.\\
stampDevRMS & - & REAL & -999  &RMS stamp deviation.\\
normalization & - & REAL & -999  &Normalization.\\
convolveMax & - & REAL & -999  &Maxiumum convolution fraction.\\
deconvolveMax & - & REAL & -999  &Maximum deconvolution fraction.\\
ctype1 & - & VARCHAR(100) &   &Name of astrometric projection in right ascension.\\
ctype2 & - & VARCHAR(100) &   &Name of astrometric projection in declination.\\
crval1 & degrees & FLOAT & -999  &Right ascension corresponding to reference pixel.\\
crval2 & degrees & FLOAT & -999  &Declination corresponding to reference pixel.\\
crpix1 & sky pixels & FLOAT & -999  &Reference pixel for right ascension.\\
crpix2 & sky pixels & FLOAT & -999  &Reference pixel for declination.\\
cdelt1 & degrees/pixel & FLOAT & -999  &Pixel scale in right ascension.\\
cdelt2 & degrees/pixel & FLOAT & -999  &Pixel scale in declination.\\
pc001001 & - & FLOAT & -999  &Linear transformation matrix element between image pixel x and \\
& & & & right ascension.\\
pc001002 & - & FLOAT & -999  &Linear transformation matrix element between image pixel y and \\
& & & & right ascension.\\
pc002001 & - & FLOAT & -999  &Linear transformation matrix element between image pixel x and \\
& & & & declination.\\
pc002002 & - & FLOAT & -999  &Linear transformation matrix element between image pixel y and \\
& & & & declination.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
\hline
\end{tabular}
\end{center}
\label{table:DiffMeta}
\end{table}%


\begin{table}
\caption{DiffDetection: Contains the photometry of individual detections from a difference image.  The identifiers connecting the detection back to the difference image and to the object association are provided.  PSF, aperture, and \citet{Kron1980} photometry are included, along with sky and detector coordinate positions.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
diffObjID & - & BIGINT & NA  &Unique difference object identifier.\\
uniquePspsDFid & - & BIGINT & NA  &Unique internal PSPS difference detection identifier.\\
diffDetID & - & BIGINT & NA  &Unique difference detection identifier.\\
diffImageID & - & BIGINT & NA  &Difference detection meta identifier.\\
ippObjID & - & BIGINT & NA  &IPP internal object identifier.\\
ippDetectID & - & BIGINT & NA  &IPP internal detection identifier.\\
fromPosImage & - & TINYINT & NA  &Detection is from positive image (if 1) or negative image (if 0).\\
filterID & - & TINYINT & NA  &Filter identifier.  Details in the Filter table.\\
surveyID & - & TINYINT & NA  &Survey identifier.  Details in the Survey table.\\
randomDiffID & - & FLOAT & NA  &Random value drawn from the interval between zero and one.\\
tessID & - & TINYINT & 0  &Tessellation identifier.  Details in the TessellationType table.\\
projectionID & - & SMALLINT & -1  &Projection cell identifier.\\
skyCellID & - & TINYINT & 255  &Skycell region identifier.\\
dvoRegionID & - & INT & -1  &Internal DVO region identifier.\\
obsTime & days & FLOAT & -999  &Modified Julian Date at the midpoint of the observation.\\
xPos & sky pixels & REAL & -999  &PSF x center location.\\
yPos & sky pixels & REAL & -999  &PSF y center location.\\
xPosErr & sky pixels & REAL & -999  &Error in PSF x center location.\\
yPosErr & sky pixels & REAL & -999  &Error in PSF y center location.\\
pltScale & arcsec/pixel & REAL & -999  &Local plate scale at this location.\\
posAngle & degrees & REAL & -999  &Position angle (sky-to-chip) at this location.\\
ra & degrees & FLOAT & -999  &Right ascension.\\
dec & degrees & FLOAT & -999  &Declination.\\
raErr & arcsec & REAL & -999  &Right ascension error.\\
decErr & arcsec & REAL & -999  &Declination error.\\
zp & magnitudes & REAL & 0  &Photometric zeropoint for converting fluxes and magnitudes to measured ADU.\\
telluricExt & magnitudes & REAL & NA  &Estimated Telluric extinction due to non-photometric observing conditions.\\ % Necessary for converting listed fluxes and magnitudes back to measured ADU counts.\\
expTime & seconds & REAL & -999  &Exposure time of the positive single-epoch image. \\
% Necessary for converting listed fluxes and magnitudes back to measured ADU counts.\\
airMass & - & REAL & 0  &Airmass at midpoint of exposure to convert fluxes and magnitudes to measured ADU.\\
DpsfFlux & Jy & REAL & -999  &Flux from PSF fit.\\
DpsfFluxErr & Jy & REAL & -999  &Error in PSF flux.\\
xPosChip & raw pixels & REAL & -999  &PSF x position in original chip pixels.\\
yPosChip & raw pixels & REAL & -999  &PSF y position in original chip pixels.\\
ccdID & - & SMALLINT & -999  &OTA identifier of original chip (see ImageMeta).\\
DpsfMajorFWHM & arcsec & REAL & -999  &PSF major axis FWHM.\\
DpsfMinorFWHM & arcsec & REAL & -999  &PSF minor axis FWHM.\\
DpsfTheta & degrees & REAL & -999  &PSF major axis orientation.\\
DpsfCore & - & REAL & -999  &PSF core parameter k, where $F = F0 / (1 + k r^2 + r^{3.33}).$\\
DpsfQf & - & REAL & -999  &PSF coverage factor.\\
DpsfQfPerfect & - & REAL & -999  &PSF-weighted fraction of pixels totally unmasked.\\
DpsfChiSq & - & REAL & -999  &Reduced chi squared value of the PSF model fit.\\
DpsfLikelihood & - & REAL & -999  &Likelihood that this detection is best fit by a PSF.\\
DmomentXX & $arcsec^2$ & REAL & -999  &Second moment $M_{xx}$.\\
DmomentXY & $arcsec^2$ & REAL & -999  &Second moment $M_{xy}$.\\
DmomentYY & $arcsec^2$ & REAL & -999  &Second moment $M_{yy}$.\\
DmomentR1 & arcsec & REAL & -999  &First radial moment.\\
DmomentRH & $arcsec^{0.5}$ & REAL & -999  &Half radial moment ($r^{0.5}$ weighting).\\
DapFlux & Jy & REAL & -999  &Aperture flux.\\
DapFluxErr & Jy & REAL & -999  &Error in aperture flux.\\
DapFillF & - & REAL & -999  &Aperture fill factor.\\
DkronFlux & Jy & REAL & -999  &Kron (1980) flux.\\
DkronFluxErr & Jy & REAL & -999  &Error in Kron (1980) flux.\\
DkronRad & arcsec & REAL & -999  &Kron (1980) radius.\\
diffNPos & sky pixels & INT & -999  &Number of difference pixels within the aperture that are positive.\\
diffFPosRatio & - & REAL & -999  &Ratio of the sum of positive flux pixel values to the sum of the absolute value\\
& & & & of all unmasked pixels within the aperture.\\
diffNPosRatio & - & REAL & -999  &Ratio of the number of positive flux pixels to the number of unmasked pixels\\
& & & & within the aperture.\\
diffNPosMask & - & REAL & -999  &Ratio of the number of positive flux pixels to the number of positive or masked\\
& & & & pixels within the aperture.\\
diffNPosAll & - & REAL & -999  &Ratio of the number of positive flux pixels to the total number of all pixels within\\
& & & & the aperture.\\
diffPosDist & sky pixels & REAL & -999  &Distance to matching source in positive image.\\
diffNegDist & sky pixels & REAL & -999  &Distance to matching source in negative image.\\
diffPosSN & - & REAL & -999  &Signal to noise of matching source in positive image.\\
diffNegSN & - & REAL & -999  &Signal to noise of matching source in negative image.\\
Dsky & $Jy/arcsec^2$ & REAL & -999  &Background sky level.\\
DskyErr & $Jy/arcsec^2$ & REAL & -999  &Error in background sky level.\\
DinfoFlag & - & BIGINT & 0  &Information flag bitmask indicating details of the photometry. see DetectionFlags.\\
DinfoFlag2 & - & INT & 0  &Information flag bitmask indicating details of the photometry.  see DetectionFlags2.\\
DinfoFlag3 & - & INT & 0  &Information flag bitmask indicating details of the photometry.  see DetectionFlags3.\\
processingVersion & - & TINYINT & NA  &Data release version.\\
\hline
\end{tabular}
\end{center}
\label{table:DiffDetection}
\end{table}%



\begin{table}
\caption{DiffToImage: Contains the mapping of which input images were used to construct a particular difference image.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
diffImageID & - & BIGINT & NA  &Unique difference identifier.\\
imageID & - & BIGINT & NA  &Unique image identifier.  Constructed as (100 * frameID + ccdID).\\
\hline
\end{tabular}
\end{center}
\label{table:DiffToImage}
\end{table}%

\begin{table}
\caption{DiffDetEffMeta: Contains the detection efficiency information for a given individual difference image.  Provides the number of recovered sources out of 500 injected sources and statistics about the magnitudes of the recovered sources for a range of magnitude offsets.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lllll}
\hline
\hline
column name & units & data type & default & description\\
\hline
diffImageID & - & BIGINT & NA  &Unique difference image identifier.\\
magref & magnitudes & REAL & NA  &Detection efficiency reference magnitude.\\
nInjected & - & INT & NA  &Number of fake sources injected in each magnitude bin.\\
offset01 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 1.\\
counts01 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 1.\\
diffMean01 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 1.\\
diffStdev01 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 1.\\
errMean01 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 1.\\
offset02 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 2.\\
counts02 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 2.\\
diffMean02 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 2.\\
diffStdev02 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 2.\\
errMean02 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 2.\\
offset03 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 3.\\
counts03 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 3.\\
diffMean03 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 3.\\
diffStdev03 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 3.\\
errMean03 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 3.\\
offset04 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 4.\\
counts04 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 4.\\
diffMean04 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 4.\\
diffStdev04 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 4.\\
errMean04 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 4.\\
offset05 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 5.\\
counts05 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 5.\\
diffMean05 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 5.\\
diffStdev05 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 5.\\
errMean05 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 5.\\
offset06 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 6.\\
counts06 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 6.\\
diffMean06 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 6.\\
diffStdev06 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 6.\\
errMean06 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 6.\\
offset07 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 7.\\
counts07 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 7.\\
diffMean07 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 7.\\
diffStdev07 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 7.\\
errMean07 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 7.\\
offset08 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 8.\\
counts08 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 8.\\
diffMean08 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 8.\\
diffStdev08 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 8.\\
errMean08 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 8.\\
offset09 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 9.\\
counts09 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 9.\\
diffMean09 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 9.\\
diffStdev09 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 9.\\
errMean09 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 9.\\
offset10 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 10.\\
counts10 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 10.\\
diffMean10 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 10.\\
diffStdev10 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 10.\\
errMean10 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 10.\\
offset11 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 11.\\
counts11 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 11.\\
diffMean11 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 11.\\
diffStdev11 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 11.\\
errMean11 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 11.\\
offset12 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 12.\\
counts12 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 12.\\
diffMean12 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 12.\\
diffStdev12 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 12.\\
errMean12 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 12.\\
offset13 & magnitudes & REAL & NA  &Detection efficiency magnitude offset for bin 13.\\
counts13 & - & REAL & NA  &Detection efficiency count of recovered sources in bin 13.\\
diffMean13 & magnitudes & REAL & NA  &Detection efficiency mean magnitude difference in bin 13.\\
diffStdev13 & magnitudes & REAL & NA  &Detection efficiency standard deviation of magnitude differences in bin 13.\\
errMean13 & magnitudes & REAL & NA  &Detection efficiency mean magnitude error in bin 13.\\
\hline
\end{tabular}
\end{center}
\label{table:DiffDetEffMeta}
\end{table}%

\section{IppToPsps translation tables}


%{\color{red} Something is fishy in this next paragraph! I cannot get it to compile! GH}



%{\color{red} Allright, more of these tables.  These are specifically showing what each column is from (ie, DVO, smf/cmf, which columns from those files, etc), including additional translations (some formulas are required in {\em IppToPsps}). I think this needs to be in here, but I would like verification before I add in more tables (it's a bit intensive). I intend to put in the tables for DR1 and add as I can.  It's a bit of work, but it's mindless work.  These tables are intended for power users. see Table~\ref{table:ipptopspsObjectThin} and Table~\ref{table:ipptopspsMeanObject} }



\begin{table}
\caption{ObjectThin: This describes the sources for each of the columns within {\em ObjectThin} as well the formula to generate the data within the column, if it is not just copying directly. For this table, DVO cpt NAME shows that this comes from the cpt files in the DVO database, and has a column of NAME.  The sources for this table include: the DVO cpt files, {\em IppToPsps}, PSPS, as well as a few columns that are not currently being used.}
\begin{center}
%\resizebox{\textwidth}{!}{%
\begin{tabular}{lll}
\hline
\hline
column name & source  & notes \\
\hline
objName & DVO cpt IAUNAME /{\em IppToPsps} & \\
objPSOName & DVO cpt PSO\_NAME  & \\
objAltName1 & not set & \\ 
objAltName2 & not set & \\
objAltName3 & not set & \\
objPopularName & not set & \\
objID & DVO cpt EXT\_ID & \\
uniquePspsOBid &{\em IppToPsps}& uniquePspsOBid = (batchID*1000000000) + row number) \\
ippObjID & DVO cpt OBJ\_ID and CAT\_ID & OBJ\_ID + (CAT\_ID $<<$ 32) \\
surveyID &{\em IppToPsps}& set to 0 for 3$\pi$ \\
htmID & PSPS  & calculated and filled in PSPS \citep{Szalay2007} \\
%  Szalay, A.S., Gray,J., Fekete, G., Kunszt,P., Kukol, P., Thakar, A.: Indexing the Sphere with the Hierarchical Triangular Mesh, MSR-TR-2005-123 (2005).
%  https://www.microsoft.com/en-us/research/publication/indexing-the-sphere-with-the-hierarchical-triangular-mesh/
% it's a microsoft paper  
% all the calculated in PSPS (ref) are this reference
zoneID & PSPS & calculated and filled in PSPS\\
tessID & DVO cpt TESS\_ID & \\
projectionID & DVO cpt  PROJECTION\_ID & \\
skyCellID & DVO cpt SKYCELL\_ID & \\
randomID &{\em IppToPsps}& random is seeded with RAND(batchID) \\
batchID &{\em IppToPsps}& sequentially ncreases as batches are made \\
dvoRegionID & DVO cpt CAT\_ID & \\
processingVersion &{\em IppToPsps}& set to 3 for this data release, for PV3 \\
objInfoFlag & DVO cpt FLAGS & \\
qualityFlag & DVO cpt FLAGS & FLAGS $>>$ 23 \& 0xFF \\
raStack & DVO cpt RA\_STK & \\
decStack & DVO cpt DEC\_STK & \\
raStackErr & DVO cpt RA\_STK\_ERR & \\
decStackErr & DVO cpt DEC\_STK\_ERR & \\
raMean & DVO cpt RA\_MEAN & \\
decMean & DVO cpt DEC\_MEAN & \\
raMeanErr & DVO cpt RA\_ERR & \\
decMeanErr & DVO cpt DEC\_ERR & \\
epochMean & DVO cpt EPOCH\_MEAN & \\
posMeanChisq & DVO cpt CHISQ\_POS & \\
cx & PSPS  & set to 0; calculated and filled by PSPS \\
cy & PSPS   & set to 0; calculated and filled by PSPS \\
cz & PSPS   & set to 0; calculated and filled by PSPS \\
lambda & PSPS set to 0; calculated and filled by PSPS\\
beta & PSPS  set to 0; calculated and filled by PSPS\\
l & PSPS &set to 0; calculated and filled by PSPS\\
b & PSPS  &set to 0; calculated and filled by PSPS\\
nStackObjectRows &{\em IppToPsps}& set to -999 for 3$\pi$ \\
nStackDetections & DVO cpt NSTACK\_DET & sum of NSTACK\_DET for all 5 filters \\    
nDetections &{\em IppToPsps}& sum of non-null ng + nr + ni + nz + ny \\
ng & DVO cpt NCODE & \\
nr & DVO cpt NCODE & \\
ni & DVO cpt NCODE & \\
nz & DVO cpt NCODE & \\
ny & DVO cpt NCODE & \\
\hline
\end{tabular}
\end{center}
\label{table:ipptopspsObjectThin}
\end{table}%

\begin{table}
\caption{MeanObject: This describes the sources for each of the columns within MeanObject as well the formula to generate the data within the column, if it is not just copying directly. For this table, DVO cps NAME shows that this comes from the cps files in the DVO database, and has a column of NAME.  The sources for this table include: the DVO cps files and {\em IppToPsps}.}
\begin{center}
%%\resizebox{\textwidth}{!}{%
\begin{tabular}{lll}
\hline
\hline
column name & source  & notes \\
\hline
objID & {\em IppToPsps}objectThin.objID & \\
uniquePspsOBid &{\em IppToPsps}objectThin.uniquePspsOBid & \\
gQfPerfect & DVO cps PSF\_QF\_PERF\_MAX & \\
gMeanPSFMag & DVO cps MAG & \\
gMeanPSFMagErr & DVO cps MAG\_ERR & \\
gMeanPSFMagStd & DVO cps MAG\_STDEV & \\
gMeanPSFMagNpt & DVO cps NUSED & \\
gMeanPSFMagMin & DVO cps MAG\_MIN & \\
gMeanPSFMagMax & DVO cps MAG\_MAX & \\
gMeanKronMag & DVO cps MAG\_KRON & \\
gMeanKronMagErr & DVO cps MAG\_KRON\_ERR & \\
gMeanKronMagStd & DVO cps MAG\_KRON\_STDEV & \\
gMeanKronMagNpt & DVO cps NUSED\_KRON & \\
gMeanApMag & DVO cps MAG\_AP & \\
gMeanApMagErr & DVO cps MAG\_AP\_ERR & \\
gMeanApMagStd & DVO cps MAG\_AP\_STDEV & \\
gMeanApMagNpt & DVO cps NUSED\_AP & \\
gFlags & DVO cps FLAGS & \\
rQfPerfect \\
... & & same entries repeated for r, i, z, and y filters \\
%rQfPerfect & dvo cps PSF\_QF\_PERF\_MAX & \\
%rMeanPSFMag & dvo cps MAG & \\
%rMeanPSFMagErr & dvo cps MAG\_ERR & \\
%rMeanPSFMagStd & dvo cps MAG\_STDEV & \\
%rMeanPSFMagNpt & dvo cps NUSED & \\
%rMeanPSFMagMin & dvo cps MAG\_MIN & \\
%rMeanPSFMagMax &  dvo cps MAG\_MAX & \\
%rMeanKronMag & dvo cps MAG\_KRON & \\
%rMeanKronMagErr & dvo cps MAG\_KRON\_ERR & \\
%rMeanKronMagStd & dvo cps MAG\_KRON\_STDEV & \\
%rMeanKronMagNpt & dvo cps NUSED\_KRON & \\
%rMeanApMag & dvo cps MAG\_AP & \\
%rMeanApMagErr & dvo cps MAG\_AP\_ERR & \\
%rMeanApMagStd & dvo cps MAG\_AP\_STDEV & \\
%rMeanApMagNpt &  dvo cps NUSED\_AP & \\
%rFlags & dvo cps FLAGS & \\
%iQfPerfect & dvo cps PSF\_QF\_PERF\_MAX & \\
%iMeanPSFMag & dvo cps MAG & \\
%iMeanPSFMagErr & dvo cps MAG\_ERR & \\
%iMeanPSFMagStd & dvo cps MAG\_STDEV & \\
%iMeanPSFMagNpt & dvo cps NUSED & \\
%iMeanPSFMagMin & dvo cps MAG\_MIN & \\
%iMeanPSFMagMax &  dvo cps MAG\_MAX & \\
%iMeanKronMag & dvo cps MAG\_KRON & \\
%iMeanKronMagErr & dvo cps MAG\_KRON\_ERR & \\
%iMeanKronMagStd & dvo cps MAG\_KRON\_STDEV & \\
%iMeanKronMagNpt & dvo cps NUSED\_KRON & \\
%iMeanApMag & dvo cps MAG\_AP & \\
%iMeanApMagErr & dvo cps MAG\_AP\_ERR & \\
%iMeanApMagStd & dvo cps MAG\_AP\_STDEV & \\
%iMeanApMagNpt &  dvo cps NUSED\_AP & \\
%iFlags & dvo cps FLAGS & \\
%zQfPerfect & dvo cps PSF\_QF\_PERF\_MAX & \\
%zMeanPSFMag & dvo cps MAG & \\
%zMeanPSFMagErr & dvo cps MAG\_ERR & \\
%zMeanPSFMagStd & dvo cps MAG\_STDEV & \\
%zMeanPSFMagNpt & dvo cps NUSED & \\
%zMeanPSFMagMin & dvo cps MAG\_MIN & \\
%zMeanPSFMagMax &  dvo cps MAG\_MAX & \\
%zMeanKronMag & dvo cps MAG\_KRON & \\
%zMeanKronMagErr & dvo cps MAG\_KRON\_ERR & \\
%zMeanKronMagStd & dvo cps MAG\_KRON\_STDEV & \\
%zMeanKronMagNpt & dvo cps NUSED\_KRON & \\
%zMeanApMag & dvo cps MAG\_AP & \\
%zMeanApMagErr & dvo cps MAG\_AP\_ERR & \\
%zMeanApMagStd & dvo cps MAG\_AP\_STDEV & \\
%zMeanApMagNpt &  dvo cps NUSED\_AP & \\
%zFlags & dvo cps FLAGS & \\
%yQfPerfect & dvo cps PSF\_QF\_PERF\_MAX & \\
%yMeanPSFMag & dvo cps MAG & \\
%yMeanPSFMagErr & dvo cps MAG\_ERR & \\
%yMeanPSFMagStd & dvo cps MAG\_STDEV & \\
%yMeanPSFMagNpt & dvo cps NUSED & \\
%yMeanPSFMagMin & dvo cps MAG\_MIN & \\
%yMeanPSFMagMax &  dvo cps MAG\_MAX & \\
%yMeanKronMag & dvo cps MAG\_KRON & \\
%yMeanKronMagErr & dvo cps MAG\_KRON\_ERR & \\
%yMeanKronMagStd & dvo cps MAG\_KRON\_STDEV & \\
%yMeanKronMagNpt & dvo cps NUSED\_KRON & \\
%yMeanApMag & dvo cps MAG\_AP & \\
%yMeanApMagErr & dvo cps MAG\_AP\_ERR & \\
%yMeanApMagStd & dvo cps MAG\_AP\_STDEV & \\
%yMeanApMagNpt &  dvo cps NUSED\_AP & \\
%yFlags & dvo cps FLAGS & \\
yFlags \\
\hline
\end{tabular}
\end{center}
\label{table:ipptopspsMeanObject}
\end{table}%

\end{document}  