Sources in FOV

From Tauwiki

Jump to: navigation, search

[edit] Purpose

This tool will find all the sources within a given field of view and print out the total flux. At this point only the algorithm is here.

[edit] Algorithm

  1. Read Catalog.
    1. Catalog should have three columns (ra, dec, flux)
  2. Convert ra, dec into x and y
    1. x = cos(ra) * cos(dec)
    2. y = sin(ra) * cos(dec)
    3. z = sin(dec)
  3. Read position of FOV
    1. Calculate x, y, z of FOV as outlined above.
  4. Read size of FOV = PHI
  5. Calculate angle between source and FOV using cosine rule
    1. cos(theta) = xs*xf + ys*yf + zs*zf

where the subscript s indicates source position and the subscript f indicates that of the FOV.

    1. if cos(theta) > cos(PHI) then the source is in the FOV
  1. Report on sources
    1. Total flux in FOV
    2. Sources in FOV.
  2. Build nice interface.
    1. Reporting options.
    2. Ability to enter a number of FOV locations.
    3. Read from different catalogs.
CSS 2.1 Xhtml 1.0 Last Modified: February 22, 2007 GooglePagerank