File:Moon trajectory1.svg

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

原始文件(SVG文件,尺寸为1,600 × 223像素,文件大小:2 KB)


摘要

描述
English: Section of the EarthMoon system's trajectory around the Sun in proper scale.

 orbital path of the Earth
 orbital path of the Moon

Español: Un diagrama que ilustra la coórbita de la Luna con la Tierra.
Used parameters

import numpy as np import matplotlib.pyplot as plt rEM = 38 # SVG pixel per |Earth-Moon|; we're going to round to int. rSE = rEM*389.168 # pixel per |Sun-Earth| n = 10 # polygon segments per quarter month; with cubic splines, n = 1 would probably suffice. p = 12.4 # synodic months per year; 4*n*p segments per year. θ = 2*np.pi*np.arange(-n-1, 3*n)/(4*n*p) # one month xE = rSE*np.sin(θ) yE =-rSE*np.cos(θ) xM = rSE*np.sin(θ) + rEM*(np.sin(p*θ)*np.cos(θ) + np.cos(p*θ)*np.sin(θ)) # Rotate rM vector by Earth's arc angle. yM =-rSE*np.cos(θ) - rEM*(np.cos(p*θ)*np.cos(θ) - np.sin(p*θ)*np.sin(θ)) fig, ax = plt.subplots(figsize=(19,2.5)) ax.plot(xE, yE, 'b-', linewidth=.5) ax.plot(xM, yM, 'k-') ax.plot(xE[1::n], yE[1::n], 'bo', markersize=5) ax.plot(xM[1::n], yM[1::n], 'ko', markersize=2) fig.tight_layout() fig.show() xE = xE.astype(int) yE = yE.astype(int) xM = xM.astype(int) yM = yM.astype(int) rM = 8; rE = 20 # radii, not to scale (would be 0.17 and 0.63) open('out.svg', 'w').write(f<?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" width="1600" height="{1600*(rSE+rEM+rM+yM[-1])/(xE[-1]-xE[0])}" viewBox="{xE[0]} {-(rSE+rEM+rM)} {xE[-1]-xE[0]} {rSE+rEM+rM+yM[-1]}"> <defs> <marker id="E" overflow="visible"><circle r="{rE}" fill="blue"/></marker> <marker id="M" overflow="visible"><circle r="{rM}" fill="black"/></marker> </defs> <path fill="none" stroke="blue" stroke-width="2" d="M{'L'.join([x+' '+y for x,y in zip(xE.astype(str), yE.astype(str))])}"/> <path fill="none" stroke="black" stroke-width="4" d="M{'L'.join([x+' '+y for x,y in zip(xM.astype(str), yM.astype(str))])}"/> <path fill="none" stroke="none" marker-start="url(#M)" marker-mid="url(#M)" marker-end="url(#M)" d="M{'L'.join([x+' '+y for x,y in zip(xM[1::n].astype(str), yM[1::n].astype(str))])}"/> <path fill="none" stroke="none" marker-start="url(#E)" marker-mid="url(#E)" marker-end="url(#E)" d="M{'L'.join([x+' '+y for x,y in zip(xE[1::n].astype(str), yE[1::n].astype(str))])}"/> </svg>

)
日期
来源 自己的作品
作者 de:User:Rainald62

许可协议

Public domain 我,本作品著作权人,释出本作品至公有领域。这适用于全世界。
在一些国家这可能不合法;如果是这样的话,那么:
我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。

许可协议

Public domain 我,本作品著作权人,释出本作品至公有领域。这适用于全世界。
在一些国家这可能不合法;如果是这样的话,那么:
我无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

image/svg+xml

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2020年7月14日 (二) 16:182020年7月14日 (二) 16:18版本的缩略图1,600 × 223(2 KB)Rainald62Trajectories calculated instead of drawn by hand. Less stroke-width for Earth's trajectory. Lower figure height.
2007年5月17日 (四) 17:082007年5月17日 (四) 17:08版本的缩略图800 × 392(3 KB)Tó campos1
2007年5月17日 (四) 15:542007年5月17日 (四) 15:54版本的缩略图800 × 392(5 KB)Tó campos1

以下2个页面使用本文件:

全域文件用途

元数据