Make a file of new moons over the past 524 years
Make a file of new moons over the past 524 years
Start in January 1502 and end in December 2025. That works out to be 16 of the Mayans’ cycles of 405 synodic months.
In[]:=
newmoons={MoonPhaseDate[DateObject[{1502,1,1}],"NewMoon"]}
Out[]=
In[]:=
n=405*16
Out[]=
6480
In[]:=
For[i=0,i<n,i++,AppendTo[newmoons,MoonPhaseDate[DatePlus[Last[newmoons],1],"NewMoon"]]]
In[]:=
Last[newmoons]
Out[]=
Save the list of new moons to a file so later calculations aren’t delayed by making this list.
In[]:=
Save[FileNameJoin[NotebookDirectory[],"newmoons.wl"],newmoons]