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
ba700154
Commit
ba700154
authored
Sep 10, 2021
by
Fabian Kovac
Browse files
[f] added attenuations and extinction coefficients
parent
89803821
Changes
2
Hide whitespace changes
Inline
Side-by-side
FHSTP/Datenvorverarbeitung.pdf
View file @
ba700154
No preview for this file type
FHSTP/prep.py
View file @
ba700154
...
...
@@ -543,6 +543,18 @@ def prep() -> None:
_log
(
'Calculated difference levels PDIFF instantaneous values derivating of daily means of dry periods'
)
# calculate attenuation of transmitted and received signal strengths per transmission
df_link
[
'ATTENUATION'
]
=
df_link
[
'REMOTERXLEVEL'
]
-
df_link
[
'TXLEVEL'
]
_log
(
'Calculated attenuation per transmission'
)
# 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
# using PinstMean allows us to get the extinction coefficient (material properties) per link for dry periods (reference) of the day
# 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'
)
# rename and reorder columns to aid RAINLINK format
name_cols
=
{
'LINKID'
:
'ID'
,
...
...
@@ -554,6 +566,8 @@ def prep() -> None:
'PINSTMEAN'
:
'PinstMean'
,
'PDIFF'
:
'Pdiff'
,
'TXLEVEL'
:
'TxLevel'
,
'ATTENUATION'
:
'Attenuation'
,
'EXTINCTIONCOEFFICIENT'
:
'ExtinctionCoeff'
,
'SPEED'
:
'Speed'
,
'CURRRXBITRATE'
:
'RxBitrate'
,
'CURRTXBITRATE'
:
'TxBitrate'
,
...
...
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