Changeset 5377
- Timestamp:
- Oct 18, 2005, 5:24:11 PM (21 years ago)
- Location:
- trunk/doc/modules
- Files:
-
- 3 edited
-
CameraImages.tex (modified) (10 diffs)
-
ChangeLogSDRS.tex (modified) (2 diffs)
-
ModulesSDRS.tex (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/modules/CameraImages.tex
r5367 r5377 724 724 output; otherwise it shall return \code{false}. 725 725 726 \subsection{Astrometry Fitting Support Routines}726 \subsection{Astrometry Analysis} 727 727 728 728 Astrometry is performed on an astronomical image after a collection of … … 734 734 of the other coordinate system. For example, it might be necessary to 735 735 determine the coordinates of the \code{psReadout} pixels relative to 736 the \code{psCell} (rather accept the relationship defined by the737 metadata). 736 the \code{psCell} (rather than accept the relationship defined by the 737 metadata). 738 738 739 739 For the moment, we define two layers of astrometric analysis which … … 747 747 the second case, a collection of detectors on a collection of chips 748 748 from a mosaic camera are used to measure the position of the telescope 749 boresi te, the camera rotation, the impact of distortion from the749 boresight, the camera rotation, the impact of distortion from the 750 750 telescope optics, and the chip-to-focal plane transformation resulting 751 from chip placement errors or possible detector tilts or warps. 751 from chip placement errors or possible detector tilts or warps. 752 752 753 753 The process of performing astrometry involves the following steps: … … 769 769 possible the above analysis steps. 770 770 771 \subsubsection{Astrometry Objects} 772 771 773 We define the following structure to carry the necessary information 772 774 about each detection. 773 775 \begin{datatype} 774 776 typedef struct { 775 double X, Y;776 double L, M;777 double P, Q;778 double R, D;779 double Mag;777 psPlane pix; 778 psPlane FP; 779 psPlane TP; 780 psSphere sky; 781 double mag; 780 782 } pmAstromObj; 781 783 \end{datatype} 782 784 This structure specifies the coordinate of the detection in each of 783 the four necessary coordinate frames: \code{X,Y} define the position 784 in the \code{psReadout} frame, \code{L,M} define the position in the 785 \code{psChip} frame, \code{P,Q} define the position in the 786 \code{psFPA} frame, \code{R,D} define the position on the Celestial 787 Sphere. \tbd{re-write using psPlane and psSphere?}. In addition, a 788 measurement of the brightness is given by the element \code{Mag}. 789 Such a data structure should be used for both the raw and the 790 reference stars. In astrometric processing, the raw detections will 791 be projected using the best available information to each of these 792 coordinate frames from the \code{X,Y} coordinates, while the reference 793 detections will be projected to the other frames from the \code{R,D} 794 coordinates. 785 the four necessary coordinate frames: \code{pix} defines the position 786 in the \code{psReadout} frame, \code{FP} defines the position in the 787 Focal Plane frame, \code{TP} defines the position in the Tangent Plane 788 frame, \code{sky} defines the position on the Celestial Sphere. In 789 addition, a measurement of the brightness is given by the element 790 \code{Mag}. Such a data structure should be used for both the raw and 791 the reference stars. In astrometric processing, the raw detections 792 will be projected using the best available information to each of 793 these coordinate frames from the \code{pix} coordinates, while the 794 reference detections will be projected to the other frames from the 795 \code{sky} coordinates. 795 796 796 797 The raw detections and the reference stars are both projected to a 797 common coordinate frame for analysis. In these modules, we 798 principally use the Focal Plane for this reference frame. After 799 projection to the common frame, it is necessary to determine the match 800 between corresponding objects in the two lists. In order to match the 801 raw detections to the reference stars, different methods are used 802 depending on the circumstance. 798 common coordinate frame for analysis. In these modules, we use the 799 Focal Plane for this reference frame. After projection to the common 800 frame, it is necessary to determine the match between corresponding 801 objects in the two lists. In order to match the raw detections to the 802 reference stars, different methods are used depending on the 803 circumstance. 804 805 \subsubsection{Matching Stars : Close Match} 803 806 804 807 If the two sets of coordinates are expected to agree very well (ie, 805 808 the current best-guess astrometric solution is quite close to the 806 'true' astrometric solution), then it is possible to use the simplest809 `true' astrometric solution), then it is possible to use the simplest 807 810 matching process: cross-correlation within a fixed radius. The 808 811 following function accepts two sets of \code{pmAstromObj} sources and 809 812 determines the matched objects between the two lists. The input 810 813 sources must have been projected to the Focal Plane coordinates 811 (\code{pmAstromObj. L,M}), and the supplied \code{config} entry must814 (\code{pmAstromObj.FP}), and the supplied \code{options} entry must 812 815 contain the desired match radius (keyword: 813 \code{ASTROM _MATCH_RADIUS}). The output consists an array of816 \code{ASTROM.MATCH.RADIUS}). The output consists an array of 814 817 \code{pmAstromMatch} values, defined below. 815 818 816 819 \begin{prototype} 817 psArray *pmAstromRadiusMatch (psArray *st 1, psArray *st2, pmAstromOpt *opt);820 psArray *pmAstromRadiusMatch (psArray *starlist1, psArray *starlist2, psMetadata *options); 818 821 \end{prototype} 819 822 820 823 \begin{datatype} 821 824 typedef struct { 822 int i 1;823 int i 2;825 int idx1; 826 int idx2; 824 827 } pmAstromMatch; 825 828 \end{datatype} 826 829 The \code{pmAstromMatch} structure defines the cross-correlation 827 830 between two arrays. An single such data item specifies that item 828 number \code{pmAstromMatch.i1} in the first list corresponds to 829 \code{pmAstromMatch.i2} in the second list. 831 number \code{pmAstromMatch.idx1} in the first list corresponds to 832 \code{pmAstromMatch.idx2} in the second list. 833 834 \subsubsection{Matching Stars : Rough Match} 830 835 831 836 If the two sets of coordinates are not known to agree well, a somewhat … … 857 862 rotations. We define the following function to apply this matching algorithm: 858 863 \begin{prototype} 859 p mAstromGridMatchStat pmAstromGridMatch (psArray *st1, psArray *st2, psMetadata *options);864 psArray *pmAstromGridMatch (psArray *starlist1, psArray *starlist2, psMetadata *options); 860 865 \end{prototype} 861 866 The input sources must have been projected to the Focal Plane 862 coordinates (\code{pmAstromObj. L,M}), and the supplied \code{config}867 coordinates (\code{pmAstromObj.FP}), and the supplied \code{options} 863 868 entry must contain the following user-defined parameters: 864 869 \begin{itemize} 865 \item \code{GRID _OFFSET}: maximum allowed displacement in search866 \item \code{GRID _SCALE}: grid bin size in focal-plane coordinate units867 \item \code{ MIN_ANGLE} : minimum tested relative rotation868 \item \code{ MAX_ANGLE} : maximum tested relative rotation869 \item \code{ DEL_ANGLE} : relative rotation step size870 \item \code{GRID.OFFSET} : maximum allowed displacement in search 871 \item \code{GRID.SCALE} : grid bin size in focal-plane coordinate units 872 \item \code{GRID.MIN.ANGLE} : minimum tested relative rotation 873 \item \code{GRID.MAX.ANGLE} : maximum tested relative rotation 874 \item \code{GRID.DEL.ANGLE} : relative rotation step size 870 875 \end{itemize} 871 The output from this process is the statistics of the best-fit 872 (rotation and offset grid cell). This information is returned in the 873 \code{pmAstromGridMatchStats} structure: 874 \begin{datatype} 875 typedef struct { 876 double angle; 877 double dL; 878 double dM; 879 double minMetric; 880 double minVar; 881 int nMatch; 882 } pmAstromGridMatchStats; 883 \end{datatype} 884 The elements \code{angle}, \code{dL}, \code{dM} define the best 885 rotation and offset; the element \code{nMatch} indicates the number of 886 matched sources which fell within the match bin; the element 887 \code{minVar} defines the variance of the sources within the match 888 bin; the element \code{minMetric} specifies the value of the selection 889 metric for the matched bin. Note that the metric of choice may not 890 necessarily be either the simple number of sources or the varience. 891 We find that a combination based on both which enhances the importance 892 of having a well-populated bin with a minimal variance gives good 893 results: $\mbox{metric} = \mbox{var} \times N^{-4}$. 894 895 We define two additional functions which are used in two build 896 \code{pmAstromGridMatch}, but which may be useful on their own: 897 898 \begin{prototype} 899 pmAstromGridMatchStats pmAstromGridMatchAngle (psArray *st1, psArray *st2, psMetadata *config); 900 \end{prototype} 901 This function is identical to \code{pmAstromGridMatch}, but is valid 902 for only a single relative rotation. The input \code{config} 903 information need not contain any of the \code{ANGLE} entries. 904 905 \begin{prototype} 906 psArray *pmAstromRotateObj (psArray *old, double angle, double pCenter, double qCenter); 907 \end{prototype} 908 This function accepts an array of \code{pmAstromObj} objects and 909 rotates them by the given \code{angle} about the given center 910 coordinate \code{pCenter,qCenter} in the Focal Plane Array 911 coordinates. 876 Note that the angles are defined as counter-clockwise rotations of 877 starlist 1 relative to starlist 2. 878 879 This function returns all matched pairs identified in the grid cell. 880 It also adds to the \code{options} metadata several elements defining 881 the statistics of the best-fit (rotation and offset grid cell): 882 \begin{itemize} 883 \item \code{GRID.FIT.ANGLE} 884 \item \code{GRID.FIT.LOFF} 885 \item \code{GRID.FIT.MOFF} 886 \item \code{GRID.FIT.METRIC} 887 \item \code{GRID.FIT.VARIANCE} 888 \item \code{GRID.FIT.NMATCH} 889 \end{itemize} 890 The elements \code{GRID.FIT.ANGLE}, \code{GRID.FIT.LOFF}, 891 \code{GRID.FIT.MOFF} define the best rotation and offset; the element 892 \code{GRID.FIT.NMATCH} indicates the number of matched sources which 893 fell within the match bin; the element \code{GRID.FIT.VAR} defines the 894 variance of the sources within the match bin; the element 895 \code{GRID.FIT.METRIC} specifies the value of the selection metric for 896 the matched bin. Note that the metric of choice may not necessarily 897 be either the simple number of sources or the varience. We find that 898 a combination based on both which enhances the importance of having a 899 well-populated bin with a minimal variance gives good results: 900 $\mbox{metric} = \mbox{var} \times N^{-4}$. 912 901 913 902 The result of a \code{pmAstromGridMatch} may be used to modify the … … 920 909 two adjustments are made using the function: 921 910 \begin{prototype} 922 pmAstromApplyGridMatch (pmFPA *fpa, pmAstromGridMatchStats stats);911 bool pmAstromApplyGridMatch (pmFPA *fpa, pmAstromGridMatchStats stats); 923 912 \end{prototype} 924 913 This function modifies the supplied \code{pmFPA} entry as described 925 914 above. 915 916 We define two additional functions which are used in two build 917 \code{pmAstromGridMatch}, but which may be useful on their own: 918 919 \begin{prototype} 920 psArray *pmAstromGridMatchAngle (psArray *starlist1, psArray *starlist2, psMetadata *options); 921 \end{prototype} 922 This function is identical to \code{pmAstromGridMatch}, but is valid 923 for only a single relative rotation. The input \code{config} 924 information need not contain any of the \code{GRID.*.ANGLE} entries 925 (they will be ignored). 926 927 \begin{prototype} 928 psArray *pmAstromRotateObj (psArray *old, double angle, double pCenter, double qCenter); 929 \end{prototype} 930 This function accepts an array of \code{pmAstromObj} objects and 931 rotates them by the given \code{angle} about the given center 932 coordinate \code{pCenter,qCenter} in the Focal Plane Array 933 coordinates. 934 935 \subsubsection{Astrometry Fitting Routines} 926 936 927 937 The result of a \code{pmAstromRadiusMatch} operation is a list of … … 937 947 fitting uses clipping to exclude outliers, likely representing poor 938 948 matches. The \code{config} element must contain the information 939 \code{ASTROM _NSIGMA} (specifying the number of sigma used in the940 clipping) and \code{ASTROM _NCLIP} (specifying the number of clipping949 \code{ASTROM.NSIGMA} (specifying the number of sigma used in the 950 clipping) and \code{ASTROM.NCLIP} (specifying the number of clipping 941 951 iterations must be performed). The \code{config} element must also 942 952 specify the order of the polynomial fit (keyword: 943 \code{ASTROM _ORDER}). The result of this fit is a set of953 \code{ASTROM.ORDER}). The result of this fit is a set of 944 954 modifications of the components of the \code{pmFPA.toTangentPlane} 945 955 transformation, and the modifications of the reference coordinate of … … 961 971 systems. The fitting uses clipping to exclude outliers, likely 962 972 representing poor matches. The \code{config} element must contain the 963 information \code{ASTROM _NSIGMA} (specifying the number of sigma used964 in the clipping) and \code{ASTROM _NCLIP} (specifying the number of973 information \code{ASTROM.NSIGMA} (specifying the number of sigma used 974 in the clipping) and \code{ASTROM.NCLIP} (specifying the number of 965 975 clipping iterations must be performed). The \code{config} element 966 976 must also specify the order of the polynomial fit (keyword: 967 \code{ASTROM _ORDER}). The result of this fit is a set of977 \code{ASTROM.ORDER}). The result of this fit is a set of 968 978 modifications of the components of the \code{pmChip.toFPA} 969 979 transformation. … … 980 990 plane, for a collection of raw measurements and matched reference 981 991 stars. The configuration data must include the bin size over which 982 the gradient is measured (keyword: \code{ASTROM _GRAD_BOX}). The992 the gradient is measured (keyword: \code{ASTROM.GRAD.BOX}). The 983 993 function returns an array of \code{pmAstromGradient} structures, 984 994 defined below. 985 995 \begin{prototype} 986 psArray pmAstromMeasureGradients (psArray *st 1, psArray *st2, psArray *match, psMetadata *config);996 psArray pmAstromMeasureGradients (psArray *starlist1, psArray *starlist2, psArray *match, psMetadata *config); 987 997 \end{prototype} 988 998 989 999 The following data structure carries the information about the 990 1000 residual gradient of source positions in the tangent plane 991 (\code{ P,Q}) as a function of position in the focal plane992 (\code{ L,M}).1001 (\code{pmAstromObj.TP}) as a function of position in the focal plane 1002 (\code{pmAstromObj.FP}). 993 1003 \begin{datatype} 994 1004 typedef struct { 995 double L; 996 double M; 997 double dPdL; 998 double dPdM; 999 double dQdL; 1000 double dQdM; 1005 psPlane FP; 1006 psPlane dTPdL; 1007 psPlane dTPdM; 1001 1008 } pmAstromGradient; 1002 1009 \end{datatype} … … 1008 1015 transformation of the supplied \code{pmFPA} structure. The 1009 1016 configuration variable supplies the polynomial order (keyword: 1010 \code{ASTROM _DISTORT_ORDER}).1017 \code{ASTROM.DISTORT.ORDER}). 1011 1018 \begin{prototype} 1012 1019 psArray pmAstromFitDistortion (pmFPA *fpa, psArray *gradients, psMetadata *config); 1013 1020 \end{prototype} 1014 1015 \tbd{can we use the pmAstromFitMatch func above to fit the remaining1016 power in the chips?}1017 -
trunk/doc/modules/ChangeLogSDRS.tex
r5370 r5377 1 %%% $Id: ChangeLogSDRS.tex,v 1.3 5 2005-10-18 22:17:18eugene Exp $1 %%% $Id: ChangeLogSDRS.tex,v 1.36 2005-10-19 03:24:11 eugene Exp $ 2 2 3 3 \subsection{Changes from version 00 (16 August 2004) to version 01 (12 October 2004)} … … 138 138 \end{itemize} 139 139 140 \subsection{Changes from version 08 (13 Sept 2005) to version 09 ( )}140 \subsection{Changes from version 08 (13 Sept 2005) to version 09 (18 Oct 2005)} 141 141 142 142 \begin{itemize} -
trunk/doc/modules/ModulesSDRS.tex
r5369 r5377 1 %%% $Id: ModulesSDRS.tex,v 1.6 3 2005-10-18 22:16:41 eugene Exp $1 %%% $Id: ModulesSDRS.tex,v 1.64 2005-10-19 03:24:11 eugene Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 11 11 \project{Pan-STARRS Image Processing Pipeline} 12 12 \organization{Institute for Astronomy} 13 \version{0 8}13 \version{09} 14 14 \docnumber{PSDC-430-012} 15 15 … … 1399 1399 Some images contain a signal caused by thin-film interference in the 1400 1400 device due to strong emission lines. The resulting instrumental 1401 effect consists of a pattern (the fringe pattern) of bright and dark1402 bands corresponding to the constructive and destructive interference1403 of the emission lines. In the case that a single emission line causes 1404 the line structure, the resulting pattern can be described by two 1405 independent parameters: First, the amplitude of the emission line1406 determines the overall amplitude of the pattern. Second, the 1407 three-dimensional surface structure of the device determines the shape1408 of the pattern. In a typical situation, the device is not only 1409 illuminated by the emission line (or lines), but also by a continuum 1410 spectral source, which contributes to the overall light detected by 1411 the device without following the fringe pattern. The relative1412 intensities of the continuum background and the fringe pattern depend 1413 on the device structure (thickness) and on the ratio of the continuum 1414 and line emission fluxes.1401 effect consists of a pattern (the ``fringe pattern'') of bright and 1402 dark bands corresponding to the constructive and destructive 1403 interference of the emission lines. In the case that a single 1404 emission line causes the line structure, the resulting pattern can be 1405 described by two independent parameters: First, the amplitude of the 1406 emission line determines the overall amplitude of the pattern. 1407 Second, the three-dimensional surface structure of the device 1408 determines the shape of the pattern. In a typical situation, the 1409 device is illuminated by multiple emission lines, as well as a 1410 continuum spectral source, which contributes to the overall light 1411 detected by the device without following the fringe pattern. The 1412 relative intensities of the continuum background and the fringe 1413 pattern depend on the device structure (thickness) and on the ratio of 1414 the continuum and line emission fluxes. 1415 1415 1416 1416 A simple approach to the fringe pattern is to subtract a master fringe … … 1495 1495 M^{\rm pred}_{i,j} = G_j + S_i 1496 1496 \] 1497 where $M^{\rm pred}_{i,j} = \log \mbox{flux}^{\rm pred}_{i,j}$, $G_j =1498 \log \mbox{gain}_j$, and $\log \mbox{source}_i = S_i$. We can then1499 write the chi-square which we want to minimize as:1497 where $M^{\rm pred}_{i,j} = \log (\mbox{flux}^{\rm pred}_{i,j})$, $G_j 1498 = \log (\mbox{gain}_j)$, and $S_i = \log (\mbox{source}_i)$. We can 1499 then write the chi-square which we want to minimize as: 1500 1500 \[ 1501 1501 \chi^2 = \sum_{i,j} (M^{\rm obs}_{i,j} - G_j - S_i)^2
Note:
See TracChangeset
for help on using the changeset viewer.
