Changeset 1693 for trunk/doc/pslib/psLibADD.tex
- Timestamp:
- Sep 6, 2004, 2:52:16 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibADD.tex (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibADD.tex
r1689 r1693 1 %%% $Id: psLibADD.tex,v 1.3 7 2004-09-03 21:05:42 price Exp $1 %%% $Id: psLibADD.tex,v 1.38 2004-09-07 00:52:16 eugene Exp $ 2 2 \documentclass[panstarrs]{panstarrs} 3 3 … … 1065 1065 (5,5). 1066 1066 1067 \subparagraph{ BilinearInterpolation ({\tt PS\_RESAMPLE\_SINC})}1068 1069 \subparagraph{ BilinearInterpolation ({\tt PS\_RESAMPLE\_LAGRANGE})}1067 \subparagraph{Sinc Interpolation ({\tt PS\_RESAMPLE\_SINC})} 1068 1069 \subparagraph{Lagrange Interpolation ({\tt PS\_RESAMPLE\_LAGRANGE})} 1070 1070 1071 1071 \paragraph{Image Cuts and Slices} … … 1109 1109 sum is renormalized by the ratio (12.57/16.00). 1110 1110 1111 \subparagraph{Radial Cuts} 1112 1113 Consider an image with pixels $x_i,y_i$ and a reference coordinate 1114 $x_c, y_c$. We want to construct a radial cut by measuring statistics 1115 for pixels in a sequence of radial annulii $r_s < r < r_e$. For each 1116 annulus, we need to select the pixels which fall within this annulus. 1117 The coordinates of the center of pixel $i,j$ are $i+0.5,j+0.5$. A 1118 given pixel has a distance from the reference coordinate of $dX = x_c 1119 - i - 0.5, dY = y_c - j - 0.5$. The pixels to be used for a given 1120 radial annulus are all of those pixels for which $r_s < \sqrt{dX^2 + 1121 dY^2} < r_e$. This is more efficiently calculated by comparing the 1122 square of the radii and distances. All pixels which satisfy the above 1123 condition are included in a specific annular radius. All average 1124 quantities are calculated directly from the pixel ensemble 1125 statistics. 1126 1127 \subparagraph{Arbitrary Linear Cuts} 1128 1129 Select the pixels which lie along a line following steps of 1 pixel 1130 length: 1131 1132 \begin{verbatim} 1133 1134 dX = xe - xs; 1135 dY = ye - ys; 1136 L = hypot (dX, dY); 1137 dX = dX / L; 1138 dY = dY / L; 1139 1140 REALLOCATE (xvec[0].elements, float, MAX (L, 1)); 1141 REALLOCATE (yvec[0].elements, float, MAX (L, 1)); 1142 xvec[0].Nelements = L; 1143 yvec[0].Nelements = L; 1144 1145 V = (float *)buf[0].matrix.buffer; 1146 for (i = 0; i < L; i++) { 1147 xi = xs + i*dX - 0.5; 1148 yi = ys + i*dY - 0.5; 1149 xvec[0].elements[i] = i; 1150 yvec[0].elements[i] = V[xi + Nx*yi]; 1151 } 1152 \end{verbatim} 1153 1111 1154 \paragraph{Image Rotation} 1112 1155 … … 1157 1200 % 1158 1201 \begin{eqnarray} 1159 \sin \theta =\sin \delta \cos \delta_p - \cos \delta \sin \delta_p \sin (\alpha - \alpha_p)1160 \cos \theta \sin (\phi - \phi_p) =\cos \delta \cos \delta_p \sin (\alpha - \alpha_p) + \sin \delta \sin \delta_p1161 \cos \theta \cos (\phi - \phi_p) =\cos \delta \cos (\alpha - \alpha_p)1202 \sin \theta & = & \sin \delta \cos \delta_p - \cos \delta \sin \delta_p \sin (\alpha - \alpha_p) 1203 \cos \theta \sin (\phi - \phi_p) & = & \cos \delta \cos \delta_p \sin (\alpha - \alpha_p) + \sin \delta \sin \delta_p 1204 \cos \theta \cos (\phi - \phi_p) & = & \cos \delta \cos (\alpha - \alpha_p) 1162 1205 \end{eqnarray} 1163 1206 % … … 1403 1446 \subsubsection{Offset} 1404 1447 1405 Coordinate offsets can either spherical offsets or linear offsets.1448 Coordinate offsets can be either spherical offsets or linear offsets. 1406 1449 1407 1450 A spherical offset is performed by adding the components of the … … 1542 1585 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1543 1586 1544 \subsubsection{Offsets} 1545 1546 \tbd{write down Offset calculation (from Bugzilla)} 1547 \tbd{define RadialCut} 1548 \tbd{define ImageCut} 1549 \tbd{define SINC, BICUBIC interpolation} 1587 \subsubsection{Missing and Todo} 1588 1589 \tbd{define SINC, LAGRANGE interpolation} 1590 1550 1591 \tbd{define sunrise, sunset, sun position} 1592 1551 1593 \tbd{define moonrise, moonset, moon position, moon phase} 1594 1552 1595 \tbd{define planet functions} 1553 \tbd{clean up psProjections} 1596 1554 1597 \tbd{clean up FITS I/O issues} 1598 1555 1599 \tbd{define Brent's method \& minimization bracketing} 1556 1600
Note:
See TracChangeset
for help on using the changeset viewer.
