Документ взят из кэша поисковой машины. Адрес оригинального документа : http://xmm.vilspa.esa.es/sas/8.0.0/doc/ssclib/node119.html
Дата изменения: Wed Jul 2 03:52:41 2008
Дата индексирования: Fri Sep 5 19:38:02 2008
Кодировка:

Поисковые слова: enceladus
Generating a set of points along an ellipse locus XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


ssclib (ssclib-3.33.4) [xmmsas_20080701_1801-8.0.0]

Is a given point Routines which deal with EllipseT structure definition Home Index

Meta Index / Home Page / Routines which deal with

Generating a set of points along an ellipse locus

  subroutine calcEllipseFromAngle(xSemi, ySemi, angleDeg, xVals, yVals)
    real(single), intent(in)  :: xSemi, ySemi, angleDeg
    real(single), intent(out) :: xVals(:), yVals(size(xVals))
  end subroutine calcEllipseFromAngle

Equation 2 can be decomposed into the following pair of parametric equations in $theta$:


\begin{displaymath}
x = R_x \cos(\theta)
\end{displaymath}


\begin{displaymath}
y = R_y \sin(\theta).
\end{displaymath}

$theta$ here plays the same role as in equations 3 and 4. The subroutine returns points evenly distributed in $theta$.

The matching `phase'-style subroutine is

  subroutine calcEllipseFromPhase(xAmp, yAmp, phase, xVals, yVals)
    real(single), intent(in)  :: xAmp, yAmp, phase
    real(single), intent(out) :: xVals(:), yVals(size(xVals))
  end subroutine calcEllipseFromPhase

Again the point coordinates returned in xVals and yVals are distributed evenly in $theta$.



XMM-Newton SOC/SSC -- 2008-07-01