RA and declination of Sun & phase of Moon program

Jadaav
Messages
175
Reaction score
1
Hello there,

I want to write a fortran program which gives me the right ascension and declination of the sun and the phase of the moon when a date and time is given.

I just want to know how to write it and if there are any references that can help me.

Thanks,
Jadaav.
 
on Phys.org
Jan Meeus wrote several small books on Astronomic calculations for everyone. The first book was based on using desktop calculators, later on he provided another with algorithms.

Astronomical Formulae for Calculators
Astronomical Algorithms

Basically you want the algorithm used to determine when sunrise will occur at a given latitude, longitude, and date. This can be simplified to solve for the position of the sun at a given epoch time, i.e., see https://en.wikipedia.org/wiki/Julian_day.

Phases of the moon is the both books, too. You have to make epoch corrections to match the current ephemeris, just like above.
 
  • Like
Likes   Reactions: Jadaav
Thanks Jim. I've taken a look at the second book and it seems to be really interesting. I've found what I was looking for.

I'll try to do the programming bit and I'll you know.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K