Changeset 6762
- Timestamp:
- Apr 4, 2006, 8:52:47 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/doc/modules/ModulesSDRS.tex (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/modules/ModulesSDRS.tex
r6757 r6762 1 %%% $Id: ModulesSDRS.tex,v 1.7 6 2006-04-01 03:07:09 price Exp $1 %%% $Id: ModulesSDRS.tex,v 1.77 2006-04-04 18:52:47 eugene Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 1851 1851 the fringe pattern is used both in the process of constructing the 1852 1852 master 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: 1853 science image. This is the method currently in use at CFHT and it 1854 usually performs well. However, the fringe signal can vary as the 1855 emission lines in the atmosphere change, and the above method breaks 1856 down unless different fringe images corresponding to different 1857 atmospheric conditions are constructed. 1858 1859 An alternative technique is to use multiple master fringe images at 1860 the same time, each representing different atmospheric conditions. 1861 The observed fringe frame can be considered as a linear combination of 1862 different fringe patterns, depending on the relative strengths of the 1863 lines active in creating each of the fringe masters. It is not 1864 critical that the fringe master images represent completely orthogonal 1865 fringe patterns, they need only sample sufficiently different 1866 conditions to provide a handle on the underlying fringe signals. 1867 1868 We define a method of measuring the fringe pattern which is robust in 1869 the presence of stars and which is fast. We implement a varient on 1870 the method used at CFHT in which the fringe pattern is mapped by a 1871 series of points distributed across the image. At CFHT, manual effort 1872 is used to carefully define point pairs which correspond to peaks and 1873 valleys of the fringe pattern. We implement a different approach in 1874 which the fringe points are randomly chosen across the image. At each 1875 point in the image, the median flux is measured in a box of specified 1876 size. A low-frequency spatial filter is then applied to these 1877 measurements. The resulting array of points and fluxes then 1878 represents the strength of the fringe pattern on that image. The 1879 comparison between any two fringe images is then just a linear fit 1880 between these fringe statistics vectors, as follows: 1881 \[ 1882 S_i = C_0 + C_1 F_i 1883 \] 1884 where $S_i$ is the fringe statistic on the science image and $F_i$ is 1885 the fringe statistic on the reference fringe image. Extending this 1886 logic to any number of reference fringe images results in the 1887 following relationship: 1888 \[ 1889 S_i = C_0 + \sum_j C_j F_j 1890 \] 1891 1892 In order to correct a single science image, the collection of fringe 1893 statistics ($S_i$) are used to measure the coefficients $C_0$, $C_j$. 1894 The linear combination of the reference fringe images is then used to 1895 build a master image which is subtracted from the science image. The 1896 following structures and functions implement the above concepts. 1897 1898 The \code{pmFringeStats} structure represents the fringe statistics 1899 for a given image. 1873 1900 \begin{datatype} 1874 1901 typedef 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; 1882 1914 \end{datatype} 1915 1916 The \code{pmFringeStats} structure is allocated with the following 1917 function: 1918 \begin{prototype} 1919 pmFringeStats *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 1928 A set of fringe points appropriate to the dimensions of a specific 1929 image are created with the following function: 1930 \begin{prototype} 1931 bool pmFringeStatsCreatePoints (pmFringeStats *fringe, psImage *image); 1932 \end{prototype} 1933 1934 In general, \code{pmFringeStatsCreatePoints} should only be needed 1935 when a new chip and filter are first use for analysis. Multiple 1936 fringe images with the same chip and filter need to be examined with 1937 the same fringe points in order for the statistical comparison to be 1938 meaningful. The constructed fringe points should be saved and loaded 1939 as a FITS table using the following function: 1940 \begin{prototype} 1941 bool pmFringeStatsWriteFits (psFits *fits, pmFringeStats *fringe); 1942 bool pmFringeStatsReadFits (psFits *fits, pmFringeStats *fringe); 1943 \end{prototype} 1944 1945 In order to measure the fringe statistics for a given image, the 1946 following function is defined: 1947 \begin{prototype} 1948 bool pmFringeStatsMeasure(pmFringeStats *fringe, pmReadout *readout) 1949 \end{prototype} 1950 This function measures the robust median at each of the fringe points 1951 and saves the median values in \code{fringe->f} and the scatter in 1952 \code{fringe->df}. 1953 1954 Given the fringe statistics for a science image, and the fringe 1955 statistics for a set of reference fringe images, the following 1956 function can be used to measure the scaling coefficients of the 1957 reference fringe frames which best fit the science image fringe 1958 pattern: 1959 \begin{prototype} 1960 pmFringeScale *pmFringeScaleMeasure (pmFringeStats *science, psArray *fringes) 1961 \end{prototype} 1962 1963 Given a science image, a set of master fringe images, and a the set of 1964 fringe statistics for the reference fringe images, the following 1965 function can be used to correct the science image for the fringe pattern: 1966 \begin{prototype} 1967 psImage *pmFringeCorrect(psImage *out, psMetadata *info, psImage *science, psArray *fringeImage, psArray *fringeStats); 1968 \end{prototype} 1883 1969 1884 1970 \subsection{Flat-field Re-Normalization} … … 2945 3031 available approximation to the Sextractor classification scheme. 2946 3032 \tbd{the correspondence is not yet defined}. 3033 3034 \subsection{Object List Input/Output} 3035 3036 We support several object catalog formats. Some of these mimic the 3037 formats used by the Elixir system to support testing with existing 3038 data and software. Some of these are for use by the Pan-STARRS 3039 project for testing. 3040 3041 \subsubsection{OBJ Format} 3042 3043 This format is produced by versions of DoPhot and is used by the 3044 Elixir system as an intermediate output data product. The objects are 3045 written to a text file with fixed line-length and with fixed column 3046 positions. The file has no header associated with it. This is only 3047 an output format, and should be used just for testing and comparison 3048 with the Elixir tools. 3049 3050 \subsubsection{SX Format} 3051 3052 This format is produced by versions of Sextractor and is used by the 3053 Elixir system as an intermediate output data product. The objects are 3054 written to a text file with fixed line-length and with fixed column 3055 positions. The file has no header associated with it. This is only 3056 an output format, and should be used just for testing and comparison 3057 with the Elixir tools. The SX and OBJ formats are similar, but use a 3058 somewhat different definition of the columns. 3059 3060 \subsubsection{CMP Format} 3061 3062 This format is used extensively by the Elixir system, and many data 3063 files are available in this format. The format is a pseudo-FITS 3064 format, consisting of a FITS header (with NAXIS=2) and a text data 3065 segment with fixed line length. The CMP files are always in SPLIT 3066 format in the sense that each object table is a single file. 3067 3068 \subsubsection{CMF Format} 3069 3070 This format is a true FITS table format. The object data is stored 3071 for each readout in a separate extension. In addition, the Cell 3072 headers are stored in their own extensions (with NAXIS=0). In SPLIT 3073 format, the Cell header is the PHU header. 2947 3074 2948 3075 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note:
See TracChangeset
for help on using the changeset viewer.
