Changeset 3069 for trunk/doc/pslib/psLibSDRS_Astrom.tex
- Timestamp:
- Jan 19, 2005, 10:26:04 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS_Astrom.tex (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS_Astrom.tex
r2502 r3069 694 694 \end{verbatim} 695 695 Calculate 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 702 The FITS World Coordinate System (WCS) headers are commonly employed 703 with astronomical images in order to relate pixels to celestial (or 704 otherwise) coordinates. Since it is a FITS standard, we must be able 705 to read and write from WCS into our internal format. For the time 706 being, we will consider only celestial WCS (i.e., no spectral 707 wavelength calibrations, etc). Because WCS does not support the 708 multiple layers that we have built for \PS{}, we will use a simple 709 internal representation: a transformation, which handles any 710 distortions (i.e., goes directly from the coordinate frame of the 711 image to the tangent plane); and the projection. 712 713 The FITS WCS standard is described in Calabretta \& Greisen, A\&A, 714 2002, 395, 1077. An extension to the standard, the TNX projection, is 715 described at \url{http://iraf.noao.edu/projects/ccdmosaic/tnx.html}. 716 This extension is in widespread use and must also be supported for 717 both reading and writing. 718 719 \begin{verbatim} 720 bool psAstrometryReadWCS(psPlaneTransform **transform, // Output transformation 721 psProjection **projection, // Output projection 722 psMetadata *header // Input FITS header 723 ); 724 bool psAstrometryWriteWCS(psMetadata *header, // Output FITS header 725 psPlaneTransform *transform, // Input transformation 726 psProjection *projection // Input projection 727 ); 728 bool 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}, 735 returning new instances of the \code{transform} and \code{projection} 736 that represent the WCS. The function shall return \code{true} if it 737 was able to successfully generate the outputs; otherwise it shall 738 return \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 743 able to successfully generate the output; otherwise it shall return 744 \code{false}. 745 746 \code{pmSimplifyAstrometry} shall take a \code{cell} and simplify the 747 internal 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 752 multi-layered \PS{} internal astrometric representation. The function 753 shall return \code{true} if it was able to successfully generate the 754 output; otherwise it shall return \code{false}. 755
Note:
See TracChangeset
for help on using the changeset viewer.
