Function Repository Resource:

# MoonPositionPlot3D

Plot the relative positions of the Moon and Earth in 3D, illuminated by the Sun

Contributed by: Jeff Bryant
 ResourceFunction["MoonPositionPlot3D"][] plot the current relative positions of the Moon and Earth in 3D. ResourceFunction["MoonPositionPlot3D"][date] plot the relative positions of the Moon and Earth in 3D on the specified date.

## Details and Options

Relative distances and sizes are scaled by default for optimal viewing and illustrative purposes.
ResourceFunction["MoonPositionPlot3D"] takes the same options as Graphics3D, with the following additions and changes:
 Background Black background color for the plot BoxStyle Opacity[0] style specifications for the box PlotRange 10 range of values to include in Earth radii SphericalRegion True whether to make the circumscribing sphere fit in the final display area ViewAngle Pi/10 angle of the field of view ViewPoint Above viewing position "LunarDistance" 5 lunar distance in Earth radii "LunarRadius" .5 lunar radius in Earth radii "ShowEarthShadow" False show Earth shadow "ShowSubLunarPoint" False show sublunar point "ShowSubSolarPoint" False show subsolar point "ShowSunArrows" True show Sun arrows "SubLunarPointStyle" Directive[White,PointSize[.02]] sublunar point style "SubSolarPointStyle" Directive[Opacity[.5,Yellow,PointSize[.02]] subsolar point style "SunArrowStyle" Directive[Opacity[.5,Yellow] Sun arrow style

## Examples

### Basic Examples (2)

Plot the current relative positions of the Moon and Earth:

 In[1]:=
 Out[1]=

Plot the relative position of the Moon and Earth on a specified date:

 In[2]:=
 Out[2]=

### Scope (1)

View the relative positions of the Moon and Earth as seen from different viewpoints:

 In[3]:=
 In[4]:=
 Out[4]=

### Options (4)

Change the background and arrow colors:

 In[5]:=
 Out[5]=

View a full moon from the front:

 In[6]:=
 Out[6]=

View a full moon from the back:

 In[7]:=
 Out[7]=

Show the subsolar and sublunar points on the Earth:

 In[8]:=
 Out[8]=

Zoom in to see the subsolar and sublunar points in more detail:

 In[9]:=
 Out[9]=

Show the shadow of the Earth during a lunar eclipse:

 In[10]:=
 Out[10]=

Adjust scaling factors for a more realistic representation:

 In[11]:=
 Out[11]=

### Properties and Relations (1)

Use MoonPhase to associate the view from Earth with the 3D orientation:

 In[12]:=
 Out[12]=

### Possible Issues (1)

Time of day affects the orientation of the scene as the Earth rotates:

 In[13]:=
 Out[13]=

## Version History

• 1.0.1 – 10 February 2021
• 1.0.0 – 08 February 2021