updated model-files and user-input-file
This commit is contained in:
@ -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