Sources in FOV
From Tauwiki
[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
- Read Catalog.
- Catalog should have three columns (ra, dec, flux)
- Convert ra, dec into x and y
- x = cos(ra) * cos(dec)
- y = sin(ra) * cos(dec)
- z = sin(dec)
- Read position of FOV
- Calculate x, y, z of FOV as outlined above.
- Read size of FOV = PHI
- Calculate angle between source and FOV using cosine rule
- cos(theta) = xs*xf + ys*yf + zs*zf
where the subscript s indicates source position and the subscript f indicates that of the FOV.
- if cos(theta) > cos(PHI) then the source is in the FOV
- Report on sources
- Total flux in FOV
- Sources in FOV.
- Build nice interface.
- Reporting options.
- Ability to enter a number of FOV locations.
- Read from different catalogs.
