IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40602


Ignore:
Timestamp:
Jan 22, 2019, 4:01:20 AM (7 years ago)
Author:
eugene
Message:

add bit-flag tables, descriptions

Location:
trunk/doc/release.2015
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/release.2015/inputs/lib.bib

    r40598 r40602  
    1647116471  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
    1647216472}
     16473                 
     16474@ARTICLE{1996AJ....111.1743B,
     16475   author = {{Bohlin}, R.~C.},
     16476    title = "{Spectrophotometric Standards From the Far-UV to the Near-IR on the White Dwarf Flux Scale}",
     16477  journal = {\aj},
     16478 keywords = {INSTRUMENTATION: SPECTROGRAPHS, TECHNIQUES: SPECTROSCOPIC},
     16479     year = 1996,
     16480    month = apr,
     16481   volume = 111,
     16482    pages = {1743},
     16483      doi = {10.1086/117914},
     16484   adsurl = {http://adsabs.harvard.edu/abs/1996AJ....111.1743B},
     16485  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
     16486}
  • trunk/doc/release.2015/ps1.analysis/analysis.tex

    r40600 r40602  
    118118
    119119\note{define psfQF, psfQFperfect}
     120\note{identify when each PM\_SOURCE\_MODE bit is raised}
     121\note{map PM\_SOURCE\_MODE bits from this paper to PSPS paper}
    120122
    121123The 1.8m Pan-STARRS\,1 telescope is located on the summit of Haleakala
     
    505507\end{table*}
    506508
    507 % \subsection{Output Formats}
     509\subsection{Informational and Warning Bit Flags}
     510
     511During the \ippprog{psphot} analysis, there are a wide variety of
     512conditions which are identified by the analysis software.  As part of
     513the output data for each detected source, two fields are provided
     514which encode these conditions as bit values in the two 32-bin
     515integers.  The following two tables list the individual bit values in
     516these two fields.  These informational and warning bits are described
     517in more detail later in this article.
     518%
     519Table~\ref{tab:det_flag_values} lists the flags recorded in the output
     520field \ippmisc{FLAGS}.  When data from \ippprog{psphot} is loaded into
     521a DVO database \citep{magnier2017.calibration}, these values are
     522stored in the field \code{Measure.photFlags} and exposed in the public
     523database \citep[PSPS][]{flewelling2017} in the fields
     524\code{Detection.infoFlag}, \code{StackObjectThin.XinfoFlag} (where
     525\code{X} is one of {$grizy$}), and
     526\code{ForcedWarpMeasurement.FinfoFlag}.
     527%
     528Table~\ref{tab:det_flag2_values} lists the flags recorded in the
     529output field \ippmisc{FLAGS2}.  When data from \ippprog{psphot} is
     530loaded into a DVO database \citep{magnier2017.calibration}, these
     531values are not currently loaded, but they are exposed in PSPS in the fields
     532\code{Detection.infoFlag2}, \code{StackObjectThin.XinfoFlag2} (where
     533\code{X} is one of {$grizy$}), and
     534\code{ForcedWarpMeasurement.FinfoFlag2}.
     535
     536\begin{table*}
     537\begin{center}
     538\footnotesize
     539\caption{\label{tab:det_flag_values} \nocode{psphot} Detection Flag Values \#1} % \vspace{-0.5cm}
     540\begin{tabular}{lrl}
     541\hline
     542\hline
     543{\bf Flag Name} & {\bf Flag Value} & {\bf Description} \\
     544\hline
     545    PM\_SOURCE\_MODE\_PSFMODEL            & 0x00000001 & Source fitted with a psf model (linear or non-linear) \\
     546    PM\_SOURCE\_MODE\_EXTMODEL            & 0x00000002 & Source fitted with an extended-source model \\
     547    PM\_SOURCE\_MODE\_FITTED              & 0x00000004 & Source fitted with non-linear model (PSF or EXT; good or bad) \\
     548    PM\_SOURCE\_MODE\_FAIL                & 0x00000008 & Fit (non-linear) failed (non-converge, off-edge, run to zero) \\
     549    PM\_SOURCE\_MODE\_POOR                & 0x00000010 & Fit succeeds, but low-SN, high-Chisq, or large (for PSF -- drop?) \\
     550    PM\_SOURCE\_MODE\_PAIR                & 0x00000020 & Source fitted with a double psf \\
     551    PM\_SOURCE\_MODE\_PSFSTAR             & 0x00000040 & Source used to define PSF model \\
     552    PM\_SOURCE\_MODE\_SATSTAR             & 0x00000080 & Source model peak is above saturation \\
     553    PM\_SOURCE\_MODE\_BLEND               & 0x00000100 & Source is a blend with other sources \\
     554    PM\_SOURCE\_MODE\_EXTERNAL            & 0x00000200 & Source based on supplied input position \\
     555    PM\_SOURCE\_MODE\_BADPSF              & 0x00000400 & Failed to get good estimate of object's PSF \\
     556    PM\_SOURCE\_MODE\_DEFECT              & 0x00000800 & Source is thought to be a defect \\
     557    PM\_SOURCE\_MODE\_SATURATED           & 0x00001000 & Source is thought to be saturated pixels (bleed trail) \\
     558    PM\_SOURCE\_MODE\_CR\_LIMIT           & 0x00002000 & Source has crNsigma above limit \\
     559    PM\_SOURCE\_MODE\_EXT\_LIMIT          & 0x00004000 & Source has extNsigma above limit \\
     560    PM\_SOURCE\_MODE\_MOMENTS\_FAILURE    & 0x00008000 & could not measure the moments \\
     561    PM\_SOURCE\_MODE\_SKY\_FAILURE        & 0x00010000 & could not measure the local sky \\
     562    PM\_SOURCE\_MODE\_SKYVAR\_FAILURE     & 0x00020000 & could not measure the local sky variance \\
     563    PM\_SOURCE\_MODE\_BELOW\_MOMENTS\_SN  & 0x00040000 & moments not measured due to low S/N \\
     564    PM\_SOURCE\_MODE\_BIG\_RADIUS         & 0x00100000 & poor moments for small radius, try large radius \\
     565    PM\_SOURCE\_MODE\_AP\_MAGS            & 0x00200000 & source has an aperture magnitude \\
     566    PM\_SOURCE\_MODE\_BLEND\_FIT          & 0x00400000 & source was fitted as a blend \\
     567    PM\_SOURCE\_MODE\_EXTENDED\_FIT       & 0x00800000 & full extended fit was used \\
     568    PM\_SOURCE\_MODE\_EXTENDED\_STATS     & 0x01000000 & extended aperture stats calculated \\
     569    PM\_SOURCE\_MODE\_LINEAR\_FIT         & 0x02000000 & source fitted with the linear fit \\
     570    PM\_SOURCE\_MODE\_NONLINEAR\_FIT      & 0x04000000 & source fitted with the non-linear fit \\
     571    PM\_SOURCE\_MODE\_RADIAL\_FLUX        & 0x08000000 & radial flux measurements calculated \\
     572    PM\_SOURCE\_MODE\_SIZE\_SKIPPED       & 0x10000000 & size could not be determined \\
     573    PM\_SOURCE\_MODE\_ON\_SPIKE           & 0x20000000 & peak lands on diffraction spike \\
     574    PM\_SOURCE\_MODE\_ON\_GHOST           & 0x40000000 & peak lands on ghost or glint \\
     575    PM\_SOURCE\_MODE\_OFF\_CHIP           & 0x80000000 & peak lands off edge of chip \\
     576\hline
     577\end{tabular}
     578\end{center}
     579\end{table*}
     580
     581\begin{table*}
     582\begin{center}
     583\footnotesize
     584\caption{\label{tab:det_flag2_values} \nocode{psphot} Detection Flag Values \#2} % \vspace{-0.5cm}
     585\begin{tabular}{lrl}
     586\hline
     587\hline
     588{\bf Flag Name} & {\bf Flag Value} & {\bf Description} \\
     589\hline
     590PM\_SOURCE\_MODE2\_DIFF\_WITH\_SINGLE      & 0x00000001 & diff source matched to a single positive detection \\
     591PM\_SOURCE\_MODE2\_DIFF\_WITH\_DOUBLE      & 0x00000002 & diff source matched to positive detections in both images \\
     592PM\_SOURCE\_MODE2\_MATCHED                 & 0x00000004 & source generated based on another image \\
     593PM\_SOURCE\_MODE2\_ON\_SPIKE               & 0x00000008 & $> 25\%$ of (PSF-weighted) pixels land on diffraction spike \\
     594PM\_SOURCE\_MODE2\_ON\_STARCORE            & 0x00000010 & $> 25\%$ of (PSF-weighted) pixels land on starcore \\
     595PM\_SOURCE\_MODE2\_ON\_BURNTOOL            & 0x00000020 & $> 25\%$ of (PSF-weighted) pixels land on burntool \\
     596PM\_SOURCE\_MODE2\_ON\_CONVPOOR            & 0x00000040 & $> 25\%$ of (PSF-weighted) pixels land on convpoor \\
     597PM\_SOURCE\_MODE2\_PASS1\_SRC              & 0x00000080 & source detected in first pass analysis \\
     598PM\_SOURCE\_MODE2\_HAS\_BRIGHTER\_NEIGHBOR & 0x00000100 & peak is not the brightest in its footprint \\
     599PM\_SOURCE\_MODE2\_BRIGHT\_NEIGHBOR\_1     & 0x00000200 & $flux_{\rm n} / (r^2 flux_{\rm p}) > 1$ \\
     600PM\_SOURCE\_MODE2\_BRIGHT\_NEIGHBOR\_10    & 0x00000400 & $flux_{\rm n} / (r^2 flux_{\rm p}) > 10$ \\
     601PM\_SOURCE\_MODE2\_DIFF\_SELF\_MATCH       & 0x00000800 & positive detection match is probably this source \\
     602PM\_SOURCE\_MODE2\_SATSTAR\_PROFILE        & 0x00001000 & saturated source is modeled with a radial profile \\
     603PM\_SOURCE\_MODE2\_ECONTOUR\_FEW\_PTS      & 0x00002000 & too few points to measure the elliptical contour \\
     604PM\_SOURCE\_MODE2\_RADBIN\_NAN\_CENTER     & 0x00004000 & radial bins failed with too many NaN center bin \\
     605PM\_SOURCE\_MODE2\_PETRO\_NAN\_CENTER      & 0x00008000 & petrosian radial bins failed with too many NaN center bin \\
     606PM\_SOURCE\_MODE2\_PETRO\_NO\_PROFILE      & 0x00010000 & petrosian not build because radial bins missing \\
     607PM\_SOURCE\_MODE2\_PETRO\_INSIG\_RATIO     & 0x00020000 & insignificant measurement of petrosian ratio \\
     608PM\_SOURCE\_MODE2\_PETRO\_RATIO\_ZEROBIN   & 0x00040000 & petrosian ratio in the 0th bin (likely bad) \\
     609PM\_SOURCE\_MODE2\_EXT\_FITS\_RUN          & 0x00080000 & we attempted to run extended fits on this source \\
     610PM\_SOURCE\_MODE2\_EXT\_FITS\_FAIL         & 0x00100000 & at least one of the model fits failed \\
     611PM\_SOURCE\_MODE2\_EXT\_FITS\_RETRY        & 0x00200000 & one of the model fits was re-tried with new window \\
     612PM\_SOURCE\_MODE2\_EXT\_FITS\_NONE         & 0x00400000 & ALL of the model fits failed \\
     613\hline
     614\end{tabular}
     615\end{center}
     616\end{table*}
    508617
    509618\subsection{Image Preparation}
     
    12961405radial bin, we determine the median of the log-flux.  This median
    12971406profile is then interpolated to generate the full radial flux
    1298 distribution.
     1407distribution.  Note that in the case of very saturated stars, pixels
     1408in the central regions are largely masked, because they are
     1409saturated.  Thus in these cases, the psf-weighted masked fraction (see
     1410Section~\ref{XX}) is generally quite low or 0.0.
    12991411
    13001412% logRdel = 0.1
     
    25722684% ppImage
    25732685% ppSub
     2686
     2687
     2688kukui: foreach f (`grep PM_SOURCE ~/src/kukui/panstarrs/ipp-trunk/psModules/src/objects/pmSourceMasks.h | grep -v "^#" | prcol 1`)
     2689foreach? echo --- $f ---
     2690foreach? grep $f */*.tex
     2691foreach? end
     2692--- PM_SOURCE_MODE_DEFAULT ---
     2693--- PM_SOURCE_MODE_PSFMODEL ---
     2694--- PM_SOURCE_MODE_EXTMODEL ---
     2695--- PM_SOURCE_MODE_FITTED ---
     2696--- PM_SOURCE_MODE_FAIL ---
     2697ps1.analysis/analysis.tex:flags the object with the bad bit \code{PM_SOURCE_MODE_FAIL}.  It is
     2698ps1.analysis/analysis.tex:non-linear PSF fit (\code{PM_SOURCE_MODE_FAIL}).
     2699--- PM_SOURCE_MODE_POOR ---
     2700ps1.analysis/analysis.tex:the flag bit (\code{PM_SOURCE_MODE_POOR}).
     2701--- PM_SOURCE_MODE_PAIR ---
     2702--- PM_SOURCE_MODE_PSFSTAR ---
     2703--- PM_SOURCE_MODE_SATSTAR ---
     2704ps1.analysis/analysis.tex:non-linear PSF model fit (\code{PM_SOURCE_MODE_SATSTAR}).  Among these
     2705ps1.analysis/analysis.tex:saturated stars (\code{PM_SOURCE_MODE_SATSTAR}).  These model fits
     2706--- PM_SOURCE_MODE_BLEND ---
     2707--- PM_SOURCE_MODE_EXTERNAL ---
     2708--- PM_SOURCE_MODE_BADPSF ---
     2709--- PM_SOURCE_MODE_DEFECT ---
     2710--- PM_SOURCE_MODE_SATURATED ---
     2711--- PM_SOURCE_MODE_CR_LIMIT ---
     2712--- PM_SOURCE_MODE_EXT_LIMIT ---
     2713--- PM_SOURCE_MODE_MOMENTS_FAILURE ---
     2714--- PM_SOURCE_MODE_SKY_FAILURE ---
     2715--- PM_SOURCE_MODE_SKYVAR_FAILURE ---
     2716--- PM_SOURCE_MODE_BELOW_MOMENTS_SN ---
     2717--- PM_SOURCE_MODE_BIG_RADIUS ---
     2718--- PM_SOURCE_MODE_AP_MAGS ---
     2719--- PM_SOURCE_MODE_BLEND_FIT ---
     2720--- PM_SOURCE_MODE_EXTENDED_FIT ---
     2721--- PM_SOURCE_MODE_EXTENDED_STATS ---
     2722--- PM_SOURCE_MODE_LINEAR_FIT ---
     2723--- PM_SOURCE_MODE_NONLINEAR_FIT ---
     2724--- PM_SOURCE_MODE_RADIAL_FLUX ---
     2725--- PM_SOURCE_MODE_SIZE_SKIPPED ---
     2726--- PM_SOURCE_MODE_ON_SPIKE ---
     2727--- PM_SOURCE_MODE_ON_GHOST ---
     2728--- PM_SOURCE_MODE_OFF_CHIP ---
     2729--- PM_SOURCE_MODE2_DEFAULT ---
     2730--- PM_SOURCE_MODE2_DIFF_WITH_SINGLE ---
     2731ps1.analysis/analysis.tex:\code{PM_SOURCE_MODE2_DIFF_WITH_SINGLE = 0x00000001} is raised, while
     2732--- PM_SOURCE_MODE2_DIFF_WITH_DOUBLE ---
     2733ps1.analysis/analysis.tex:\code{PM_SOURCE_MODE2_DIFF_WITH_DOUBLE = 0x00000002} raised.
     2734--- PM_SOURCE_MODE2_MATCHED ---
     2735--- PM_SOURCE_MODE2_ON_SPIKE ---
     2736--- PM_SOURCE_MODE2_ON_STARCORE ---
     2737--- PM_SOURCE_MODE2_ON_BURNTOOL ---
     2738--- PM_SOURCE_MODE2_ON_CONVPOOR ---
     2739--- PM_SOURCE_MODE2_PASS1_SRC ---
     2740--- PM_SOURCE_MODE2_HAS_BRIGHTER_NEIGHBOR ---
     2741--- PM_SOURCE_MODE2_BRIGHT_NEIGHBOR_1 ---
     2742--- PM_SOURCE_MODE2_BRIGHT_NEIGHBOR_10 ---
     2743--- PM_SOURCE_MODE2_DIFF_SELF_MATCH ---
     2744ps1.analysis/analysis.tex:$\sigma$, then the bit \code{PM_SOURCE_MODE2_DIFF_SELF_MATCH =
     2745--- PM_SOURCE_MODE2_SATSTAR_PROFILE ---
     2746--- PM_SOURCE_MODE2_ECONTOUR_FEW_PTS ---
     2747--- PM_SOURCE_MODE2_RADBIN_NAN_CENTER ---
     2748--- PM_SOURCE_MODE2_PETRO_NAN_CENTER ---
     2749--- PM_SOURCE_MODE2_PETRO_NO_PROFILE ---
     2750--- PM_SOURCE_MODE2_PETRO_INSIG_RATIO ---
     2751--- PM_SOURCE_MODE2_PETRO_RATIO_ZEROBIN ---
     2752--- PM_SOURCE_MODE2_EXT_FITS_RUN ---
     2753--- PM_SOURCE_MODE2_EXT_FITS_FAIL ---
     2754--- PM_SOURCE_MODE2_EXT_FITS_RETRY ---
     2755--- PM_SOURCE_MODE2_EXT_FITS_NONE ---
  • trunk/doc/release.2015/ps1.calibration/calibration.tex

    r40597 r40602  
    116116\section{Introduction}\label{sec:intro}
    117117
     118\note{list all ID\_IMAgE, ID\_MEAS, ID\_OBJ, ID\_SECF flags from libdvo/include/dvo.h and identify how they are set; make tables}
     119
     120
    118121From May 2010 through March 2014, the Pan-STARRS Science Consortium
    119122used the 1.8m \PSONE\ telescope to perform a set of wide-field science
     
    663666that into the master PV3 $3\pi$ DVO database.
    664667
     668The master DVO database is used to perform the full photometric and
     669astrometric calibration of the data.  During these analysis steps, a
     670wide variety of conditions are noted for individual measurements, for
     671the objects (either as a whole or for specific filters) and for the
     672images.  A set of bit-valued flags are used in the database to record
     673these conditions.
     674%
     675Table~\ref{tab:measure_mask_values} lists the flags specific to
     676individual measurements.  These values are stored in the DVO database in the
     677field \code{Measure.dbFlags} and exposed in the public database \citep[PSPS][]{flewelling2017}
     678in the fields \code{Detection.infoFlag3},
     679\code{StackObjectThin.XinfoFlag3} (where \code{X} is one of
     680     {$grizy$}), and \code{ForcedWarpMeasurement.FinfoFlag3}.
     681%
     682Table~\ref{tab:secf_mask_values} lists the flags which are set for
     683each filter for individual objects in the database.  These values are
     684recorded in the DVO database field \code{SecFilt.flags} and are
     685exposed in PSPS in the fields
     686\code{MeanObject.XFlags} and \code{StackObjectThin.XinfoFlag4}, where
     687\code{X} in both cases is one of {$grizy$}.
     688%
     689Table~\ref{tab:tab:object_mask_values} lists the flags specific to an
     690object as a whole.  These values are stored in the DVO database field
     691\code{Average.flags} and are exposed in PSPS in
     692the field \code{MeanObject.objInfoFlag}.
     693%
     694Table~\ref{tab:image_mask_values} lists the flags raised for images.
     695These flags are stored in the DVO database field \code{Image.flags}
     696and are exposed in PSPS in the field \code{ImageMeta.qaFlags}.
     697%
     698The type of conditions which are recorded by these bits range from
     699information about the presence of external measurements (e.g., 2MASS
     700or WISE) to determinations of good or bad quality measurements for
     701astrometry or photometry.  In the sections below, these flag values in
     702these tables are described where appropriate.  Note that some of the
     703listed bits are either ephemeral (used internal to specific programs)
     704or are not relevant to the current DR2 analysis and reserved for
     705future use.
     706
     707\begin{table*}
     708\begin{center}
     709\footnotesize
     710\caption{\label{tab:measure_mask_values} Per-Measurement Flag Bit Values} % \vspace{-0.5cm}
     711\begin{tabular}{lcl}
     712\hline
     713\hline
     714{\bf Bit Name} & {\bf Bit Value} & {\bf Description} \\
     715\hline
     716ID\_MEAS\_NOCAL              & 0x00000001 & detection ignored for this analysis (photcode, time range) -- internal only \\
     717ID\_MEAS\_POOR\_PHOTOM       & 0x00000002 & detection is photometry outlier (not used PV3) \\
     718ID\_MEAS\_SKIP\_PHOTOM       & 0x00000004 & detection was ignored for photometry measurement (not used PV3) \\
     719ID\_MEAS\_AREA               & 0x00000008 & detection near image edge (not used PV3) \\
     720ID\_MEAS\_POOR\_ASTROM       & 0x00000010 & detection is astrometry outlier \\
     721ID\_MEAS\_SKIP\_ASTROM       & 0x00000020 & detection was ignored for astrometry measurement \\
     722ID\_MEAS\_USED\_OBJ          & 0x00000040 & detection was used during update objects \\
     723ID\_MEAS\_USED\_CHIP         & 0x00000080 & detection was used during update chips (not saved PV3) \\
     724ID\_MEAS\_BLEND\_MEAS        & 0x00000100 & detection is within radius of multiple objects \\
     725ID\_MEAS\_BLEND\_OBJ         & 0x00000200 & multiple detections within radius of object \\
     726ID\_MEAS\_WARP\_USED         & 0x00000400 & measurement used to find mean warp photometry \\
     727ID\_MEAS\_UNMASKED\_ASTRO    & 0x00000800 & measurement was not masked in final astrometry fit \\
     728ID\_MEAS\_BLEND\_MEAS\_X     & 0x00001000 & detection is within radius of multiple objects across catalogs \\
     729ID\_MEAS\_ARTIFACT           & 0x00002000 & detection is thought to be non-astronomical \\
     730ID\_MEAS\_SYNTH\_MAG         & 0x00004000 & magnitude is synthetic \\
     731ID\_MEAS\_PHOTOM\_UBERCAL    & 0x00008000 & externally-supplied zero point from ubercal analysis \\
     732ID\_MEAS\_STACK\_PRIMARY     & 0x00010000 & this stack measurement is in the primary skycell \\
     733ID\_MEAS\_STACK\_PHOT\_SRC   & 0x00020000 & this measurement supplied the stack photometry \\
     734ID\_MEAS\_ICRF\_QSO          & 0x00040000 & this measurement is an ICRF reference position \\
     735ID\_MEAS\_IMAGE\_EPOCH       & 0x00080000 & this measurement is registered to the image epoch (not tied to ref catalog epoch) \\
     736ID\_MEAS\_PHOTOM\_PSF        & 0x00100000 & this measurement is used for the mean psf mag \\
     737ID\_MEAS\_PHOTOM\_APER       & 0x00200000 & this measurement is used for the mean ap mag \\
     738ID\_MEAS\_PHOTOM\_KRON       & 0x00400000 & this measurement is used for the mean kron mag \\
     739ID\_MEAS\_MASKED\_PSF        & 0x01000000 & this measurement is masked based on IRLS weights for mean psf mag \\
     740ID\_MEAS\_MASKED\_APER       & 0x02000000 & this measurement is masked based on IRLS weights for mean ap mag \\
     741ID\_MEAS\_MASKED\_KRON       & 0x04000000 & this measurement is masked based on IRLS weights for mean kron mag \\
     742ID\_MEAS\_OBJECT\_HAS\_2MASS & 0x10000000 & measurement comes from an object with 2mass data \\
     743ID\_MEAS\_OBJECT\_HAS\_GAIA  & 0x20000000 & measurement comes from an object with gaia data \\
     744ID\_MEAS\_OBJECT\_HAS\_TYCHO & 0x40000000 & measurement comes from an object with tycho data \\
     745\hline
     746\end{tabular}
     747\end{center}
     748\end{table*}
     749
     750\begin{table*}
     751\begin{center}
     752\footnotesize
     753\caption{\label{tab:secf_mask_values} Relphot Per-Filter Info Flag Bit Values} % \vspace{-0.5cm}
     754\begin{tabular}{lcl}
     755\hline
     756\hline
     757{\bf Bit Name} & {\bf Bit Value} & {\bf Description} \\
     758\hline
     759ID\_SECF\_STAR\_FEW                & 0x00000001 & Used within relphot: skip star \\
     760ID\_SECF\_STAR\_POOR               & 0x00000002 & Used within relphot: skip star \\
     761ID\_SECF\_USE\_SYNTH               & 0x00000004 & Synthetic photometry used in average measurement \\
     762ID\_SECF\_USE\_UBERCAL             & 0x00000008 & Ubercal photometry used in average measurement \\
     763ID\_SECF\_HAS\_PS1                 & 0x00000010 & PS1 photometry used in average measurement \\
     764ID\_SECF\_HAS\_PS1\_STACK          & 0x00000020 & PS1 stack photometry exists \\
     765ID\_SECF\_HAS\_TYCHO               & 0x00000040 & Tycho photometry used for synth mags \\
     766ID\_SECF\_FIX\_SYNTH               & 0x00000080 & Synth mags repaired with zpt map \\
     767ID\_SECF\_RANK\_0                  & 0x00000100 & Average magnitude uses rank 0 values \\
     768ID\_SECF\_RANK\_1                  & 0x00000200 & Average magnitude uses rank 1 values \\
     769ID\_SECF\_RANK\_2                  & 0x00000400 & Average magnitude uses rank 2 values \\
     770ID\_SECF\_RANK\_3                  & 0x00000800 & Average magnitude uses rank 3 values \\
     771ID\_SECF\_RANK\_4                  & 0x00001000 & Average magnitude uses rank 4 values \\
     772ID\_SECF\_OBJ\_EXT\_PSPS           & 0x00002000 & In PSPS ID\_SECF\_OBJ\_EXT is saved here so it fits within 16 bits  \\
     773ID\_SECF\_STACK\_PRIMARY           & 0x00004000 & PS1 stack photometry includes a primary skycell \\
     774ID\_SECF\_STACK\_BESTDET           & 0x00008000 & PS1 stack best measurement is a detection (not forced) \\
     775ID\_SECF\_STACK\_PRIMDET           & 0x00010000 & PS1 stack primary measurement is a detection (not forced) \\
     776ID\_SECF\_STACK\_PRIMARY\_MULTIPLE & 0x00020000 & PS1 stack object has multiple primary measurements \\
     777ID\_SECF\_HAS\_SDSS                & 0x00100000 & This photcode has SDSS photometry \\
     778ID\_SECF\_HAS\_HSC                 & 0x00200000 & This photcode has HSC  photometry \\
     779ID\_SECF\_HAS\_CFH                 & 0x00400000 & This photcode has CFH  photometry (mostly Megacam) \\
     780ID\_SECF\_HAS\_DES                 & 0x00800000 & This photcode has DES  photometry \\
     781ID\_SECF\_OBJ\_EXT                 & 0x01000000 & Extended in this band \\
     782\hline
     783\end{tabular}
     784\end{center}
     785\end{table*}
     786
     787\begin{table*}
     788\begin{center}
     789\footnotesize
     790\caption{\label{tab:object_mask_values} Per-Object Flag Bit Values} % \vspace{-0.5cm}
     791\begin{tabular}{lcl}
     792\hline
     793\hline
     794{\bf Bit Name} & {\bf Bit Value} & {\bf Description} \\
     795\hline
     796ID\_OBJ\_FEW               & 0x00000001 & used within relphot: skip star \\
     797ID\_OBJ\_POOR              & 0x00000002 & used within relphot: skip star \\
     798ID\_OBJ\_ICRF\_QSO         & 0x00000004 & object IDed with known ICRF quasar (may have ICRF position measurement) \\
     799ID\_OBJ\_HERN\_QSO\_P60    & 0x00000008 & identified as likely QSO \citep{2016ApJ...817...73H}, $P_{\rm QSO} \geq 0.60$ \\
     800ID\_OBJ\_HERN\_QSO\_P05    & 0x00000010 & identified as possible QSO \citep{2016ApJ...817...73H}, $P_{\rm QSO} \geq 0.05$ \\
     801ID\_OBJ\_HERN\_RRL\_P60    & 0x00000020 & identified as likely  RR Lyra \citep{2016ApJ...817...73H}, $P_{\rm RRLyra} \geq 0.60$ \\
     802ID\_OBJ\_HERN\_RRL\_P05    & 0x00000040 & identified as possible RR Lyra \citep{2016ApJ...817...73H}, $P_{\rm RRLyra} \geq 0.05$ \\
     803ID\_OBJ\_HERN\_VARIABLE    & 0x00000080 & identified as a variable by \cite{2016ApJ...817...73H} \\
     804ID\_OBJ\_TRANSIENT         & 0x00000100 & identified as a non-periodic (stationary) transient \\
     805ID\_OBJ\_HAS\_SOLSYS\_DET  & 0x00000200 & identified with a known solar-system object (asteroid or other) \\
     806ID\_OBJ\_MOST\_SOLSYS\_DET & 0x00000400 & most detections from a known solar-system object \\
     807ID\_OBJ\_LARGE\_PM         & 0x00000800 & star with large proper motion \\
     808ID\_OBJ\_RAW\_AVE          & 0x00001000 & simple weighted average position was used (no IRLS fitting) \\
     809ID\_OBJ\_FIT\_AVE          & 0x00002000 & average position was fitted \\
     810ID\_OBJ\_FIT\_PM           & 0x00004000 & proper-motion model was fitted \\
     811ID\_OBJ\_FIT\_PAR          & 0x00008000 & full parallax and proper-motion model was fitted \\
     812ID\_OBJ\_USE\_AVE          & 0x00010000 & average position used (no proper-motion or parallax) \\
     813ID\_OBJ\_USE\_PM           & 0x00020000 & proper motion fit used (no parallax) \\
     814ID\_OBJ\_USE\_PAR          & 0x00040000 & full fit with proper motion and parallax \\
     815ID\_OBJ\_NO\_MEAN\_ASTROM  & 0x00080000 & mean astrometry could not be measured \\
     816ID\_OBJ\_STACK\_FOR\_MEAN  & 0x00100000 & stack position used for mean astrometry \\
     817ID\_OBJ\_MEAN\_FOR\_STACK  & 0x00200000 & mean astrometry could not be measured \\
     818ID\_OBJ\_BAD\_PM           & 0x00400000 & failure to measure proper-motion model \\
     819ID\_OBJ\_EXT               & 0x00800000 & extended in Pan-STARRS data \\
     820ID\_OBJ\_EXT\_ALT          & 0x01000000 & extended in external data (2MASS) \\
     821ID\_OBJ\_GOOD              & 0x02000000 & good-quality measurement in Pan-STARRS data \\
     822ID\_OBJ\_GOOD\_ALT         & 0x04000000 & good-quality measurement in  external data (2MASS) \\
     823ID\_OBJ\_GOOD\_STACK       & 0x08000000 & good-quality object in the stack ($> 1$ good stack) \\
     824ID\_OBJ\_BEST\_STACK       & 0x10000000 & the primary stack measurements are the ``best'' measurements \\
     825ID\_OBJ\_SUSPECT\_STACK    & 0x20000000 & suspect object in the stack ($> 1$ good or suspect stack, $< 2$ good) \\
     826ID\_OBJ\_BAD\_STACK        & 0x40000000 & poor-quality object in the stack ($< 1$ good stack) \\
     827\hline
     828\end{tabular}
     829\end{center}
     830\end{table*}
     831
     832%% Image.flags => ImageMeta.qaFlags
     833
     834\begin{table*}
     835\begin{center}
     836\footnotesize
     837\caption{\label{tab:image_mask_values} Per-Image Flag Bit Values} % \vspace{-0.5cm}
     838\begin{tabular}{lcl}
     839\hline
     840\hline
     841{\bf Bit Name} & {\bf Bit Value} & {\bf Description} \\
     842\hline
     843ID\_IMAGE\_NEW             & 0x00000000 & no calibrations yet attempted \\
     844ID\_IMAGE\_PHOTOM\_NOCAL   & 0x00000001 & user-set value used within relphot: ignore \\
     845ID\_IMAGE\_PHOTOM\_POOR    & 0x00000002 & relphot says image is bad (dMcal > limit) \\
     846ID\_IMAGE\_PHOTOM\_SKIP    & 0x00000004 & user-set value: assert that this image has bad photometry \\
     847ID\_IMAGE\_PHOTOM\_FEW     & 0x00000008 & currently too few measurements for photometry \\
     848ID\_IMAGE\_ASTROM\_NOCAL   & 0x00000010 & user-set value used within relastro: ignore \\
     849ID\_IMAGE\_ASTROM\_POOR    & 0x00000020 & relastro says image is bad (dR,dD > limit) \\
     850ID\_IMAGE\_ASTROM\_FAIL    & 0x00000040 & relastro fit diverged, fit not applied \\
     851ID\_IMAGE\_ASTROM\_SKIP    & 0x00000080 & user-set value: assert that this image has bad astrometry \\
     852ID\_IMAGE\_ASTROM\_FEW     & 0x00000100 & currently too few measurements for astrometry \\
     853ID\_IMAGE\_PHOTOM\_UBERCAL & 0x00000200 & externally-supplied photometry zero point from ubercal analysis \\
     854ID\_IMAGE\_ASTROM\_GMM     & 0x00000400 & image was fitted to positions corrected by the galaxy motion model \\
     855\hline
     856\end{tabular}
     857\end{center}
     858\end{table*}
     859
    665860%% \note{need to describe the assignment of flags, etc, for the external data sources}.
    666861
     
    775970camera position.  Each image which is part of the ubercal subset is
    776971marked with a bit in the field \code{Image.flags}:
    777 \code{ID_IMAGE_PHOTOM_UBERCAL = 0x00000200}
     972\code{ID_IMAGE_PHOTOM_UBERCAL = 0x00000200}
    778973
    779974\begin{table}[hb]
     
    12841479Table~\ref{tab:secf_mask_values}). 
    12851480
    1286 \begin{table*}
    1287 \begin{center}
    1288 \footnotesize
    1289 \caption{\label{tab:secf_mask_values} Relphot Per-Filter Info Flag Bit Values} % \vspace{-0.5cm}
    1290 \begin{tabular}{lcl}
    1291 \hline
    1292 \hline
    1293 {\bf Bit Name} & {\bf Bit Value} & {\bf Description} \\
    1294 \hline
    1295 ID\_SECF\_STAR\_FEW                & 0x00000001 & Used within relphot: skip star \\
    1296 ID\_SECF\_STAR\_POOR               & 0x00000002 & Used within relphot: skip star \\
    1297 ID\_SECF\_USE\_SYNTH               & 0x00000004 & Synthetic photometry used in average measurement \\
    1298 ID\_SECF\_USE\_UBERCAL             & 0x00000008 & Ubercal photometry used in average measurement \\
    1299 ID\_SECF\_HAS\_PS1                 & 0x00000010 & PS1 photometry used in average measurement \\
    1300 ID\_SECF\_HAS\_PS1\_STACK          & 0x00000020 & PS1 stack photometry exists \\
    1301 ID\_SECF\_HAS\_TYCHO               & 0x00000040 & Tycho photometry used for synth mags \\
    1302 ID\_SECF\_FIX\_SYNTH               & 0x00000080 & Synth mags repaired with zpt map \\
    1303 ID\_SECF\_RANK\_0                  & 0x00000100 & Average magnitude uses rank 0 values \\
    1304 ID\_SECF\_RANK\_1                  & 0x00000200 & Average magnitude uses rank 1 values \\
    1305 ID\_SECF\_RANK\_2                  & 0x00000400 & Average magnitude uses rank 2 values \\
    1306 ID\_SECF\_RANK\_3                  & 0x00000800 & Average magnitude uses rank 3 values \\
    1307 ID\_SECF\_RANK\_4                  & 0x00001000 & Average magnitude uses rank 4 values \\
    1308 ID\_SECF\_OBJ\_EXT\_PSPS           & 0x00002000 & In PSPS ID\_SECF\_OBJ\_EXT is saved here so it fits within 16 bits  \\
    1309 ID\_SECF\_STACK\_PRIMARY           & 0x00004000 & PS1 stack photometry includes a primary skycell \\
    1310 ID\_SECF\_STACK\_BESTDET           & 0x00008000 & PS1 stack best measurement is a detection (not forced) \\
    1311 ID\_SECF\_STACK\_PRIMDET           & 0x00010000 & PS1 stack primary measurement is a detection (not forced) \\
    1312 ID\_SECF\_STACK\_PRIMARY\_MULTIPLE & 0x00020000 & PS1 stack object has multiple primary measurements \\
    1313 ID\_SECF\_HAS\_SDSS                & 0x00100000 & This photcode has SDSS photometry \\
    1314 ID\_SECF\_HAS\_HSC                 & 0x00200000 & This photcode has HSC  photometry \\
    1315 ID\_SECF\_HAS\_CFH                 & 0x00400000 & This photcode has CFH  photometry (mostly Megacam) \\
    1316 ID\_SECF\_HAS\_DES                 & 0x00800000 & This photcode has DES  photometry \\
    1317 ID\_SECF\_OBJ\_EXT                 & 0x01000000 & Extended in this band \\
    1318 \hline
    1319 \end{tabular}
    1320 \end{center}
    1321 \end{table*}
     1481%% where do these go? analyis?
     1482%%  ID_GALPHOT_FAIL_FIT       = 0x00000001, // fit failed to converge or was degenerate
     1483%%  ID_GALPHOT_TOO_FEW        = 0x00000002, // not enough points to fit the model
     1484%%  ID_GALPHOT_OUT_OF_RANGE   = 0x00000004, // fit minimum too far outside data range
     1485%%  ID_GALPHOT_BAD_ERROR      = 0x00000008, // invalid error (nan or inf)
    13221486
    13231487\subsubsection{Iteratively Reweighted Least Squares Fitting}
     
    14331597
    14341598In addition to the these relatively rare failure cases, the objects
    1435 detected in the stacks are more likely to have multiple measurements
     1599detected in the stacks may also have multiple measurements
    14361600due to the overlap between neighboring stack images.  The skycells
    14371601(within which the stacks are generated) for a given projection cell
    1438 are defined to have significant overlap between neighbors to ensure a
     1602are defined to have significant overlap between neighbors to ensure that a
    14391603modestly-extended object can be measured completely on the pixels in a
    14401604single skycell image.  For the \ippmisc{RINGS.V3} skycell tessellation
     
    14801644the skycell ``primary'' boundary.  Thus, for a given object in the
    14811645database, we expect all 5 filters to provide a ``primary'' measurement
    1482 from the same skycell for each object.
     1646from the same skycell for each object.  Also note that a faint object,
     1647near the detection limit of the stack, may be detected on a
     1648secondary skycell but not (due to statistical flucuations) be detected
     1649on the corresponding primary skycell.  Thus it is expected that some
     1650objects may be lacking any primary detections.
    14831651
    14841652Since the ``primary'' identification is purely based on the skycell
     
    15871755First, the astrometric calibration has a larger number of systematic
    15881756effects which must be performed.  These consist of: 1) the
    1589 Koppenh\"offer Effect, 2) Differential Chromatic Refraction, 3) Static
     1757Koppenh\"ofer Effect, 2) Differential Chromatic Refraction, 3) Static
    15901758deviations in the camera.  We discuss each of these in turn below.
    15911759
    1592 \subsubsection{Koppenh\"offer Effect}
    1593 
    1594 The Koppenh\"offer Effect was first identified in February 2011 by
    1595 Johannes Koppenh\"offer (MPE) as part of the effort to search for
     1760\subsubsection{Koppenh\"ofer Effect}
     1761
     1762The Koppenh\"ofer Effect was first identified in February 2011 by
     1763Johannes Koppenh\"ofer (MPE) as part of the effort to search for
    15961764planet transists in the Stellar Transit Survey data.  He noticed that
    15971765the astromety of bright stars and faint stars disagreed on overlapping
     
    16191787% \note{was there is significant difference using a surface brightness version?} 
    16201788
    1621 We measured the Koppenh\"offer Effect by accumulating the residual
     1789We measured the Koppenh\"ofer Effect by accumulating the residual
    16221790astrometry statistics for stars in the database.  For each chip, we
    16231791measured the mean X and Y displacements of the astrometric residuals
     
    18602028  Measure.XoffDCR,YoffDCR, Measure.XoffCAM,YoffCAM}.  The offsets are
    18612029calculated for each measurement based on the observed instrumental
    1862 chip magnitudes and FWHM for the Koppenhoffer Effect, on the average
     2030chip magnitudes and FWHM for the Koppenh\"ofer Effect, on the average
    18632031chip colors and the altitude \& azimuth of each measurement for the
    18642032DCR correction, and on the chip coordinates for the astrometric
     
    22192387* zero point history, including / excluding ubercal? (from Eddie)
    22202388* applied flat-field images [FITS -> png]
    2221 * Koppenhoffer plots [from presentations]
     2389* Koppenhofer plots [from presentations]
    22222390* DCR plots [exist]
    22232391* astrometric flat fields [FITS -> png]
  • trunk/doc/release.2015/ps1.detrend/detrend.tex

    r40601 r40602  
    790790  \centering
    791791  \includegraphics[width=0.9\hsize,angle=0,clip]{images/gpc1_mask_indexed.png}
    792  
    793792  \caption{Image map of the GPC1 static mask.  The CTE regions are clearly visible as roughly triangular patches covering the corners of some OTAs.  Some entire cells are masked, including an entire column of cells on OTA14.  Calcite cells remove large areas from OTA17 AND OTA76.}
    794793  \label{fig:static mask}
Note: See TracChangeset for help on using the changeset viewer.