IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2005, 10:45:01 AM (21 years ago)
Author:
Paul Price
Message:

Adding more functions that have been already implemented

File:
1 edited

Legend:

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

    r3954 r3958  
    1 %%% $Id: psLibSDRS.tex,v 1.224 2005-05-17 04:06:00 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.225 2005-05-18 20:45:01 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    14931493\begin{verbatim}
    14941494psImage *psImageAlloc (int width, int height, psElemType type);
    1495 \end{verbatim}
    1496 Create an image of a specified \code{width}, \code{height}, and data
     1495psImage* psImageRecycle(psImage* old, int numCols, int numRows, const psElemType type);
     1496\end{verbatim}
     1497
     1498\code{psImageAlloc} shall create an image of a specified \code{width}, \code{height}, and data
    14971499\code{type}.  This function must allow any of the valid image data
    14981500types and not restrict to the valid FITS BITPIX types.  The image
    14991501dimensionality must be 2. 
     1502
     1503\code{psImageRecycle} shall recycle the input \code{old} image, such
     1504that the output \code{psImage} matches the specified size
     1505(\code{numCols}$\times$\code{numRows}) and \code{type}.  In the event
     1506that the input \code{old} image is \code{NULL}, a new \code{psImage}
     1507shall be allocated and returned.
     1508
     1509\begin{verbatim}
     1510int psImageFreeChildren(psImage* image);
     1511\end{verbatim}
     1512
     1513\code{psImageFreeChildren} shall free all child images of the given
     1514\code{image}.
    15001515
    15011516\subsection{Math Casting}
     
    27162731region in the form \code{[x0:x1,y0:y1]}, used for header entries such
    27172732as \code{BIASSEC}, into the corresponding \code{psRegion} structure.
    2718 
    2719 \begin{verbatim}
    2720 psRegion psRegionSet (float x0, float x1, float y0, float y1);
    2721 psRegion psRegionFromString (char *region);
     2733We also define a function that converts a \code{psRegion} to the
     2734corresponding IRAF description.
     2735
     2736\begin{verbatim}
     2737psRegion psRegionSet(float x0, float x1, float y0, float y1);
     2738psRegion psRegionFromString(const char *region);
     2739char *psRegionToString(const psRegion region);
    27222740\end{verbatim}
    27232741
     
    46374655
    46384656Gets the current HDU's type (table or image).
     4657
     4658\begin{verbatim}
     4659char *psFitsGetExtName(const psFits* fits);
     4660bool psFitsSetExtName(const psFits* fits, const char* name);
     4661\end{verbatim}
     4662
     4663\code{psFitsGetExtName} shall return the name of the current extension
     4664for the given \code{fits} file (as specified by the \code{EXTNAME}
     4665header).  \code{psFitsSetExtName} shall change the name of the current
     4666extension for the given \code{fits} file to \code{name}, returning
     4667\code{true} upon success and \code{false} otherwise.
    46394668
    46404669\subsubsection{FITS Header I/O Functions}
Note: See TracChangeset for help on using the changeset viewer.