Commit 11fdca69 authored by Fabian Kovac's avatar Fabian Kovac
Browse files

[f] added altitudes of links

parent aa9253cb
......@@ -307,7 +307,7 @@ def get_inca_data(datetimes: np.array, lon_a: np.array, lat_a: np.array, lon_b:
# define n INCA RR points for each km of link length
# --> min. points: 3 (start, mid and end) if length < 3km
# --> get odd amount of RR points to always include the middle of the link
n = np.round(lengths//1000, decimals = 0).astype(int)
n = np.round(lengths/1000, decimals = 0).astype(int)
n = np.where(n < 3, 3, n)
n = np.where(n%2 == 0, n+1, n)
......@@ -426,6 +426,7 @@ def prep() -> None:
df_altitudes = pd.read_csv('files_from_H3A/CONFIG_ALTITUDES.csv', sep = ';')
df_altitudes = df_altitudes[['LINKID', 'ANT_HEIGHT_ALTITUDE_A', 'ANT_HEIGHT_ALTITUDE_B']]
df_config = pd.merge(df_config, df_altitudes, how = 'inner', left_on = 'LINKID', right_on = 'LINKID')
_log('Added altitude of links')
# calculate midpoint of links
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment