IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4530


Ignore:
Timestamp:
Jul 11, 2005, 9:17:38 AM (21 years ago)
Author:
eugene
Message:

updated robust stats

Location:
trunk/doc/pslib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/ChangeLogADD.tex

    r4517 r4530  
    6565\item Removed all references to slalib.
    6666\item Updated section on rotations.
     67\item Divided the robust statistics into robust and fitted statistics,
     68modified the algorithm somewhat.
    6769\end{itemize}
  • trunk/doc/pslib/ChangeLogSDRS.tex

    r4411 r4530  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.156 2005-06-28 21:31:24 price Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.157 2005-07-11 19:17:38 eugene Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    749749\item Making various integers \code{unsigned} in the various
    750750  \code{psPolynomial} types and \code{psSpline1D} (bug 460).
    751 \end{itemize}
     751\item Adjusted \code{psStats} to reflect robust / fitted statistics as defined in the ADD.
     752\end{itemize}
     753
  • trunk/doc/pslib/psLibADD.tex

    r4529 r4530  
    1 %%% $Id: psLibADD.tex,v 1.82 2005-07-09 02:25:56 eugene Exp $
     1%%% $Id: psLibADD.tex,v 1.83 2005-07-11 19:17:38 eugene Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    18111811is broken down into a number of steps as described below.
    18121812
    1813 \paragraph{Reference Implementations}
    1814 
    1815 There are two reference implementatins for the code to account for the
     1813\subsubsection{Reference Implementations}
     1814
     1815There are two reference implementations for the code to account for the
    18161816motion of the Earth in space. The first are the sample routines
    18171817provided by the IERS to accompany chaper 5 of IERS Bulletin
     
    22342234
    22352235\paragraph{Atmospheric Refraction}
     2236\newcommand\citep[1]{\textit{#1}}
     2237\newcommand\citet[1]{\textit{#1}}
    22362238
    22372239{\em The following discussion is adapted from an article by Ken Chambers}
    2238 \newcommand\citep{\em}
    2239 \newcommand\citet{\em}
    22402240
    22412241The hypsometric structure and index of refraction of the Earth's
     
    23132313divided into separate subsections.
    23142314
    2315 \subsection{Observatory height}
     2315\subparagraph{Observatory height}
    23162316
    23172317The height of the observatory from the geometric center
     
    23302330      (i.e. a local plumb line).
    23312331
    2332 \subsection{The magnitude of normal gravity at the observatory }
     2332\subparagraph{The magnitude of normal gravity at the observatory }
    23332333                                                                               
    23342334The local magnitude of normal gravity
     
    23912391
    23922392
    2393 \subsection{The scale height above the observatory}
     2393\subparagraph{The scale height above the observatory}
    23942394
    23952395The scale height of the atmosphere above the observatory is
     
    24962496\end{equation}
    24972497
    2498 \subsection{The index of refraction of moist air at the observatory}
     2498\subparagraph{The index of refraction of moist air at the observatory}
    24992499
    25002500The Ciddor equation for the index of refraction of moist air
     
    25942594\end{table}
    25952595
    2596 
    2597 \subsection{The tropopause term in the equation of refraction}
     2596\subparagraph{The tropopause term in the equation of refraction}
    25982597
    25992598The final term in the Refraction Equation (2)
     
    26252624\end{equation}
    26262625
    2627 \subsection{Calculating the atmospheric refraction from both
    2628             the observed and true zenith angle}
     2626\subparagraph{Calculating the atmospheric refraction from both
     2627  the observed and true zenith angle}
    26292628
    26302629The monochromatic refraction can now be calculated for any given wavelength
     
    26712670\end{equation}
    26722671
    2673 \section{Atmospheric Dispersion}   
    2674 
    2675 The atmospheric dispersion is then
    2676 \begin{equation}
    2677 { \overline{(R- \bar R)^2}}  = {{\int (R - \bar R)^2 N_{\lambda} d \lambda} \over
    2678                            {\int N_{\lambda} d\lambda}} 
    2679 \end{equation}
    2680 
    2681 \section{Air Mass and Extinction}   
     2672\subsubsection{Air Mass and Extinction}   
    26822673
    26832674By Laplace's theorem, the monochromatic airmass (mass per unit area
     
    27152706accurate expression for airmass should lead to improved extinction
    27162707corrections at high airmass. 
    2717 
    2718 \section{Limits to ground based relative and absolute astrometry}   
    2719 
    2720 The limits to ground based astrometry may well be our abilitiy to
    2721 measure the atmospheric profile along the line of sight of a given
    2722 observation, and the systematic limit of the telescope axes encoders
    2723 (and sophistication of the telescope mount model.)
    2724 The refratction model above requires only the additional data of
    2725 the temperature, height, and presure of the tropopause, but much more
    2726 detailed atmospheric information will be available for PS1 from our sky
    2727 probes which measure atmospheric absorption for each field and even,
    2728 phase drifts of GPS clocks from Rubidium or Cesium standard clocks.
    2729 These can be converted directly into a nearby line of sight index of refraction
    2730 at optical wavelengths. Thus we encourage wide field survey telescopes to
    2731 err on the side of over instrumenting the accuracy and repeatibility
    2732 of the axes encoders. 
    2733 
    2734 
    27352708
    27362709\subsection{Projections}
  • trunk/doc/pslib/psLibSDRS.tex

    r4458 r4530  
    1 %%% $Id: psLibSDRS.tex,v 1.311 2005-07-06 03:39:01 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.312 2005-07-11 19:17:38 eugene Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    14341434                      unsigned int lineno,
    14351435                      const char *func,
    1436                       psErrorCode code,
     1436                      psErrorCode code,
    14371437                      bool new,
    1438                       const char *format, ...);
     1438                      const char *format, ...);
    14391439\end{prototype}
    14401440\begin{datatype}
     
    39873987We require a very general statistics function, which, given a vector
    39883988of floating-point values, will be able to calculate the following
    3989 statistics:
     3989population statistics:
    39903990\begin{itemize}
     3991\item Minimum value;
     3992\item Maximum value;
    39913993\item Sample mean;
    39923994\item Sample median;
    39933995\item Sample standard deviation;
    39943996\item Sample upper and lower quartiles;
    3995 \item Robust mean and number of values used to calculate;
     3997\item Clipped mean and number of values used to calculate;
     3998\item Clipped standard deviation;
    39963999\item Robust median and number of values used to calculate;
    3997 \item Robust mode and number of values used to calculate;
    39984000\item Robust standard deviation;
    39994001\item Robust upper and lower quartiles;
    4000 \item Clipped mean and number of values used to calculate;
    4001 \item Clipped standard deviation; and
    4002 \item Minimum and maximum value in vector.
     4002\item Fitted mean and number of values used to calculate;
     4003\item Fitted standard deviation;
    40034004\end{itemize}
    40044005
    40054006For definitions of each of these, see the accompanying Algorithms
    40064007Definition Document (ADD), but in general, ``sample'' refers to the
    4007 entire vector, ``robust'' refers to fitting the distribution in the
    4008 vector with a model, and ``clipped'' refers to clipping the
    4009 distribution.  Each of these must be available from a single
     4008entire vector, ``clipped'' refers to clipping the distribution,
     4009``robust'' refers to determining the quantities from the cumulative
     4010histogram, and ``fitted'' refers to fitting the data histogram with a
     4011Gaussian model.  Each of these must be available from a single
    40104012function:
    40114013
     
    40154017                       const psVector *errors,
    40164018                       const psVector *mask,
    4017                        psMaskType maskVal
    4018                        );
     4019                       psMaskType maskVal);
    40194020\end{prototype}
    40204021%
     
    40244025and a \code{psStats} structure, which will be altered and returned.
    40254026The \code{psStats} structure includes several fields which are used
    4026 for both input and output: \code{min} and \code{max} may be used to
    4027 specify a value range for which the statistics are calculated.
     4027for both input and output: \code{nSubsample} (default value of
     4028100,000) specifies the maximum number of data points to be used for
     4029the statistics calculation.  If more points than this are available,
     4030then the input vector must be randomly sampled to provide
     4031\code{nSubsample} measurements.  \code{min} and \code{max} may be used
     4032to specify a value range for which the statistics are calculated.
    40284033\code{binsize} specifies a choice for the robust statistics histogram
    40294034bin size.  If these are to be used, the user must set the
     
    40504055
    40514056\begin{datatype}
    4052 /** generic statistics structure */
    40534057typedef struct {
    40544058    double sampleMean;                  ///< formal mean of sample
     
    40574061    double sampleUQ;                    ///< upper quartile of sample
    40584062    double sampleLQ;                    ///< lower quartile of sample
    4059     double robustMean;                  ///< robust mean of data
    40604063    double robustMedian;                ///< robust median of data
    4061     double robustMode;                  ///< Robust mode of data
    40624064    double robustStdev;                 ///< robust standard deviation of data
    40634065    double robustUQ;                    ///< robust upper quartile
    40644066    double robustLQ;                    ///< robust lower quartile
    40654067    int    robustN50;                   ///< Number of points UQ-LQ
    4066     int    robustNfit;                  ///< Number of points in Gauss. fit
     4068    double fittedMean;                  ///< robust mean of data
     4069    double fittedStdev;                 ///< robust standard deviation of data
     4070    int    fittedNfit;                  ///< Number of points in Gauss. fit
    40674071    double clippedMean;                 ///< Nsigma clipped mean
    40684072    double clippedStdev;                ///< standard deviation after clipping
     
    40734077    double max;                         ///< maximum data value in data; input range
    40744078    double binsize;                     ///< binsize for robust fit (input/output)
     4079    int    nSubsample;                  ///< maximum number of measuremenst (input)
    40754080    psStatsOptions options;             ///< bitmask of calculated values
    40764081} psStats;
     
    40804085
    40814086\begin{datatype}
    4082 /** statistics which may be calculated */
    40834087typedef enum {
    40844088    PS_STAT_SAMPLE_MEAN           = 0x000001,
     
    40864090    PS_STAT_SAMPLE_STDEV          = 0x000004,
    40874091    PS_STAT_SAMPLE_QUARTILE       = 0x000008,
    4088     PS_STAT_ROBUST_MEAN           = 0x000010,
    4089     PS_STAT_ROBUST_MEDIAN         = 0x000020,
    4090     PS_STAT_ROBUST_MODE           = 0x000040,
    4091     PS_STAT_ROBUST_STDEV          = 0x000080,
    4092     PS_STAT_ROBUST_QUARTILE       = 0x000100,
     4092    PS_STAT_ROBUST_MEDIAN         = 0x000010,
     4093    PS_STAT_ROBUST_STDEV          = 0x000020,
     4094    PS_STAT_ROBUST_QUARTILE       = 0x000040,
     4095    PS_STAT_FITTED_MEAN           = 0x000080,
     4096    PS_STAT_FITTED_STDEV          = 0x000100,
    40934097    PS_STAT_CLIPPED_MEAN          = 0x000200,
    40944098    PS_STAT_CLIPPED_STDEV         = 0x000400,
     
    63626366corrections for the short-period motion of the Earth's pole. 
    63636367
     6368\begin{figure}
     6369\begin{center}
     6370\psfig{file=earthrot.ps,height=4in}
     6371\caption{Earth Orientation Coordinate Frames\label{CoordinateSystems}}
     6372\end{center}
     6373\end{figure}
     6374
    63646375\subsubsection{Transformation from ICRS to GCRS}
    63656376
Note: See TracChangeset for help on using the changeset viewer.