Документ взят из кэша поисковой машины. Адрес оригинального документа : http://xmm.vilspa.esa.es/sas/7.1.0/doc/ssclib/node119.html
Дата изменения: Mon Jul 9 01:26:56 2007
Дата индексирования: Sat Dec 22 09:49:19 2007
Кодировка:

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


ssclib (ssclib-3.29.3) [xmmsas_20070708_1801-7.1.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 -- 2007-07-08