IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 19, 2005, 10:26:04 PM (22 years ago)
Author:
Paul Price
Message:

Additions for Cycle 5:
Added psPlaneTransformInvert, psPlaneTransformCombine and psPlaneTransformFit.
Added psAstrometryReadWCS, psAstrometryWriteWCS, and psAstrometrySimplify.
Added additional modes to psImageInterpolateMode to deal with variances:

PS_INTERPOLATE_BILINEAR_VARIANCE, PS_INTERPOLATE_BICUBIC_VARIANCE, PS_INTERPOLATE_SINC_VARIANCE.

Added psImageTransform.

File:
1 edited

Legend:

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

    r2502 r3069  
    694694\end{verbatim}
    695695Calculate the parallax factor for the given exposure.  \tbd{Why do we need this?}.
     696
     697
     698%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     699
     700\subsection{Astrometry and World Coordinate System}
     701
     702The FITS World Coordinate System (WCS) headers are commonly employed
     703with astronomical images in order to relate pixels to celestial (or
     704otherwise) coordinates.  Since it is a FITS standard, we must be able
     705to read and write from WCS into our internal format.  For the time
     706being, we will consider only celestial WCS (i.e., no spectral
     707wavelength calibrations, etc).  Because WCS does not support the
     708multiple layers that we have built for \PS{}, we will use a simple
     709internal representation: a transformation, which handles any
     710distortions (i.e., goes directly from the coordinate frame of the
     711image to the tangent plane); and the projection.
     712
     713The FITS WCS standard is described in Calabretta \& Greisen, A\&A,
     7142002, 395, 1077.  An extension to the standard, the TNX projection, is
     715described at \url{http://iraf.noao.edu/projects/ccdmosaic/tnx.html}.
     716This extension is in widespread use and must also be supported for
     717both reading and writing.
     718
     719\begin{verbatim}
     720bool psAstrometryReadWCS(psPlaneTransform **transform, // Output transformation
     721                         psProjection **projection, // Output projection
     722                         psMetadata *header // Input FITS header
     723                         );
     724bool psAstrometryWriteWCS(psMetadata *header, // Output FITS header
     725                          psPlaneTransform *transform, // Input transformation
     726                          psProjection *projection // Input projection
     727                          );
     728bool psAstrometrySimplify(psPlaneTransform **transform, // Output transformation
     729                          psProjection **projection, // Output projection
     730                          psCell *cell // Cell for which to generate transform and projection
     731                          );
     732\end{verbatim}                 
     733
     734\code{pmReadAstrometry} shall parse the specified FITS \code{header},
     735returning new instances of the \code{transform} and \code{projection}
     736that represent the WCS.  The function shall return \code{true} if it
     737was able to successfully generate the outputs; otherwise it shall
     738return \code{false}.
     739
     740\code{pmWriteAstrometry} shall add WCS keywords to the supplied FITS
     741\code{header} that implement the given \code{transform} and
     742\code{projection}.  The function shall return \code{true} if it was
     743able to successfully generate the output; otherwise it shall return
     744\code{false}.
     745
     746\code{pmSimplifyAstrometry} shall take a \code{cell} and simplify the
     747internal astrometric representation (\code{cell->toFPA} or equivalent,
     748\code{cell->parent->parent->toTangentPlane} and
     749\code{cell->parent->parent->grommit}) to a single \code{transform} and
     750\code{projection}.  This allows the subsequent use of
     751\code{pmWriteAstrometry} in the case that we have only the
     752multi-layered \PS{} internal astrometric representation.  The function
     753shall return \code{true} if it was able to successfully generate the
     754output; otherwise it shall return \code{false}.
     755
Note: See TracChangeset for help on using the changeset viewer.