Commit e5aaa29a authored by Fabian Kovac's avatar Fabian Kovac
Browse files

[i] extinction coeff per transmission

parent 92a3d7eb
...@@ -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-27 # Last changed: 2021-09-22
# #
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')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment