IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

add bit-flag tables, descriptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 ---
Note: See TracChangeset for help on using the changeset viewer.