updated model-files and user-input-file
This commit is contained in:
@@ -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
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user