IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1710


Ignore:
Timestamp:
Sep 7, 2004, 1:27:04 PM (22 years ago)
Author:
eugene
Message:

minor typos

File:
1 edited

Legend:

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

    r1707 r1710  
    1 %%% $Id: psLibSDRS.tex,v 1.111 2004-09-07 23:23:40 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.112 2004-09-07 23:27:04 eugene Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    13301330    } data;
    13311331    const struct psImage *parent;       ///< parent, if a subimage
    1332     psArray *children;                  ///< children of this region
     1332    psArray *children;                  ///< children of this region
    13331333} psImage;
    13341334\end{verbatim}
     
    18231823    double min;                         ///< minimum data value in data; input range
    18241824    double max;                         ///< maximum data value in data; input range
    1825     double binsize;                     ///< binsize for robust fit (input/output)
     1825    double binsize;                     ///< binsize for robust fit (input/output)
    18261826    psStatsOptions options;             ///< bitmask of calculated values
    18271827} psStats;
     
    19361936/** One-dimensional polynomial */
    19371937typedef struct {
    1938     psPolynomialType type;              ///< Polynomial type
     1938    psPolynomialType type;              ///< Polynomial type
    19391939    int n;                              ///< Number of terms
    19401940    float *restrict coeff;              ///< Coefficients
     
    19471947/** Two-dimensional polynomial */
    19481948typedef struct {
    1949     psPolynomialType type;              ///< Polynomial type
     1949    psPolynomialType type;              ///< Polynomial type
    19501950    int nX, nY;                         ///< Number of terms in x and y
    19511951    float *restrict *restrict coeff;    ///< Coefficients
     
    19611961\begin{verbatim}
    19621962typedef enum {
    1963     PS_POLYNOMIAL_ORD,                  ///< Ordinary polynomial
    1964     PS_POLYNOMIAL_CHEB                  ///< Chebyshev polynomial
     1963    PS_POLYNOMIAL_ORD,                  ///< Ordinary polynomial
     1964    PS_POLYNOMIAL_CHEB                  ///< Chebyshev polynomial
    19651965} psPolynomialType;
    19661966\end{verbatim}
     
    19711971/** Double-precision one-dimensional polynomial */
    19721972typedef struct {
    1973     psPolynomialType type;              ///< Polynomial type
     1973    psPolynomialType type;              ///< Polynomial type
    19741974    int n;                              ///< Number of terms
    19751975    double *restrict coeff;             ///< Coefficients
     
    19821982/** Double-precision two-dimensional polynomial */
    19831983typedef struct {
    1984     psPolynomialType type;              ///< Polynomial type
     1984    psPolynomialType type;              ///< Polynomial type
    19851985    int nX, nY;                         ///< Number of terms in x and y
    19861986    double *restrict *restrict coeff;   ///< Coefficients
     
    20292029typedef struct {
    20302030    int n;                              ///< Number of spline pieces
    2031     psPolynomial1D **spline;            ///< Array of n pointers to splines
     2031    psPolynomial1D **spline;            ///< Array of n pointers to splines
    20322032    float *domains;                     ///< The boundaries between each spline piece.  Size is n+1.
    20332033} psSpline1D;
     
    21292129\begin{verbatim}
    21302130typedef struct {
    2131     const int maxIter;                  ///< Maximum number of iterations
    2132     const float tol;                    ///< Tolerance to reach
    2133     float value;                        ///< Value after minimization
    2134     int iter;                           ///< Actual number of iterations performed
    2135     float lastDelta;                    ///< Last change before quitting
     2131    const int maxIter;                  ///< Maximum number of iterations
     2132    const float tol;                    ///< Tolerance to reach
     2133    float value;                        ///< Value after minimization
     2134    int iter;                           ///< Actual number of iterations performed
     2135    float lastDelta;                    ///< Last change before quitting
    21362136} psMinimization;
    21372137\end{verbatim}
     
    23082308psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline,
    23092309                                const psVector *x,
    2310                                 const psVector *y,
    2311                                 const psVector *yErr);
     2310                                const psVector *y,
     2311                                const psVector *yErr);
    23122312\end{verbatim}
    23132313\code{psVectorFitSpline} shall return the spline that best fits the
     
    24322432                     unsigned int maskVal,
    24332433                     float x0,
    2434                      float y0,
    2435                      float x1,
    2436                      float y1,
    2437                      unsigned int nSamples,
    2438                      psImageInterpolateMode mode);
     2434                     float y0,
     2435                     float x1,
     2436                     float y1,
     2437                     unsigned int nSamples,
     2438                     psImageInterpolateMode mode);
    24392439\end{verbatim}
    24402440Extract pixels along a line segment, \code{(x0,y0)} to \code{(x1,y1)},
     
    24552455                           unsigned int maskVal,
    24562456                           float x,
    2457                            float y,
     2457                           float y,
    24582458                           const psVector *radii,
    2459                            const psStats *stats);
     2459                           const psStats *stats);
    24602460\end{verbatim}
    24612461Extract radial region data to a vector.  A vector is constructed where
     
    25662566                      const psImage *in,
    25672567                      const psImage *mask,
    2568                       unsigned int maskVal);
     2568                      unsigned int maskVal);
    25692569\end{verbatim}
    25702570Determine statistics for image (or subimage).  The statistics to be
     
    25792579                              const psImage *in,
    25802580                              const psImage *mask,
    2581                               unsigned int maskVal);
     2581                              unsigned int maskVal);
    25822582\end{verbatim}
    25832583Construct a histogram from an image (or subimage).  The histogram to
     
    29592959    PS_FFT_FORWARD = 0,                 ///< psImageFFT/psVectorFFT should perform a forward FFT.
    29602960    PS_FFT_REVERSE = 1,                 ///< psImageFFT/psVectorFFT should perform a reverse FFT.
    2961     PS_FFT_REAL_RESULT = 2              ///< psImageFFT/psVectorFFT should return a real image. This is valid
    2962                                         ///< for only reverse FFT, i.e., the psImageFFT/psVectorFFT flag
    2963                                         ///< parameter should appear as PS_FFT_REVERSE+PS_FFT_REAL_RESULT.
     2961    PS_FFT_REAL_RESULT = 2              ///< psImageFFT/psVectorFFT should return a real image. This is valid
     2962                                        ///< for only reverse FFT, i.e., the psImageFFT/psVectorFFT flag
     2963                                        ///< parameter should appear as PS_FFT_REVERSE+PS_FFT_REAL_RESULT.
    29642964} psFFTFlags;
    29652965\end{verbatim}
     
    33473347    psMetadataType type;                ///< type of this item
    33483348    const union {
    3349         bool bool;                      ///< boolean value
     3349        bool bool;                      ///< boolean value
    33503350        psS32 S32;                      ///< integer value
    33513351        psF32 F32;                      ///< floating value
     
    33703370typedef enum {                          ///< type of data.item is:
    33713371    PS_META_ITEM_SET = 0,               ///< NULL; metadata is in psMetadataType.items
    3372     PS_META_BOOL,                       ///< bool (.bool)
     3372    PS_META_BOOL,                       ///< bool (.bool)
    33733373    PS_META_S32,                        ///< int (.S32)
    33743374    PS_META_F32,                        ///< float (.F32)
     
    35293529\end{verbatim}
    35303530Read header data from a FITS image file into a \code{psMetadata}
    3531 structure (see section~\ref{sec:metadata}.  The \code{extname} and
    3532 \code{extnum} parameters specify the extension of interest as above.
    3533 If the named extension does not exist, the function should return an
    3534 error.
     3531structure.  The \code{extname} and \code{extnum} parameters specify
     3532the extension of interest as above.  The data is read from the
     3533extension specified by extname (matching the EXTNAME keyword) or by
     3534the extnum value (with 0 representing the primary header unit (PHU), 1
     3535the first extension, etc).  This function must call \code{psError} and
     3536return \code{NULL} if the specified extension does not exist.  If
     3537\code{extname} is not \code{NULL}, \code{extnum} must be set to -1 or
     3538the function shall raise an error.
    35353539
    35363540\begin{verbatim}
     
    35823586\code{STRING}.
    35833587
    3584 \tbd{May, in the future, require more types, including
    3585 \code{U8,S16,C64}, which will also necessitate updating the definition
    3586 of \code{psMetadata}.}
     3588\tbd{May, in the future, require more types, including U8,S16,C64,
     3589which will also necessitate updating the definition of psMetadata.}
    35873590
    35883591The value shall follow the type: strings may consist of multiple
     
    36113614
    36123615\tbd{May add complex types, likely to be specified with values such as
    3613 \code{1.23+4.56i} in the future.}
     3616  1.23+4.56i in the future.}
    36143617
    36153618An additional hurdle is the specification of keys that may be
     
    36333636Here are some examples of lines of a valid configuration file:
    36343637\begin{verbatim}
    3635  Double     F64     1.23456789      # This is a comment
    3636 Float F32 0.98765#This is a comment too
    3637         String  STR This is the string that forms the value #comment
    3638     #This is a comment line and is to be ignored
     3638Double     F64     1.23456789      # This is a comment
     3639Float    F32 0.98765#This is a comment too
     3640String  STR This is the string that forms the value #comment
     3641
     3642 # This is a comment line and is to be ignored
    36393643boolean     BOOL    T # The value of `boolean' is `true'
    36403644
    36413645@primes U8  2,3 5 7,11,13 17 #   These are prime numbers
     3646
    36423647comment * The rest of this line is ignored, but `comment' is set to be non-unique
    36433648comment STR This
    3644  comment STR     is
    3645   comment STR       a
    3646    comment STR        non-unique
    3647     comment STR                  key
     3649comment STR     is
     3650comment STR       a
     3651comment STR        non-unique
     3652comment STR                  key
    36483653Float F64 1.23456 # This generates a warning, and, if `overwrite' is `false', is ignored
    36493654\end{verbatim}
     
    39293934
    39303935typedef enum {
    3931     PS_SPHERICAL;                       ///< Offset on a sphere
    3932     PS_LINEAR;                          ///< Linear offset
     3936    PS_SPHERICAL;                       ///< Offset on a sphere
     3937    PS_LINEAR;                          ///< Linear offset
    39333938} psSphereOffsetMode;
    39343939
    39353940typedef enum {
    3936     PS_ARCSEC;                          ///< Arcseconds
    3937     PS_ARCMIN;                          ///< Arcminutes
    3938     PS_DEGREE;                          ///< Degrees
    3939     PS_RADIAN;                          ///< Radians
     3941    PS_ARCSEC;                          ///< Arcseconds
     3942    PS_ARCMIN;                          ///< Arcminutes
     3943    PS_DEGREE;                          ///< Degrees
     3944    PS_RADIAN;                          ///< Radians
    39403945} psSphereOffsetUnit;
    39413946\end{verbatim}
Note: See TracChangeset for help on using the changeset viewer.