IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6762


Ignore:
Timestamp:
Apr 4, 2006, 8:52:47 AM (20 years ago)
Author:
eugene
Message:

updates to the fringe measurement section, addition of object formats (incomplete)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/modules/ModulesSDRS.tex

    r6757 r6762  
    1 %%% $Id: ModulesSDRS.tex,v 1.76 2006-04-01 03:07:09 price Exp $
     1%%% $Id: ModulesSDRS.tex,v 1.77 2006-04-04 18:52:47 eugene Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    18511851the fringe pattern is used both in the process of constructing the
    18521852master image and in scaling the master image when it is applied to
    1853 science image.  We thus need a method of measuring the fringe
    1854 amplitude which is robust in the presence of stars and which is fast.
    1855 We implement a method used at CFHT in which the fringe pattern is
    1856 mapped by a series of points pairs which correspond to peaks and
    1857 valleys of the fringe pattern.  We define the following function to
    1858 measure the global fringe amplitude of an image given a collection of
    1859 fringe point pairs.
    1860 \begin{prototype}
    1861 stats *pmFringeStats (psArray *fringePoints, psImage *image, psMetadata *config);
    1862 \end{prototype}
    1863 This function measures the robust median at each of the minimum and
    1864 maximum coordinates and determines the difference and mean of the two
    1865 values.  The size of the box used to make the measurement at each
    1866 point is specified by the configuration variable
    1867 \code{FRINGE_SQUARE_RADIUS}.  From the collection of differences, the
    1868 robust median is calculated, and returned as part of the fringe
    1869 statistics.  For each fringe point, the values of \code{delta} and
    1870 \code{midValue} are also assigned and available to the user on return.
    1871  
    1872 The \code{fringePoints} are defined by the following structure:
     1853science image.  This is the method currently in use at CFHT and it
     1854usually performs well.  However, the fringe signal can vary as the
     1855emission lines in the atmosphere change, and the above method breaks
     1856down unless different fringe images corresponding to different
     1857atmospheric conditions are constructed. 
     1858
     1859An alternative technique is to use multiple master fringe images at
     1860the same time, each representing different atmospheric conditions.
     1861The observed fringe frame can be considered as a linear combination of
     1862different fringe patterns, depending on the relative strengths of the
     1863lines active in creating each of the fringe masters.  It is not
     1864critical that the fringe master images represent completely orthogonal
     1865fringe patterns, they need only sample sufficiently different
     1866conditions to provide a handle on the underlying fringe signals. 
     1867
     1868We define a method of measuring the fringe pattern which is robust in
     1869the presence of stars and which is fast.  We implement a varient on
     1870the method used at CFHT in which the fringe pattern is mapped by a
     1871series of points distributed across the image.  At CFHT, manual effort
     1872is used to carefully define point pairs which correspond to peaks and
     1873valleys of the fringe pattern.  We implement a different approach in
     1874which the fringe points are randomly chosen across the image.  At each
     1875point in the image, the median flux is measured in a box of specified
     1876size.  A low-frequency spatial filter is then applied to these
     1877measurements.  The resulting array of points and fluxes then
     1878represents the strength of the fringe pattern on that image.  The
     1879comparison between any two fringe images is then just a linear fit
     1880between these fringe statistics vectors, as follows:
     1881\[
     1882S_i = C_0 + C_1 F_i
     1883\]
     1884where $S_i$ is the fringe statistic on the science image and $F_i$ is
     1885the fringe statistic on the reference fringe image.  Extending this
     1886logic to any number of reference fringe images results in the
     1887following relationship:
     1888\[
     1889S_i = C_0 + \sum_j C_j F_j
     1890\]
     1891
     1892In order to correct a single science image, the collection of fringe
     1893statistics ($S_i$) are used to measure the coefficients $C_0$, $C_j$.
     1894The linear combination of the reference fringe images is then used to
     1895build a master image which is subtracted from the science image.  The
     1896following structures and functions implement the above concepts.
     1897
     1898The \code{pmFringeStats} structure represents the fringe statistics
     1899for a given image. 
    18731900\begin{datatype}
    18741901typedef struct {
    1875     double xMin;
    1876     double yMin;
    1877     double xMax;
    1878     double yMax;
    1879     double delta;
    1880     double midValue;
    1881 } pmFringePoint;
     1902    psU32 nRequested;   // number of fringe points selected
     1903    psU32 nAccepted;    // number of fringe points not masked
     1904    psU32 dX;           // median box half-width
     1905    psU32 dY;           // median box half-height
     1906    psU32 nX;           // large-scale smoothing in x (col)
     1907    psU32 nY;           // large-scale smoothing in y (row)
     1908    psVector x;         // fringe point coordinates (col)
     1909    psVector y;         // fringe point coordinates (row)
     1910    psVector f;         // fringe point median
     1911    psVector df;        // fringe point stdev
     1912    psVector mask;      // fringe point on/off mask
     1913} pmFringeStats;
    18821914\end{datatype}
     1915
     1916The \code{pmFringeStats} structure is allocated with the following
     1917function:
     1918\begin{prototype}
     1919pmFringeStats *pmFringeStatsAlloc (
     1920    int nPts,     // number of points to create
     1921    int dX,     // half-width of fringe boxes
     1922    int dY,     // half-height of fringe boxes
     1923    int nX,     // smoothing scale in x
     1924    int nY    // smoothing scale in y
     1925);
     1926\end{prototype}
     1927
     1928A set of fringe points appropriate to the dimensions of a specific
     1929image are created with the following function:
     1930\begin{prototype}
     1931bool pmFringeStatsCreatePoints (pmFringeStats *fringe, psImage *image);
     1932\end{prototype}
     1933
     1934In general, \code{pmFringeStatsCreatePoints} should only be needed
     1935when a new chip and filter are first use for analysis.  Multiple
     1936fringe images with the same chip and filter need to be examined with
     1937the same fringe points in order for the statistical comparison to be
     1938meaningful.  The constructed fringe points should be saved and loaded
     1939as a FITS table using the following function:
     1940\begin{prototype}
     1941bool pmFringeStatsWriteFits (psFits *fits, pmFringeStats *fringe);
     1942bool pmFringeStatsReadFits (psFits *fits, pmFringeStats *fringe);
     1943\end{prototype}
     1944
     1945In order to measure the fringe statistics for a given image, the
     1946following function is defined:
     1947\begin{prototype}
     1948bool pmFringeStatsMeasure(pmFringeStats *fringe, pmReadout *readout)
     1949\end{prototype}
     1950This function measures the robust median at each of the fringe points
     1951and saves the median values in \code{fringe->f} and the scatter in
     1952\code{fringe->df}.
     1953 
     1954Given the fringe statistics for a science image, and the fringe
     1955statistics for a set of reference fringe images, the following
     1956function can be used to measure the scaling coefficients of the
     1957reference fringe frames which best fit the science image fringe
     1958pattern:
     1959\begin{prototype}
     1960pmFringeScale *pmFringeScaleMeasure (pmFringeStats *science, psArray *fringes)
     1961\end{prototype}
     1962
     1963Given a science image, a set of master fringe images, and a the set of
     1964fringe statistics for the reference fringe images, the following
     1965function can be used to correct the science image for the fringe pattern:
     1966\begin{prototype}
     1967psImage *pmFringeCorrect(psImage *out, psMetadata *info, psImage *science, psArray *fringeImage, psArray *fringeStats);
     1968\end{prototype}
    18831969
    18841970\subsection{Flat-field Re-Normalization}
     
    29453031available approximation to the Sextractor classification scheme.
    29463032\tbd{the correspondence is not yet defined}.
     3033
     3034\subsection{Object List Input/Output}
     3035
     3036We support several object catalog formats.  Some of these mimic the
     3037formats used by the Elixir system to support testing with existing
     3038data and software.  Some of these are for use by the Pan-STARRS
     3039project for testing.
     3040
     3041\subsubsection{OBJ Format}
     3042
     3043This format is produced by versions of DoPhot and is used by the
     3044Elixir system as an intermediate output data product.  The objects are
     3045written to a text file with fixed line-length and with fixed column
     3046positions.  The file has no header associated with it.  This is only
     3047an output format, and should be used just for testing and comparison
     3048with the Elixir tools.
     3049
     3050\subsubsection{SX Format}
     3051
     3052This format is produced by versions of Sextractor and is used by the
     3053Elixir system as an intermediate output data product.  The objects are
     3054written to a text file with fixed line-length and with fixed column
     3055positions.  The file has no header associated with it.  This is only
     3056an output format, and should be used just for testing and comparison
     3057with the Elixir tools.  The SX and OBJ formats are similar, but use a
     3058somewhat different definition of the columns.
     3059
     3060\subsubsection{CMP Format}
     3061
     3062This format is used extensively by the Elixir system, and many data
     3063files are available in this format.  The format is a pseudo-FITS
     3064format, consisting of a FITS header (with NAXIS=2) and a text data
     3065segment with fixed line length.  The CMP files are always in SPLIT
     3066format in the sense that each object table is a single file.
     3067
     3068\subsubsection{CMF Format}
     3069
     3070This format is a true FITS table format.  The object data is stored
     3071for each readout in a separate extension.  In addition, the Cell
     3072headers are stored in their own extensions (with NAXIS=0).  In SPLIT
     3073format, the Cell header is the PHU header.
    29473074
    29483075%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracChangeset for help on using the changeset viewer.