Predicting the Location of a Star Within an Image

  • Thread starter Thread starter tentheory
  • Start date Start date
  • Tags Tags
    Image Star
AI Thread Summary
The discussion focuses on converting the right ascension and declination of cataloged stars into pixel coordinates for a spacecraft camera using a gnomonic projection. The user has successfully filtered a star catalog based on the camera's field of view but struggles with the conversion process, resulting in nonsensical pixel coordinates. They provide the formulas used for transforming celestial coordinates to tangent plane coordinates and then to pixel coordinates, including specific values for focal length and pixel dimensions. Despite following the mathematical approach, the calculated pixel coordinates are incorrect, indicating a potential error in the conversion process. Assistance is requested to resolve the issue and achieve accurate pixel coordinate results.
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
Publication: Redox-driven mineral and organic associations in Jezero Crater, Mars Article: NASA Says Mars Rover Discovered Potential Biosignature Last Year Press conference The ~100 authors don't find a good way this could have formed without life, but also can't rule it out. Now that they have shared their findings with the larger community someone else might find an explanation - or maybe it was actually made by life.
TL;DR Summary: In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect alien signals, it will further expand the radius of the so-called silence (or rather, radio silence) of the Universe. Is there any sense in this or is blissful ignorance better? In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect...
Thread 'Could gamma-ray bursts have an intragalactic origin?'
This is indirectly evidenced by a map of the distribution of gamma-ray bursts in the night sky, made in the form of an elongated globe. And also the weakening of gamma radiation by the disk and the center of the Milky Way, which leads to anisotropy in the possibilities of observing gamma-ray bursts. My line of reasoning is as follows: 1. Gamma radiation should be absorbed to some extent by dust and other components of the interstellar medium. As a result, with an extragalactic origin, fewer...
Back
Top