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
e5aaa29a
Commit
e5aaa29a
authored
Sep 22, 2021
by
Fabian Kovac
Browse files
[i] extinction coeff per transmission
parent
92a3d7eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
FHSTP/01_data_preparation/Datenvorverarbeitung.pdf
View file @
e5aaa29a
No preview for this file type
FHSTP/01_data_preparation/prep.py
View file @
e5aaa29a
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
# Title: Data Preparation for LINK Configs and Transmissions
# Title: Data Preparation for LINK Configs and Transmissions
# Author: Fabian Kovac <ds191008@fhstp.ac.at>
# Author: Fabian Kovac <ds191008@fhstp.ac.at>
# Team: University of Applied Sciences St. Pölten
# Team: University of Applied Sciences St. Pölten
# Version: 2.
5
# Version: 2.
6
# Last changed: 2021-09-2
7
# Last changed: 2021-09-2
2
#
#
import
sys
import
sys
...
@@ -525,10 +525,8 @@ def prep() -> None:
...
@@ -525,10 +525,8 @@ def prep() -> None:
_log
(
'Calculated attenuation per transmission'
)
_log
(
'Calculated attenuation per transmission'
)
# calculate extinction coefficients for links based on attenuation and lengths of the links based on beer-lambert law
# calculate extinction coefficients for links based on attenuation and lengths of the links based on beer-lambert law
# we can use the already computed Pinst values instead of the attenuation by simply multiplying the result with a constant of -1
# Coeff = -ln(10) * (Attenuation/PathLength)
# using PinstMean allows us to get the extinction coefficient (material properties) per link for dry periods (reference) of the day
df_link
[
'EXTINCTIONCOEFF'
]
=
-
np
.
log
(
10
)
*
(
df_link
[
'ATTENUATION'
]
/
df_link
[
'LENGTH'
])
# Coeff = -ln(10) * (Attenuation/PathLength) --> Coeff = ln(10) * (PinstMean/PathLength)
df_link
[
'EXTINCTIONCOEFF'
]
=
np
.
log
(
10
)
*
(
df_link
[
'PINSTMEAN'
]
/
df_link
[
'LENGTH'
])
_log
(
'Calculated extinction coefficients based on beer-lambert law'
)
_log
(
'Calculated extinction coefficients based on beer-lambert law'
)
...
...
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