IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1706


Ignore:
Timestamp:
Sep 7, 2004, 1:23:02 PM (22 years ago)
Author:
Paul Price
Message:

Minor changes.

File:
1 edited

Legend:

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

    r1693 r1706  
    1 %%% $Id: psLibSDRS.tex,v 1.109 2004-09-07 00:52:16 eugene Exp $
     1%%% $Id: psLibSDRS.tex,v 1.110 2004-09-07 23:23:02 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    3535   &             & (modified polynomials), ImageTrim for Phase 2. \\
    3636   &             & Changed minimization. \\ \hline
     3704-- & Various   & See Appendix A for a change log. \\ \hline
    3738\RevisionsEnd
    3839
     
    174175\begin{itemize}
    175176\item Set the error codes for PSLib.
     177\item Seed the random number generator.
    176178\end{itemize}
    177179
    178180The prototype is:
    179181\begin{verbatim}
    180 void psLibInit(void)
    181 \end{verbatim}
     182void psLibInit(bool predictable);
     183\end{verbatim}
     184
     185If \code{predictable} is \code{true}, then the random number generator
     186shall be seeded with a value that does not vary (allowing bugs relying
     187on random numbers to be reproduced); otherwise, the random number
     188generator shall be seeded from \code{/dev/random} if it exists,
     189otherwise from the system clock.
    182190
    183191
     
    26002608
    26012609\begin{verbatim}
    2602 psC64 psImagePixelInterpolate (const psImage *input, float x, float y,
    2603                                psC64 unexposedValue, psImageInterpolateMode mode);
     2610psC64 psImagePixelInterpolate(const psImage *input, float x, float y,
     2611                              const psImage *mask, unsigned int maskVal,
     2612                              psC64 unexposedValue, psImageInterpolateMode mode);
    26042613\end{verbatim}
    26052614Perform interpolation of image pixel values to the given fractional
    26062615coordinate \code{x,y}.  The function returns the interpolated value of
    26072616the image at the given fractional pixel coordinates, based on the
    2608 specified interpolation \code{mode}.  This function will likely be
    2609 implemented as a macro for processing speed.  It may also be necessary
    2610 to define a setup macro which pre-calculates certain values which
    2611 would be reused in a loop.
     2617specified interpolation \code{mode}.  The \code{mask} allows pixels to
     2618be excluded if their corresponding mask pixel value matches the value
     2619of \code{maskVal}.  This function will likely be implemented as a
     2620macro for processing speed.  It may also be necessary to define a
     2621setup macro which pre-calculates certain values which would be reused
     2622in a loop.
    26122623
    26132624\subsubsection{Image I/O Functions}
     
    26512662existing image starting at the coordinate x,y,z.  If any of these
    26522663parameters implies writing pixels outside the existing data area of
    2653 the image, return an error (ie, if x + image.nx >= NAXIS1, y +
    2654 image.ny >= NAXIS2, or z >= NAXIS3).  If the image does not exist,
    2655 require x,y,z to be zero.  This function will only write images of the
    2656 native FITS image types (\code{psU8}, \code{psS16}, \code{psS32},
    2657 \code{psF32}, \code{psF64}).  The user is expected to convert the data
    2658 type as needed with \code{psImageCopy}.  The return value must be 0
    2659 for a successful operation and 1 for an error.
     2664the image, return an error (ie, if \code{x + image.nx >= NAXIS1},
     2665\code{y + image.ny >= NAXIS2}, or \code{z >= NAXIS3}).  If the image
     2666does not exist, require x,y,z to be zero.  This function will only
     2667write images of the native FITS image types (\code{psU8},
     2668\code{psS16}, \code{psS32}, \code{psF32}, \code{psF64}).  The user is
     2669expected to convert the data type as needed with \code{psImageCopy}.
     2670The return value must be 0 for a successful operation and 1 for an
     2671error.
    26602672
    26612673\subsubsection{Image Pixel Manipulations}
     
    38393851\end{verbatim}
    38403852
     3853We also require the ability to precess coordinates from one equinox to
     3854another.
     3855
     3856\begin{verbatim}
     3857psSphere *psSpherePrecess(psSphere *coords, const psTime *fromTime, const psTime *toTime);
     3858\end{verbatim}
     3859
     3860Given coordinates, \code{coords}, with equinox for \code{fromTime},
     3861the coordinates are precessed to equinox for \code{toTime}.  The
     3862\code{coords} are modified in-place.  Equinoxes shall be Julian
     3863equinoxes (as opposed to Bessellian).
     3864
    38413865\subsubsection{Projections}
    38423866
     
    39263950
    39273951\subsection{Photometry}
     3952
     3953\tbd{This section is to be deferred, and for now consists only of
     3954placeholders, with no functional items.}
    39283955
    39293956Photometric observations are performed in an instrumental photometric
     
    39954022
    39964023\tbd{These functions are all of low priority, have not yet been
    3997 defined in detail, and are not immediately required.}
     4024defined in detail, and hence are to be deferred.}
    39984025
    39994026\subsubsection{Positions of Major SS Objects}
Note: See TracChangeset for help on using the changeset viewer.