Commit aa9253cb authored by Fabian Kovac's avatar Fabian Kovac
Browse files

[f] added altitudes of links

parent 7d22f9ac
...@@ -273,7 +273,7 @@ def get_inca_data(datetimes: np.array, lon_a: np.array, lat_a: np.array, lon_b: ...@@ -273,7 +273,7 @@ def get_inca_data(datetimes: np.array, lon_a: np.array, lat_a: np.array, lon_b:
lat_a (np.array): Vector containing latitude values of LINK site a lat_a (np.array): Vector containing latitude values of LINK site a
lon_b (np.array): Vector containing longitude values of LINK site b lon_b (np.array): Vector containing longitude values of LINK site b
lat_b (np.array): Vector containing latiotude values of LINK site b lat_b (np.array): Vector containing latiotude values of LINK site b
length (np.array): Vector containing distance between sites in km length (np.array): Vector containing distance between sites in m
Returns: Returns:
inca_RR (np.array): Vector containing INCA RR data for each transmission inca_RR (np.array): Vector containing INCA RR data for each transmission
...@@ -307,7 +307,7 @@ def get_inca_data(datetimes: np.array, lon_a: np.array, lat_a: np.array, lon_b: ...@@ -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 # define n INCA RR points for each km of link length
# --> min. points: 3 (start, mid and end) if length < 3km # --> min. points: 3 (start, mid and end) if length < 3km
# --> get odd amount of RR points to always include the middle of the link # --> get odd amount of RR points to always include the middle of the link
n = np.round(lengths, decimals = 0).astype(int) n = np.round(lengths//1000, decimals = 0).astype(int)
n = np.where(n < 3, 3, n) n = np.where(n < 3, 3, n)
n = np.where(n%2 == 0, n+1, n) n = np.where(n%2 == 0, n+1, n)
...@@ -437,7 +437,7 @@ def prep() -> None: ...@@ -437,7 +437,7 @@ def prep() -> None:
df_config['ANT_HEIGHT_ALTITUDE_MID'] = df_config['ANT_HEIGHT_ALTITUDE_MID'].astype('int') df_config['ANT_HEIGHT_ALTITUDE_MID'] = df_config['ANT_HEIGHT_ALTITUDE_MID'].astype('int')
_log('Calculated midpoint of links') _log('Calculated midpoint of links')
# calculate LENGTH in km between links # calculate LENGTH in m between links
df_config['LENGTH'] = get_distance( df_config['LENGTH'] = get_distance(
df_config['LONGITUDE_A'], df_config['LONGITUDE_A'],
df_config['LATITUDE_A'], df_config['LATITUDE_A'],
......
Supports Markdown
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