Predicting the Location of a Star Within an Image

  • Context: Graduate 
  • Thread starter Thread starter tentheory
  • Start date Start date
  • Tags Tags
    Image Star
Click For Summary
SUMMARY

This discussion focuses on converting celestial coordinates of stars into pixel coordinates for a spacecraft camera using gnomonic projection. The user has successfully filtered a star catalog based on the camera's right ascension and declination but struggles with the transformation to pixel coordinates. The formulas provided for tangent plane coordinates and pixel coordinates are X = (cos(dec)*sin(ra - ra0)) / (sin(dec)*sin(dec0) + cos(dec)*cos(dec0)*cos(ra - ra0)) and Y = (sin(dec)*cos(dec0) - cos(dec)*sin(dec0)*cos(ra - ra0)) for tangent plane, followed by x = f * (X/p) + x0 and y = f * (Y/p) + y0 for pixel coordinates. The user reports obtaining nonsensical pixel values, indicating a potential error in the calculations.

PREREQUISITES
  • Understanding of celestial coordinates, specifically right ascension and declination.
  • Familiarity with gnomonic projection and its mathematical applications.
  • Knowledge of camera specifications, including focal length and pixel dimensions.
  • Basic skills in coordinate transformations and trigonometric functions.
NEXT STEPS
  • Review the gnomonic projection and its application in astrometry.
  • Investigate common pitfalls in coordinate transformations, particularly in astronomy.
  • Examine the relationship between focal length, pixel dimensions, and image scaling.
  • Explore debugging techniques for mathematical calculations in programming environments.
USEFUL FOR

Astronomers, astrophysics students, and software developers working on astronomical imaging systems will benefit from this discussion, particularly those involved in star cataloging and image processing.

tentheory
Messages
1
Reaction score
0
Hi,

I'm attempting to determine the approximate pixel coordinates of cataloged stars within the field of view of a spacecraft camera.

I'm given the right ascension and declination of the center of the camera field of view and its dimensions. I've used that information to filter a star catalog in order to determine which stars should appear in the image.

I'm having difficulty converting the right ascension and declination of the stars predicted to appear in the field of view into pixel coordinates.

I'm using a gnomonic projection to go from celestial coordinates to tangent plane coordinates, described in section 4.3 of this link:http://ugastro.berkeley.edu/infrared10/astrometry/lab3-v3.pdf"

X = (cos(dec)*sin(ra - ra0)) / (sin(dec)*sin(dec0) + cos(dec)*cos(dec0)*cos(ra - ra0))
Y = (sin(dec)*cos(dec0) - cos(dec)*sin(dec0)*cos(ra - ra0)) / (sin(dec)*sin(dec0) + cos(dec)*cos(dec0)*cos(ra - ra0))

where X and Y are tangent plane coordinates, ra0 and dec0 are the right ascension and declination of the center of the camera's field of view and ra and dec are the right ascension and declination of the star.

and then the following transformation from tangent plane to pixel coordinates:

x = f * (X/p) + x0;
y = f * (Y/p) + y0;

where x and y are pixel coordinates, f is the camera focal length, p is the pixel dimension (assuming the pixels are square) and (x0, y0) is the location of the center pixel. In my case, f is 2619mm and p is 0.52mm, and (x0,y0) is (128,128). The detector is 256x256.

When I calculate the pixel coordinates, I'm getting results on the order of 103, which clearly does not make sense. Any advice would be much appreciated.
 
Last edited by a moderator:
Astronomy news on Phys.org

Similar threads

Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 5 ·
Replies
5
Views
17K
Replies
3
Views
3K
  • · Replies 34 ·
2
Replies
34
Views
14K