Fortran program for solar RA/declination and lunar phase

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
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.
 
Astronomy news 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.