LoginSignup
1
0

More than 1 year has passed since last update.

地上からの高さと見渡せる海の距離

Last updated at Posted at 2022-05-20

海岸に立った時、どのくらい先まで見えるのか計算してみた。
以下の計算結果より、

  • 海岸に立った時(地上から1.5m前後)で4から5km
  • 100mぐらいの山からであれば 30km
  • そして、無茶苦茶高いところまでいけば10万km(地球の円周の1/4)ぐらいまでみわたせる

プログラム

import math
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt

r=12756*10**3/2  #地球の半径(m)
#地上からの高さと見渡せる海の距離を求める
def get_sea_overlooking(height):
    angle=math.acos(r/(r+height))
    l=r*angle
    return l 

#指定された高さまでの「地上からの高さと見渡せる海の距離」グラフを描画する
def ploting(max_height):
    print("地上からの高さ{}mまで".format(max_height))
    x = np.arange(0,  max_height,max_height/100)
    y = [get_sea_overlooking(x_val)/1000 for x_val in x]
    plt.xlabel("takasa(m)")
    plt.ylabel("mieru kyori(km)")
    _=plt.plot(x,y)
    plt.show

結果

ploting(5)

地上からの高さ5mまで
image.png

ploting(500)

地上からの高さ500mまで
image.png

ploting((r*2)*10) #地球の直径の10倍の距離

地上からの高さ127560000.0mまで
image.png

参考

image.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0