IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2004, 9:12:54 AM (22 years ago)
Author:
eugene
Message:

fixed projection definitions

File:
1 edited

Legend:

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

    r1400 r1548  
    1 %%% $Id: psLibADD.tex,v 1.23 2004-08-06 19:06:36 eugene Exp $
     1%%% $Id: psLibADD.tex,v 1.24 2004-08-16 19:12:54 eugene Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    842842\subsubsection{Projections}
    843843
    844 The following information is from
     844We implement three types of projections, {\em zenithal} and {\em
     845cylindrical} and {\em pseudocylindrical} projections.  These three
     846require slightly different handling.  Our representations are based on
     847the treatment of projections presented by
    845848\href{http://www.cv.nrao.edu/fits/documents/wcs/wcs.all.ps}{Greisen \&
    846849Calabretta (1995, ADASS, 4, 233)}.
    847850
    848 Let the latitude be $\phi$ and the longitude $\theta$.  The domains of
    849 these are $-\pi < \phi \le \pi$ and $-\pi/2 \le \theta \le \pi/2$.
     851\paragraph{Zenithal Projections}
     852
     853The {\em zenithal} projections are defined relative to a set of
     854spherical coordinates whose pole is the center of the projection
     855($\alpha_p, \delta_p$, or \code{psProjection.R, psProjection.D}).  In
     856this spherical coordinate system, the coordinate of longitude is
     857labeled $\phi$, and has domain of $-\pi < \phi \le \pi$, while the
     858latitude, measured from the pole, is labeled $\theta$ and has domain
     859$0 \le \theta \le \pi$.
    850860
    851861For zenithal projections (e.g.\ Gnomonic and Orthographic) the
    852862following hold:
    853 
    854 \begin{eqnarray}
    855 x & = & R \sin (\phi) \\
    856 y & = & -R \cos (\phi)
    857 \end{eqnarray}
    858 
     863%
     864\begin{eqnarray}
     865x & = & R_\theta \sin \phi \\
     866y & = & -R_\theta \cos \phi
     867\end{eqnarray}
     868%
    859869and
    860 
    861 \begin{eqnarray}
    862 R & = & \sqrt{x^2 + y^2} \\
    863 \phi & = & {\rm arg} (-y,x)
    864 \end{eqnarray}
    865 
    866 \paragraph{Gnomonic}
    867 
    868 The Gnomonic projection (``TAN'') is a zenithal projection.
    869 
    870 \begin{eqnarray}
    871 R & = & \cot (\theta) 180^\circ/\pi \\
    872 \theta & = & \arctan (180^\circ/(\pi R))
    873 \end{eqnarray}
    874 
    875 \paragraph{Orthographic}
    876 
    877 The Orthographic projection (``SIN'') is a zenithal projection.
    878 
    879 \begin{eqnarray}
    880 R & = & \cos (\theta) 180^\circ/\pi \\
    881 \theta & = & \arccos (\pi R / 180^\circ)
    882 \end{eqnarray}
    883 
    884 \paragraph{Cartesian}
    885 
    886 The Cartesian projection (``CAR'') is a very simple cylindrical projection.
     870%
     871\begin{eqnarray}
     872R_\theta & = & \sqrt{x^2 + y^2} \\
     873\phi     & = & {\rm arg} (-y,x)
     874\end{eqnarray}
     875%
     876The coordinates $x,y$ above are defined to be in angular units (ie,
     877radians).  The plate scales ($\rho_x, \rho_y$ = \code{psProjection.Xs,
     878psProjection.Ys}) are applied independently to the $x$ and $y$
     879coordinates to convert them to the corresponding linear units (ie,
     880pixels):
     881%
     882\begin{eqnarray}
     883x_p & = & \rho_x x \\
     884y_p & = & \rho_y y \\
     885\end{eqnarray}
     886
     887For an arbitrary projection center, it is necessary to convert the
     888spherical coordinates to be projected ($\alpha,\delta$) to the
     889projection spherical coordinate system coordinates ($\phi, \theta$)
     890from which $x,y$ may be calculated using the relationships above,
     891given a prescription for $R_\theta$.  In practice, we construct the
     892following useful trigonometric relationships between $\phi$ and
     893$\theta$ which may be employed in the equations of $x,y$ above:
     894%
     895\begin{eqnarray}
     896\sin \theta           & = & \sin \delta \sin \delta_p + \cos \delta \cos \delta_p \cos (\alpha - \alpha_p) \\
     897\cos \theta \cos \phi & = & \sin \delta \cos \delta_p - \cos \delta \sin \delta_p \cos (\alpha - \alpha_p) \\
     898\cos \theta \sin \phi & = & - \cos \delta \sin (\alpha - \alpha_p)
     899\end{eqnarray}
     900%
     901For the inverse transformations, the equivalent relationships are:
     902%
     903\begin{eqnarray}
     904\sin \delta                          & = & \sin \theta \sin \delta_p + \cos \theta \cos \delta_p \cos \phi \\
     905\cos \delta \cos (\alpha - \alpha_p) & = & \sin \theta \cos \delta_p - \cos \theta \sin \delta_p \cos \phi \\
     906\cos \delta \sin (\alpha - \alpha_p) & = & - \cos \theta \sin (\phi - \phi_p)
     907\end{eqnarray}
     908%
     909From these relationships, we can calculate $\alpha, \delta$ as:
     910%
     911\begin{eqnarray}
     912\alpha - \alpha_p & = & arg (\sin \alpha, \cos \alpha) \\
     913\delta            & = & arcsin (sin \delta) \\
     914\end{eqnarray}
     915%
     916The necessary relationships for $\phi$ are equivalent for all zenithal projections:
     917%
     918\begin{eqnarray}
     919R_\theta  & = & \sqrt{x^2 + y^2} \\
     920\sin \phi & = & x / R_\theta \\
     921\cos \phi & = & -y / R_\theta \\
     922\end{eqnarray}
     923%
     924Note that if $(x,y) = (0,0)$, then $\alpha = \alpha_p, \delta = \delta_p$.
     925
     926\subparagraph{Gnomonic}
     927
     928The Gnomonic projection (``TAN'') is a zenithal projection with
     929$R_\theta = \cot \theta$.  The resulting relationships for $(x,y)$ and
     930for $\sin \theta, \cos \theta$ are:
     931
     932\begin{eqnarray}
     933x           & = & \frac{\cos \theta \sin \phi}{\sin \theta} \\
     934y           & = & \frac{-\cos \theta \cos \phi}{\sin \theta} \\
     935\sin \theta & = & \zeta / \sqrt (1 + \zeta^2) \\
     936\cos \theta & = & 1 / \sqrt (1 + \zeta^2) \\
     937\end{eqnarray}
     938
     939where $\zeta = 1 / R_\theta$.
     940
     941\subparagraph{Orthographic}
     942
     943The Orthographic projection (``SIN'') is a zenithal projection with
     944$R_\theta = \cos \theta$.  The resulting relationships for $(x,y)$ and
     945for $\sin \theta, \cos \theta$ are:
     946
     947\begin{eqnarray}
     948x           & = & \cos \theta \sin \phi \\
     949y           & = & -\cos \theta \cos \phi \\
     950\sin \theta & = & \sqrt{1 - R_\theta^2} \\
     951\cos \theta & = & R_\theta \\
     952\end{eqnarray}
     953
     954\paragraph{Cylindrical and Pseudocylindrical Projections}
     955
     956The {\em cylindrical} and {\em pseudocylindrical} projections are
     957defined relative to a set of cylindrical coordinates whose pole is
     958coincident with the pole of the spherical coordinates.  These
     959projections are particularly used for full-sky representations, and
     960are only defined for projection centers with $\delta_c = 0$.  In this
     961spherical coordinate system, the coordinate of longitude is labeled
     962$\phi$, and has domain of $-\pi < \phi \le \pi$, while the latitude,
     963measured from the pole, is labeled $\theta$ and has domain $0 \le
     964\theta \le \pi$.  The projection center longitude, $\alpha_c$
     965corresponds to $\phi = 0$, thus the value of $\phi$ is determined as
     966$\alpha - \alpha_c$ for all such projections.  The terms
     967$\alpha_c,\delta_c$ are equivalent to the elements
     968\code{psProjection.R} and \code{psProjection.D}.
     969
     970\subparagraph{Cartesian}
     971
     972The Cartesian projection (``CAR'') is a very simple cylindrical with
     973the following relationships between $x,y$ and $\phi,\theta$:
    887974
    888975\begin{eqnarray}
     
    891978\end{eqnarray}
    892979
    893 \paragraph{Mercator}
     980\subparagraph{Mercator}
    894981
    895982The Mercator projection (``MER'') is a cylindrical projection.
     
    897984\begin{eqnarray}
    898985x & = & \phi \\
    899 y & = & \ln \left( \tan (45^\circ + \theta/2) \right) 180^\circ/\pi \\
    900 {\rm and}\hspace{1cm} \theta & = & 2 \arctan \left( e^{y\pi/180^\circ} \right) - 90^\circ
    901 \end{eqnarray}
    902 
    903 \paragraph{Hammer-Aitoff}
    904 
    905 The Hammer-Aitoff projection is a general projection, and is defined:
    906 
    907 \begin{eqnarray}
    908 x & = & 2 \alpha \cos (\theta) \sin (\phi/2) \\
     986y & = & \ln \left( \tan (\pi/4 + \theta/2) \right) \\
     987{\rm and}\hspace{1cm} \theta & = & 2 \arctan \left( e^y \right) - \pi/2^\circ
     988\end{eqnarray}
     989
     990\subparagraph{Hammer-Aitoff}
     991
     992The Hammer-Aitoff projection is a pseudocylindrical projection, and is defined:
     993
     994\begin{eqnarray}
     995x & = & 2 \alpha \cos \theta \sin \frac{\phi}{2} \\
    909996y & = & \alpha \sin \theta \\
    910 {\rm where}\hspace{1cm} \alpha^{-1} & \equiv & (180^\circ/\pi) \sqrt{\left(1 + \cos (\theta) \cos (\phi/2) \right) / 2}
     997{\rm where}\hspace{1cm} \alpha^{-1} & \equiv & \sqrt{\frac{1}{2}\left(1 + \cos \theta \cos \frac{\phi}{2} \right)}
    911998\end{eqnarray}
    912999
     
    9141001
    9151002\begin{eqnarray}
    916 \phi & = & 2 {\rm arg} (2z^2 - 1, xz \pi/360^\circ) \\
    917 \theta & = & \arcsin (yz\pi/180^\circ) \\
    918 {\rm where}\hspace{1cm} z & \equiv & \sqrt{1 - (x\pi/720^\circ)^2 - (y\pi/360^\circ)^2}
     1003\phi & = & 2 {\rm arg} (2z^2 - 1, x z) \\
     1004\theta & = & \arcsin (yz) \\
     1005{\rm where}\hspace{1cm} z & \equiv & \sqrt{1 - (x/2)^2 - y^2}
     1006\end{eqnarray}
     1007
     1008\subparagraph{Parabolic}
     1009
     1010The Parabolic projection (``PAR'') is a pseudocylindrical projection, and is defined:
     1011
     1012\begin{eqnarray}
     1013x & = & \phi \left( 2 \cos \frac{2 \theta}{3} - 1 \right) \\
     1014y & = & \pi \sin \frac{\theta}{3} \\
     1015\end{eqnarray}
     1016
     1017And in reverse:
     1018
     1019\begin{eqnarray}
     1020\theta & = & 3 \sin^{-1} \rho \\
     1021\phi   & = & \frac{x}{1 - 4\rho^2} \\
     1022{\rm where}\hspace{1cm} \rho & \equiv & y/\pi \\
    9191023\end{eqnarray}
    9201024
Note: See TracChangeset for help on using the changeset viewer.