File:Distance from Earth center to Moon center - vi.svg

Original file(SVG file, nominally 1,051 × 217 pixels, file size: 65 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
Tiếng Việt: Khoảng cách từ tâm Trái đất đến tâm Mặt trăng, biến đổi theo thời gian trong năm 2021. Các chấm tròn màu vàng trên đồ thị là các thời điểm trăng tròn.
English: Distance from Earth center to Moon center, data from JPL Horizons On-Line Ephemeris System https://ssd.jpl.nasa.gov/horizons.cgi . The overlaying yellow disks represents the time of full moons.

Drawn by the following python3 code:

#Download the moon position in geocentric coordinates from https://ssd.jpl.nasa.gov/horizons.cgi with
# Ephemeris Type : 	VECTORS
# Target Body : Moon [Luna] [301]
# Coordinate Origin : 	Geocentric [500]
# Time Span : 	Start=2020-10-01, Stop=2022-10-01, Step=1 d
# Table Settings : defaults
# Display/Output : download/save (plain text file)
# and save to moon.txt
AU = 149597870.700
import re, math
f = open("moon.txt","r")
o = []
for line in f:
 if line[0:2] == " X":
   t = (re.sub('=+','=',line.strip().replace(" ","="))).split("=")
   r = AU*math.sqrt(float(t[1])**2 + float(t[3])**2 + float(t[5])**2)
   o.append(r)
f.close()
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (14,4)
fig, ax = plt.subplots()
ax.plot(o[:570],'C1') # using only first 570 days in data 
# full moon days counting from 2020-10-01, data from 
# https://lunaf.com/lunar-calendar/2020/
# https://lunaf.com/lunar-calendar/2021/
# https://lunaf.com/lunar-calendar/2022/
fullmoonday = [1,31,61,91,120,149,179,209,238,268,297,326,356,385,415,445,474,504,534,563]
fullmoondistance = []
for i in range(len(fullmoonday)):
 fullmoondistance.append(o[fullmoonday[i]])
ax.scatter(fullmoonday,fullmoondistance,color='y')
ax.set_box_aspect(0.2)
ax.set_ylabel('khoảng cách (km)')
plt.xticks([93,456],['1 tháng 1 năm 2021', '1 tháng 1 năm 2022'])
plt.ylim([350000, 415000])
plt.show()
#Then export the image to SVG 
#Then use Inkscape to edit (adding annotations)
Date
Source Own work
Author Tttrung

Licensing edit

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current04:09, 3 March 2021Thumbnail for version as of 04:09, 3 March 20211,051 × 217 (65 KB)Tttrung (talk | contribs)Update font size
04:05, 3 March 2021Thumbnail for version as of 04:05, 3 March 20211,051 × 217 (65 KB)Tttrung (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata