Skip to content

Commit 5bb0c4f

Browse files
committed
Mov window substrate predict only on chunks from same transect. Seems to address #142
1 parent 106b194 commit 5bb0c4f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pingmapper/class_mapSubstrateObj.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,18 @@ def _getSon3Chunk(self, i):
286286
self._loadSonMeta()
287287
df = self.sonMetaDF
288288

289+
##############
290+
# For Transect
291+
# Get l,c,r transect
292+
c_transect = df.loc[df['chunk_id'] == c, ['transect']].values[0]
293+
l_transect = df.loc[df['chunk_id'] == l, ['transect']].values[0]
294+
r_transect = df.loc[df['chunk_id'] == r, ['transect']].values[0]
295+
296+
if l_transect != c_transect:
297+
l = c
298+
if r_transect != c_transect:
299+
r = c
300+
289301
########
290302
# Left
291303

0 commit comments

Comments
 (0)