Changeset 1548
- Timestamp:
- Aug 16, 2004, 9:12:54 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibADD.tex (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibADD.tex
r1400 r1548 1 %%% $Id: psLibADD.tex,v 1.2 3 2004-08-06 19:06:36eugene Exp $1 %%% $Id: psLibADD.tex,v 1.24 2004-08-16 19:12:54 eugene Exp $ 2 2 \documentclass[panstarrs]{panstarrs} 3 3 … … 842 842 \subsubsection{Projections} 843 843 844 The following information is from 844 We implement three types of projections, {\em zenithal} and {\em 845 cylindrical} and {\em pseudocylindrical} projections. These three 846 require slightly different handling. Our representations are based on 847 the treatment of projections presented by 845 848 \href{http://www.cv.nrao.edu/fits/documents/wcs/wcs.all.ps}{Greisen \& 846 849 Calabretta (1995, ADASS, 4, 233)}. 847 850 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 853 The {\em zenithal} projections are defined relative to a set of 854 spherical coordinates whose pole is the center of the projection 855 ($\alpha_p, \delta_p$, or \code{psProjection.R, psProjection.D}). In 856 this spherical coordinate system, the coordinate of longitude is 857 labeled $\phi$, and has domain of $-\pi < \phi \le \pi$, while the 858 latitude, measured from the pole, is labeled $\theta$ and has domain 859 $0 \le \theta \le \pi$. 850 860 851 861 For zenithal projections (e.g.\ Gnomonic and Orthographic) the 852 862 following hold: 853 854 \begin{eqnarray} 855 x & = & R \sin (\phi)\\856 y & = & -R \cos (\phi)857 \end{eqnarray} 858 863 % 864 \begin{eqnarray} 865 x & = & R_\theta \sin \phi \\ 866 y & = & -R_\theta \cos \phi 867 \end{eqnarray} 868 % 859 869 and 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} 872 R_\theta & = & \sqrt{x^2 + y^2} \\ 873 \phi & = & {\rm arg} (-y,x) 874 \end{eqnarray} 875 % 876 The coordinates $x,y$ above are defined to be in angular units (ie, 877 radians). The plate scales ($\rho_x, \rho_y$ = \code{psProjection.Xs, 878 psProjection.Ys}) are applied independently to the $x$ and $y$ 879 coordinates to convert them to the corresponding linear units (ie, 880 pixels): 881 % 882 \begin{eqnarray} 883 x_p & = & \rho_x x \\ 884 y_p & = & \rho_y y \\ 885 \end{eqnarray} 886 887 For an arbitrary projection center, it is necessary to convert the 888 spherical coordinates to be projected ($\alpha,\delta$) to the 889 projection spherical coordinate system coordinates ($\phi, \theta$) 890 from which $x,y$ may be calculated using the relationships above, 891 given a prescription for $R_\theta$. In practice, we construct the 892 following 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 % 901 For 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 % 909 From 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 % 916 The necessary relationships for $\phi$ are equivalent for all zenithal projections: 917 % 918 \begin{eqnarray} 919 R_\theta & = & \sqrt{x^2 + y^2} \\ 920 \sin \phi & = & x / R_\theta \\ 921 \cos \phi & = & -y / R_\theta \\ 922 \end{eqnarray} 923 % 924 Note that if $(x,y) = (0,0)$, then $\alpha = \alpha_p, \delta = \delta_p$. 925 926 \subparagraph{Gnomonic} 927 928 The Gnomonic projection (``TAN'') is a zenithal projection with 929 $R_\theta = \cot \theta$. The resulting relationships for $(x,y)$ and 930 for $\sin \theta, \cos \theta$ are: 931 932 \begin{eqnarray} 933 x & = & \frac{\cos \theta \sin \phi}{\sin \theta} \\ 934 y & = & \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 939 where $\zeta = 1 / R_\theta$. 940 941 \subparagraph{Orthographic} 942 943 The Orthographic projection (``SIN'') is a zenithal projection with 944 $R_\theta = \cos \theta$. The resulting relationships for $(x,y)$ and 945 for $\sin \theta, \cos \theta$ are: 946 947 \begin{eqnarray} 948 x & = & \cos \theta \sin \phi \\ 949 y & = & -\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 956 The {\em cylindrical} and {\em pseudocylindrical} projections are 957 defined relative to a set of cylindrical coordinates whose pole is 958 coincident with the pole of the spherical coordinates. These 959 projections are particularly used for full-sky representations, and 960 are only defined for projection centers with $\delta_c = 0$. In this 961 spherical coordinate system, the coordinate of longitude is labeled 962 $\phi$, and has domain of $-\pi < \phi \le \pi$, while the latitude, 963 measured from the pole, is labeled $\theta$ and has domain $0 \le 964 \theta \le \pi$. The projection center longitude, $\alpha_c$ 965 corresponds 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 972 The Cartesian projection (``CAR'') is a very simple cylindrical with 973 the following relationships between $x,y$ and $\phi,\theta$: 887 974 888 975 \begin{eqnarray} … … 891 978 \end{eqnarray} 892 979 893 \ paragraph{Mercator}980 \subparagraph{Mercator} 894 981 895 982 The Mercator projection (``MER'') is a cylindrical projection. … … 897 984 \begin{eqnarray} 898 985 x & = & \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^\circ901 \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)\\986 y & = & \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 992 The Hammer-Aitoff projection is a pseudocylindrical projection, and is defined: 993 994 \begin{eqnarray} 995 x & = & 2 \alpha \cos \theta \sin \frac{\phi}{2} \\ 909 996 y & = & \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)} 911 998 \end{eqnarray} 912 999 … … 914 1001 915 1002 \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 1010 The Parabolic projection (``PAR'') is a pseudocylindrical projection, and is defined: 1011 1012 \begin{eqnarray} 1013 x & = & \phi \left( 2 \cos \frac{2 \theta}{3} - 1 \right) \\ 1014 y & = & \pi \sin \frac{\theta}{3} \\ 1015 \end{eqnarray} 1016 1017 And 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 \\ 919 1023 \end{eqnarray} 920 1024
Note:
See TracChangeset
for help on using the changeset viewer.
