Concentration computation in % is added : (Ctot_fine / Ctot) and (Ctot_sand / Ctot)

dev-brahim
brahim 2023-08-01 14:13:59 +02:00
parent 0682bfd817
commit 3c9ac57920
1 changed files with 6 additions and 1 deletions

View File

@ -32,10 +32,15 @@ class GranuloLoader:
self._frac_vol_sand_cumul = np.cumsum(self._frac_vol_sand, axis=1) # Cumulated volume fraction (%)
# --- Compute % of fine and % of sand sediment in total concentration ---
self._Ctot_fine_per_cent = 100 * self._Ctot_fine / (self._Ctot_fine + self._Ctot_sand)
self._Ctot_sand_per_cent = 100 * self._Ctot_sand / (self._Ctot_fine + self._Ctot_sand)
if __name__ == "__main__":
GranuloLoader("/home/bmoudjed/Documents/3 SSC acoustic meas project/Graphical interface project/Data/Granulo_data/"
"fine_sample_file.ods",
"/home/bmoudjed/Documents/3 SSC acoustic meas project/Graphical interface project/Data/Granulo_data/"
"fine_sample_file.ods")
"sand_sample_file.ods")