script or function for moon phase and position with time, lat and lon as inputs

4 visualizaciones (últimos 30 días)
Hi, I am looking for a script or function for moon phase and position with time, lat and lon as inputs. I had a a quick look on FEx and couldn't see anything that easily fits. Anyone aware of any matlab code or other that I can easily call for this information?
  1 comentario
Dereje
Dereje el 13 de Sept. de 2025
Movida: Walter Roberson el 14 de Sept. de 2025

Please I want the full diagram when the moon is rotating around the earth

Iniciar sesión para comentar.

Respuesta aceptada

Meysam Mahooti
Meysam Mahooti el 26 de Ag. de 2017
Editada: Meysam Mahooti el 30 de Dic. de 2018

Más respuestas (2)

Matthias Walle
Matthias Walle el 6 de Oct. de 2016
Editada: Walter Roberson el 14 de Sept. de 2025
Hi,
Have you seen the Moon Phases File by Meysam Mahooti? https://de.mathworks.com/matlabcentral/fileexchange/55270-moon-phases
It already calculates the Moon Phases for any given Year. I am not sure why you need the lon and lat inputs since the lunar phases (new moon, full moon, etc) only depend on the position of the earth moon and sun. They don't depend where you are on earth. It just affects the angle from which you see the moon. Of course that might make a difference but I am sure you could add this to the calculation.
I hope this helped,
Matthias

Liviu Ivanescu
Liviu Ivanescu el 5 de Ag. de 2019
I also need Moon azimuth and elevation position with time, lat and lon as inputs! We don't need that for phase calculation, but just to know where the Moon is. I tried the link:
but that gives the 3D carthesian position of the Moon. It dosn't give Moon azimuth and elevation for a given location on Earth.

Categorías

Más información sobre Earth and Planetary Science en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by