Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
oeigner
LINK - Forschungsprojekt Repo
Commits
aa9253cb
Commit
aa9253cb
authored
Sep 29, 2021
by
Fabian Kovac
Browse files
[f] added altitudes of links
parent
7d22f9ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
FHSTP/01_data_preparation/Datenvorverarbeitung.pdf
View file @
aa9253cb
No preview for this file type
FHSTP/01_data_preparation/prep.py
View file @
aa9253cb
...
...
@@ -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
lon_b (np.array): Vector containing longitude 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
k
m
length (np.array): Vector containing distance between sites in m
Returns:
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:
# 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
,
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
)
...
...
@@ -437,7 +437,7 @@ def prep() -> None:
df_config
[
'ANT_HEIGHT_ALTITUDE_MID'
]
=
df_config
[
'ANT_HEIGHT_ALTITUDE_MID'
].
astype
(
'int'
)
_log
(
'Calculated midpoint of links'
)
# calculate LENGTH in
k
m between links
# calculate LENGTH in m between links
df_config
[
'LENGTH'
]
=
get_distance
(
df_config
[
'LONGITUDE_A'
],
df_config
[
'LATITUDE_A'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment