diff --git a/Model/granulo_loader.py b/Model/granulo_loader.py index 80d51ef..b7ea7e0 100644 --- a/Model/granulo_loader.py +++ b/Model/granulo_loader.py @@ -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")