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
a727cfd8
Commit
a727cfd8
authored
Sep 22, 2021
by
Fabian Kovac
Browse files
[i] always odd number of INCA RR points (to always include the midpoint)
parent
e5aaa29a
Changes
2
Show whitespace changes
Inline
Side-by-side
FHSTP/01_data_preparation/Datenvorverarbeitung.pdf
View file @
a727cfd8
No preview for this file type
FHSTP/01_data_preparation/prep.py
View file @
a727cfd8
...
...
@@ -301,8 +301,10 @@ 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
.
where
(
n
<
3
,
3
,
n
)
n
=
np
.
where
(
n
%
2
==
0
,
n
+
1
,
n
)
# set list for INCA RR data
inca_RR
=
[]
...
...
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