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
11fdca69
Commit
11fdca69
authored
Sep 29, 2021
by
Fabian Kovac
Browse files
[f] added altitudes of links
parent
aa9253cb
Changes
1
Show whitespace changes
Inline
Side-by-side
FHSTP/01_data_preparation/prep.py
View file @
11fdca69
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
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