updated model-files and user-input-file

This commit is contained in:
2021-02-15 21:47:42 +09:00
parent d107aaae2c
commit c87e08af99
4 changed files with 15 additions and 15 deletions

View File

@@ -2,5 +2,5 @@ import numpy as np
c_d = 0.47 # drag coefficient balloon (spherical) [-]
def drag(c_d, rho_air, d_b, v_z):
return 0.125 * np.pi * c_d * rho_air * (d_b * v_z) ** 2
def drag(c_d, rho_air, d_b, v):
return 0.125 * np.pi * c_d * rho_air * (d_b * v) ** 2

View File

@@ -1,10 +1,10 @@
import astropy.units as u
import astropy.units as unit
import numpy as np
from astropy.coordinates import EarthLocation, AltAz
from astropy.coordinates import get_sun
def sun_angles_astropy(lat, lon, h, utc):
loc = EarthLocation(lat=lat*u.deg, lon=lon*u.deg, height=h*u.m)
loc = EarthLocation(lat=lat*unit.deg, lon=lon*unit.deg, height=h*unit.m)
ref = AltAz(obstime=utc, location=loc)
sun_pos = get_sun(utc).transform_to(ref)