updated environment

This commit is contained in:
2021-06-18 23:24:18 +09:00
parent 5963606d05
commit a7ee25fba7
4 changed files with 144 additions and 47 deletions

View File

@ -44,12 +44,14 @@ starttime = datetime.now()
if not sys.warnoptions:
warnings.simplefilter("ignore")
"""
data = pd.read_excel(r'C:\Users\marcel\PycharmProjects\MasterThesis\Data_PoGo2016.xls', sheet_name='SuperTIGER2') # Tabelle3
comp_time = pd.DataFrame(data, columns=['Time']).to_numpy().squeeze()
comp_height = pd.DataFrame(data, columns=['Height']).to_numpy().squeeze()
comp_lat = pd.DataFrame(data, columns=['Latitude']).to_numpy().squeeze()
comp_lon = pd.DataFrame(data, columns=['Longitude']).to_numpy().squeeze()
"""
print("")
print("INITIALISING SIMULATION...")
@ -184,7 +186,7 @@ def ERA5Data(lon, lat, h, t, deltaT_ERA, flag_arr):
interp4d_vw_z_post = np.ma.dot(w1, vw_z_float.vindex[t_post_ind, :, lat_ind1, lon_ind1].compute()) / np.sum(w1)
interp4d_vw_z = (interp4d_vw_z_post - interp4d_vw_z_pre) * (t_epoch - t_pre) + interp4d_vw_z_pre
pressure_hPa = np.array([1, 2, 3, 5, 7, 10, 20, 30]) # !!!
pressure_hPa = np.array([1, 2, 3, 5, 7, 10, 20]) # !!!
pressure = 100 * pressure_hPa
@ -1068,7 +1070,7 @@ df1 = pd.DataFrame(data={
df1.to_excel("output.xlsx")
plt.plot(sol.t, sol.y[2, :], 'k--', label='Simulation')
plt.plot(comp_time, comp_height, 'r-', label='PoGo+ Flight Test')
# plt.plot(comp_time, comp_height, 'r-', label='PoGo+ Flight Test')
plt.legend()
plt.title('high factor')
plt.xlabel('time in s')
@ -1084,6 +1086,6 @@ ax.set_extent([-120, 30, 60, 80], crs=ccrs.PlateCarree())
plt.plot(start_lon, start_lat, 'rx', transform=ccrs.Geodetic())
plt.plot(sol.y[0, :], sol.y[1, :], 'k--', transform=ccrs.Geodetic())
plt.plot(comp_lon, comp_lat, 'r-', transform=ccrs.Geodetic())
# plt.plot(comp_lon, comp_lat, 'r-', transform=ccrs.Geodetic())
# plt.savefig(os.path.join(rootdir, figname))
plt.show()