<p>Given the latitude and longitude of a heliographic coordinate, I want to place the point on a CCD image and simulate its motion for a particular duration. Though I am able to track the motion of a point on the Sun, I am unable to place the point at the exact location.</p>

<p>For example, (0,90) should ideally be placed at the right edge of the Sun, but with the current code, it falls outside the image. The issue seems to be in scaling.</p>

<p>Can you please suggest the parameters that I need to take into account while scaling.I have included the plate scale of the CCD, the ratio of the radius of the Sun to the Earth-Sun distance.</p>

<p>The code:</p>

<pre><code>%% plate scale,pixel size = 0.6 arcseconds/pixel
p = 1/0.6

%% Radius of the Sun/Earth-Sun distance
a = 0.0046491838

%% scaling factor, converting it to degrees
s = a*p*3600

%% Central pixels 
xC = 2048;
yC = 2048;

%% latitude and longitude
l = 0
b = -90

x = round((b*s*cos((l*pi)/180))+xC)
y = round((l*s)+yC)
</code></pre>

<p>--> <code>x =-463</code> &amp; <code>y = 2048</code> and hence the point is not getting plotted.</p>

CC BY-SA 3.0
2017-10-21T05:05:58.963Z
yes, they are as expected except for the last two lines,ie the calculation of 's'. I am pretty sure the scaling factor s (s = a*p*3600) is not correct.I need to add something more to it.
amrita
<the-sun><photography><angular-resolution>
Tracking a heliographic coordinate on CCD
amrita
# Tracking a heliographic coordinate on CCD

(Asked by: username_0 on 2017-10-20)

Given the latitude and longitude of a heliographic coordinate, I want to place the point on a CCD image and simulate its motion for a particular duration. Though I am able to track the motion of a point on the Sun, I am unable to place the point at the exact location.
For example, (0,90) should ideally be placed at the right edge of the Sun, but with the current code, it falls outside the image. The issue seems to be in scaling.
Can you please suggest the parameters that I need to take into account while scaling.I have included the plate scale of the CCD, the ratio of the radius of the Sun to the Earth-Sun distance.
The code:
%% plate scale,pixel size = 0.6 arcseconds/pixel
p = 1/0.6

%% Radius of the Sun/Earth-Sun distance
a = 0.0046491838

%% scaling factor, converting it to degrees
s = a*p*3600

%% Central pixels 
xC = 2048;
yC = 2048;

%% latitude and longitude
l = 0
b = -90

x = round((b*s*cos((l*pi)/180))+xC)
y = round((l*s)+yC)

--> x =-463 & y = 2048 and hence the point is not getting plotted.

**Tags:** the-sun, photography, angular-resolution
> **Comments:**
> **username_0**: yes, they are as expected except for the last two lines,ie the calculation of 's'. I am pretty sure the scaling factor s (s = a*p*3600) is not correct.I need to add something more to it.  

---

## 0 answers

