You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
%%%%%%%
def DTtoUNIX(UTC):
import time
SKUNIXTim = []
for i in range(np.size(UTC)):
SKUNIXTim.append(time.mktime(UTC[i].timetuple()))
SKUNIXTim = np.array(SKUNIXTim)
return SKUNIXTim
lat, lon = 0,0
U,V = [],[]
for i in range(np.size(timestamps)):
auxU, auxV=[],[]
dt_object = datetime.fromtimestamp(timestamps[i])
for j in range(np.size(msisalts)):
pt = pyglow.Point(dt_object, lat, lon, msisalts[j])
pt.run_hwm(version=2014)
auxU.append(pt.u)
auxV.append(pt.v)
U.append(auxU)
V.append(auxV)
print(np.shape(U))
%%%%%%%%%%%%%%%%%
I get the error: ValueError: Must supply ap for HWM14
Can't figure out why... Any suggestion?
All indices are up to date. Can't quite understand what's going on...
The text was updated successfully, but these errors were encountered:
Running on Ubuntu, Jupyter Notebook, Python3:
%%%%%%%
def DTtoUNIX(UTC):
import time
SKUNIXTim = []
for i in range(np.size(UTC)):
SKUNIXTim.append(time.mktime(UTC[i].timetuple()))
SKUNIXTim = np.array(SKUNIXTim)
return SKUNIXTim
timestamp = DTtoUNIX([datetime(2015,1,1), datetime(2018,1,1)])
print(timestamp)
timestamps = np.arange(1.4200884e+09,1.5147828e+09,86400*2)
msisalts = np.arange(80,500.1,1)
lat, lon = 0,0
U,V = [],[]
for i in range(np.size(timestamps)):
auxU, auxV=[],[]
dt_object = datetime.fromtimestamp(timestamps[i])
for j in range(np.size(msisalts)):
pt = pyglow.Point(dt_object, lat, lon, msisalts[j])
pt.run_hwm(version=2014)
auxU.append(pt.u)
auxV.append(pt.v)
U.append(auxU)
V.append(auxV)
print(np.shape(U))
%%%%%%%%%%%%%%%%%
I get the error: ValueError: Must supply ap for HWM14
Can't figure out why... Any suggestion?
All indices are up to date. Can't quite understand what's going on...
The text was updated successfully, but these errors were encountered: