IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 26, 2004, 3:48:23 PM (22 years ago)
Author:
eugene
Message:

work on astrom / coord transforms

File:
1 edited

Legend:

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

    r2383 r2502  
    1 %%% $Id: psLibSDRS.tex,v 1.153 2004-11-18 23:54:32 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.154 2004-11-27 01:48:23 eugene Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    1919\maketitle
    2020\sloppy
     21
     22% make a margin comment:
     23% \marginpar{note!}
    2124
    2225% -- Revision History --
     
    353806 & 2004 Aug 19 & revision for cycle 3 \\ \hline
    363907 & 2004 Sep 07 & final for cycle 3 \\ \hline
    37 08 & 2004 Oct 12 & draft for start of cycle 4 \\
     4008 & 2004 Oct 12 & draft for start of cycle 4 \\ \hline
     4109 & 2004 Nov 15 & final for cycle 4 \\
    3842\RevisionsEnd
    3943
     
    307311follows:
    308312%
     313\filbreak
    309314\begin{verbatim}
    310315typedef struct {
     
    700705reference counter and returns.}  An example destructor is shown below:
    701706
     707\filbreak
    702708\begin{verbatim}
    703709void psMyTypeFree(psMyType *myType)
     
    14661472
    14671473\begin{verbatim}
     1474psArray *psArrayAdd(psArray *array, int delta, void *value);
     1475\end{verbatim}
     1476
     1477This function adds a value to the end of an array.  If the current
     1478length of the array (\code{psArray.n}) is at the limit of the
     1479allocated space, additional space is allocated.  The value of
     1480\code{delta} defines how many elements to add on each pass (if this
     1481value is less than 1, 10 shall be used).
     1482
     1483\begin{verbatim}
    14681484psArray *psArraySort(psArray *array, int (*compare)(const void **a, const void **b) );
    14691485\end{verbatim}
     
    16461662
    16471663\begin{verbatim}
    1648 psArray *psListToArray(psList *list);
    1649 psList  *psArrayToList(psArray *array);
     1664psArray *psArrayFromList(psList *list);
     1665psList  *psListFromArray(psArray *array);
    16501666\end{verbatim}
    16511667These two functions are available to convert between the
     
    17461762returns the complete list of defined keys associated with the
    17471763\code{psHash} table as a linked list.
     1764
     1765\begin{verbatim}
     1766psArray *psArrayFromHash(psHash *hash);
     1767\end{verbatim}
     1768This function is available place the data in a \code{psHash} into a
     1769\code{psArray} container.  This function does not free the elements or
     1770destroy the input collection.  Rather, it increments the reference
     1771counter for each of the elements.  The resulting array does not have
     1772any information about the has key values, and the order is not
     1773significant.
    17481774
    17491775\subsection{Lookup Tables}
     
    21202146psHistogram *psVectorHistogram(psHistogram *out,
    21212147                               const psVector *values,
    2122                                const psVector *errors,
     2148                               const psVector *errors,
    21232149                               const psVector *mask,
    21242150                               unsigned int maskVal);
     
    23672393bool psMinimizeLMChi2(psMinimization *min, psImage *covar, psVector *params,
    23682394                      const psVector *paramMask, const psArray *x, const psVector *y,
    2369                       const psVector *yErr, psMinimizeLMChi2Func func);
     2395                      const psVector *yErr, psMinimizeLMChi2Func func);
    23702396\end{verbatim}
    23712397
     
    37383764
    37393765We define an item of metadata with the following structure:
     3766\filbreak
    37403767\begin{verbatim}
    37413768typedef struct {
     
    37673794\code{psMetadataType}:
    37683795%
     3796\filbreak
    37693797\begin{verbatim}
    37703798typedef enum {                          ///< type of item.data is:
     
    38893917\end{verbatim}
    38903918
     3919Several utility functions are provided for simple cases.  These
     3920functions perform the effort of casting the data to the appropriate
     3921type.  The numerical functions shall return 0.0 if their key is not
     3922found.
     3923\begin{verbatim}
     3924void *psMetadataLookupPtr(const psMetadata *md, const char *key);
     3925psS32 psMetadataLookupS32(const psMetadata *md, const char *key);
     3926psF64 psMetadataLookupF64(const psMetadata *md, const char *key);
     3927\end{verbatim}
     3928
    38913929Items may be retrieved from the metadata by their entry position.  The
    38923930value of which specifies the desired entry in the fashion of
     
    40154053
    40164054Here are some examples of lines of a valid configuration file:
     4055\filbreak
    40174056\begin{verbatim}
    40184057Double     F64     1.23456789      # This is a comment
     
    40644103Figure~\ref{fig:metadata}.
    40654104
     4105We further extend \code{psMetadataParseConfig} to allow the definition
     4106of a \code{psMetadata} entry using a sequence of successive lines to
     4107define the values of the \code{psMetadataItem} entries.  The initial
     4108line defines the new \code{psMetadata} entry and its name.  The
     4109following lines have the same format as the other metadata config file
     4110entries.  The sequence is terminated with a line with a single word
     4111\code{END}.  For example, a metadata entry may be defined as:
     4112\begin{verbatim}
     4113CELL      METADATA
     4114 EXTNAME   STR   CCD00
     4115 BIASSEC   STR   BSEC-00
     4116 CHIP      STR   CHIP.00
     4117 NCELL     S32   24
     4118END
     4119\end{verbatim}
     4120
    40664121A BNF-like grammar of the configuration file is contained in
    40674122\S\ref{sec:configgrammar}.
     
    41514206
    41524207\begin{verbatim}
    4153 psHash *psFitsReadHeaderSet (psFits *fits);
     4208psMetadata *psFitsReadHeaderSet (psFits *fits);
    41544209\end{verbatim}
    41554210Load a complete set of headers from the \code{psFits} file pointer.
Note: See TracChangeset for help on using the changeset viewer.