mirror of
https://forgemia.inra.fr/theophile.terraz/acoused.git
synced 2026-10-30 03:10:40 +01:00
depth_2D and J_cross_section parameters are computed for all acoustic recordings uploaded in AcouSed.
This commit is contained in:
1 parent
8703d0676e
commit
111bc21d5a
4 files changed
+191
-177
No files matched your search
@@ -48,6 +48,9 @@ class AcousticDataLoader:
|
||||
self._gain_rx = self._data_BS.RxGain.tolist()
|
||||
self._gain_tx = self._data_BS.TxGain.tolist()
|
||||
|
||||
# print((self._cell_size))
|
||||
# print((self._nb_pings_averaged_per_profile))
|
||||
|
||||
# print(self._r[0, :][1] - self._r[1, :][0])
|
||||
# print(type(self._nb_cells), self._nb_cells)
|
||||
|
||||
@@ -113,7 +116,7 @@ class AcousticDataLoader:
|
||||
def compute_r_2D(self):
|
||||
r2D = np.zeros((self._freq.shape[0], self._r.shape[1], self._time.shape[1]))
|
||||
for f, _ in enumerate(self._freq):
|
||||
r2D[f, :, :] = np.repeat(np.transpose(self._r[0, :])[:, np.newaxis], self._time.shape[1], axis=1)
|
||||
r2D[f, :, :] = np.repeat(np.transpose(self._r[f, :])[:, np.newaxis], self._time.shape[1], axis=1)
|
||||
print(r2D.shape)
|
||||
return r2D
|
||||
|
||||
|
||||
Reference in new issue
Block a user