pingmapper 4.2.3__py3-none-any.whl → 4.2.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pingmapper/class_portstarObj.py +0 -7
- pingmapper/class_sonObj.py +3 -9
- pingmapper/gui_main.py +1 -1
- pingmapper/main_readFiles.py +4 -11
- pingmapper/version.py +1 -1
- {pingmapper-4.2.3.dist-info → pingmapper-4.2.4.dist-info}/METADATA +1 -1
- {pingmapper-4.2.3.dist-info → pingmapper-4.2.4.dist-info}/RECORD +11 -11
- {pingmapper-4.2.3.dist-info → pingmapper-4.2.4.dist-info}/WHEEL +1 -1
- {pingmapper-4.2.3.data → pingmapper-4.2.4.data}/data/pingmapper_config/default_params.json +0 -0
- {pingmapper-4.2.3.dist-info → pingmapper-4.2.4.dist-info}/licenses/LICENSE +0 -0
- {pingmapper-4.2.3.dist-info → pingmapper-4.2.4.dist-info}/top_level.txt +0 -0
pingmapper/class_portstarObj.py
CHANGED
|
@@ -1026,8 +1026,6 @@ class portstarObj(object):
|
|
|
1026
1026
|
self._getPortStarScanChunk(i)
|
|
1027
1027
|
mergeSon = self.mergeSon
|
|
1028
1028
|
|
|
1029
|
-
print(mergeSon)
|
|
1030
|
-
|
|
1031
1029
|
###################
|
|
1032
1030
|
# Make 3-band array
|
|
1033
1031
|
b1 = mergeSon.copy() # Band 1: no change
|
|
@@ -1640,11 +1638,6 @@ class portstarObj(object):
|
|
|
1640
1638
|
self.star._loadSonMeta()
|
|
1641
1639
|
starDF = self.star.sonMetaDF
|
|
1642
1640
|
|
|
1643
|
-
# Add instrument depth if not present
|
|
1644
|
-
if 'inst_dep_m' not in portDF.columns:
|
|
1645
|
-
portDF['inst_dep_m'] = portDF['dep_m']
|
|
1646
|
-
starDF['inst_dep_m'] = starDF['dep_m']
|
|
1647
|
-
|
|
1648
1641
|
portDF = portDF.loc[portDF['chunk_id'] == i, ['inst_dep_m', 'dep_m']]
|
|
1649
1642
|
starDF = starDF.loc[starDF['chunk_id'] == i, ['inst_dep_m', 'dep_m']]
|
|
1650
1643
|
|
pingmapper/class_sonObj.py
CHANGED
|
@@ -749,19 +749,13 @@ class sonObj(object):
|
|
|
749
749
|
file.seek(pingIdx) # Move to that location
|
|
750
750
|
|
|
751
751
|
# Get the ping
|
|
752
|
-
|
|
753
|
-
buffer = file.read(ping_len)
|
|
754
|
-
else:
|
|
755
|
-
buffer = file.read(ping_len*2)
|
|
752
|
+
buffer = file.read(ping_len)
|
|
756
753
|
|
|
757
754
|
if self.flip_port:
|
|
758
755
|
buffer = buffer[::-1]
|
|
759
756
|
|
|
760
757
|
# Read the data
|
|
761
|
-
|
|
762
|
-
dat = np.frombuffer(buffer, dtype='>u1')
|
|
763
|
-
else:
|
|
764
|
-
dat = np.frombuffer(buffer, dtype='>u2')
|
|
758
|
+
dat = np.frombuffer(buffer, dtype='>u1')
|
|
765
759
|
|
|
766
760
|
try:
|
|
767
761
|
sonDat[:ping_len, i] = dat
|
|
@@ -770,7 +764,7 @@ class sonObj(object):
|
|
|
770
764
|
sonDat[:ping_len, i] = dat
|
|
771
765
|
|
|
772
766
|
file.close()
|
|
773
|
-
self.sonDat = sonDat
|
|
767
|
+
self.sonDat = sonDat
|
|
774
768
|
return
|
|
775
769
|
|
|
776
770
|
# ======================================================================
|
pingmapper/gui_main.py
CHANGED
|
@@ -73,7 +73,7 @@ def gui(batch: bool):
|
|
|
73
73
|
text_input = sg.Text('Recording to Process')
|
|
74
74
|
# in_input = sg.In(key='inFile', size=(80,1))
|
|
75
75
|
in_input = sg.In(key='inFile', size=(80,1), default_text=default_params['inFile'])
|
|
76
|
-
browse_input = sg.FileBrowse(file_types=(("Sonar File", "*.DAT *.sl2 *.sl3
|
|
76
|
+
browse_input = sg.FileBrowse(file_types=(("Sonar File", "*.DAT *.sl2 *.sl3") ), initial_folder=os.path.dirname(default_params['inFile']))
|
|
77
77
|
|
|
78
78
|
# Add to layout
|
|
79
79
|
layout.append([text_io])
|
pingmapper/main_readFiles.py
CHANGED
|
@@ -44,9 +44,9 @@ from doodleverse_utils.imports import *
|
|
|
44
44
|
|
|
45
45
|
from scipy.signal import savgol_filter
|
|
46
46
|
|
|
47
|
-
sys.path.insert(0, r'
|
|
47
|
+
# sys.path.insert(0, r'C:\Users\cbodine\PythonRepos\PINGVerter')
|
|
48
48
|
|
|
49
|
-
from pingverter import hum2pingmapper, low2pingmapper
|
|
49
|
+
from pingverter import hum2pingmapper, low2pingmapper
|
|
50
50
|
|
|
51
51
|
import cv2
|
|
52
52
|
|
|
@@ -313,11 +313,6 @@ def read_master_func(logfilename='',
|
|
|
313
313
|
elif file_type == '.sl2' or file_type == '.sl3':
|
|
314
314
|
sonar_obj = low2pingmapper(inFile, projDir, nchunk, tempC, exportUnknown)
|
|
315
315
|
|
|
316
|
-
# Prepare Cerulean file for PINGMapper
|
|
317
|
-
elif file_type == '.svlog':
|
|
318
|
-
sonar_obj = cerul2pingmapper(inFile, projDir, nchunk, tempC, exportUnknown)
|
|
319
|
-
detectDep = 1
|
|
320
|
-
|
|
321
316
|
####################
|
|
322
317
|
# Create son objects
|
|
323
318
|
####################
|
|
@@ -347,7 +342,6 @@ def read_master_func(logfilename='',
|
|
|
347
342
|
son.isOnix = sonar_obj.isOnix
|
|
348
343
|
son.trans = sonar_obj.trans
|
|
349
344
|
son.humDat = sonar_obj.humDat
|
|
350
|
-
son.son8bit = sonar_obj.son8bit
|
|
351
345
|
|
|
352
346
|
if pix_res_son == 0:
|
|
353
347
|
son.pix_res_son = 0
|
|
@@ -696,7 +690,6 @@ def read_master_func(logfilename='',
|
|
|
696
690
|
print("{:<20s} | {:<15s} | {:<15s} | {:<15s} | {:<5s}".format("Attribute", "Minimum", "Maximum", "Average", "Valid"))
|
|
697
691
|
print("______________________________________________________________________________")
|
|
698
692
|
for att in df.columns:
|
|
699
|
-
print(att)
|
|
700
693
|
|
|
701
694
|
# Find min/max/avg of each column
|
|
702
695
|
if (att == 'date') or (att == 'time'):
|
|
@@ -1257,9 +1250,9 @@ def read_master_func(logfilename='',
|
|
|
1257
1250
|
# Export un-rectified sonar tiles #
|
|
1258
1251
|
############################################################################
|
|
1259
1252
|
|
|
1260
|
-
moving_window =
|
|
1253
|
+
moving_window = True
|
|
1261
1254
|
window_stride = 0.1
|
|
1262
|
-
|
|
1255
|
+
tileFile = '.mp4'
|
|
1263
1256
|
frameRate = 5
|
|
1264
1257
|
if tileFile == '.mp4':
|
|
1265
1258
|
imgType = '.png'
|
pingmapper/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '4.2.
|
|
1
|
+
__version__ = '4.2.4'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pingmapper
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.4
|
|
4
4
|
Summary: Open-source interface for processing recreation-grade side scan sonar datasets and reproducibly mapping benthic habitat
|
|
5
5
|
Author: Cameron Bodine
|
|
6
6
|
Author-email: bodine.cs@gmail.email
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
pingmapper/__init__.py,sha256=8zLGg-DfQhnDl2Ky0n-zXpN-8e-g7iR0AcaI4l4Vvpk,32
|
|
2
2
|
pingmapper/__main__.py,sha256=6qBbTK3eg_Er2SlUgBUaR0CBrJCKB9P2dpJaq2y5y3g,1421
|
|
3
3
|
pingmapper/class_mapSubstrateObj.py,sha256=FXw61jZ2Fnpk74vZl4PT0ijlN9gz1S-kIf8RyyrrI1Y,36785
|
|
4
|
-
pingmapper/class_portstarObj.py,sha256=
|
|
4
|
+
pingmapper/class_portstarObj.py,sha256=1jFyKUXVL_0rzCA0sQREiCS9qp0ZQqPshOIk0XHcknM,105527
|
|
5
5
|
pingmapper/class_rectObj.py,sha256=2HCmaZ_8PG92305tJmkB0V8oSYCCJxOE58iz1GUpiPc,90885
|
|
6
|
-
pingmapper/class_sonObj.py,sha256=
|
|
6
|
+
pingmapper/class_sonObj.py,sha256=jxo_QBtYJmM9oJlxPfcKutc_8HkEj1hBdP5F6-61Mz8,74242
|
|
7
7
|
pingmapper/funcs_common.py,sha256=pCOIy83srtYKtKUnF4oXkd83_kimZI0NiSrO0TE0O4g,13414
|
|
8
8
|
pingmapper/funcs_model.py,sha256=dO9J4-0s1COggHkSUqHFC1qKTs20A6PSvkDqXWMUT6A,7916
|
|
9
9
|
pingmapper/funcs_rectify.py,sha256=Goh5Yon_qP93dLjq8Vv_qezPxw1H0Yb7Rw4MCTt9Z8U,12114
|
|
10
|
-
pingmapper/gui_main.py,sha256=
|
|
10
|
+
pingmapper/gui_main.py,sha256=4mWQDt0qJ-VaQnUQkbYlBiHTIdaVRMh1n5ULkEpRXbQ,34308
|
|
11
11
|
pingmapper/main_mapSubstrate.py,sha256=XfjWeI77JeSc0Z64ktwAe4_Bo9yx6FnjANyDnzp1dZI,20991
|
|
12
|
-
pingmapper/main_readFiles.py,sha256=
|
|
12
|
+
pingmapper/main_readFiles.py,sha256=FScvLChVQIjlicX1yzr263rad71ECojS1hz9MiEAKaA,53036
|
|
13
13
|
pingmapper/main_rectify.py,sha256=k3XA3DEsUp_WZ9J7ugguXqmQjVCCTBhZvm73_UBuJiI,19468
|
|
14
14
|
pingmapper/mosaic_substrate.py,sha256=KEIu4Os8ax9fYYqejphO1suhrZwZ6Cd9i4H5t9Bk9NA,966
|
|
15
15
|
pingmapper/test_PINGMapper.py,sha256=ZdVPHTlJFAR_JMnY-kzJe3WeIY6Dukb7Apy4InBFpUI,13986
|
|
16
16
|
pingmapper/test_time.py,sha256=uHT0mtLDP1J6w-snoELyk4UzZ2LrDeF6jGgJJVloalg,750
|
|
17
|
-
pingmapper/version.py,sha256=
|
|
18
|
-
pingmapper-4.2.
|
|
19
|
-
pingmapper-4.2.
|
|
20
|
-
pingmapper-4.2.
|
|
21
|
-
pingmapper-4.2.
|
|
22
|
-
pingmapper-4.2.
|
|
23
|
-
pingmapper-4.2.
|
|
17
|
+
pingmapper/version.py,sha256=KzWddNZ9Vz8MjA4V3BstmI882pevpoiOKOb9PrIQ_-k,21
|
|
18
|
+
pingmapper-4.2.4.data/data/pingmapper_config/default_params.json,sha256=YA9Rx1PSdUy4cTq-vtKORo3nNLisCYNOeUBxClldmHs,1285
|
|
19
|
+
pingmapper-4.2.4.dist-info/licenses/LICENSE,sha256=lowDp_th1CGR0Z224a-jYRi-oNFe_0fdldL3USXhX-k,1095
|
|
20
|
+
pingmapper-4.2.4.dist-info/METADATA,sha256=tQF2G3gxtDRc62ffcpL_xco60-NWv_kwAJA3qjJtf4Y,9173
|
|
21
|
+
pingmapper-4.2.4.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
|
|
22
|
+
pingmapper-4.2.4.dist-info/top_level.txt,sha256=RlV4sDoE3uIIDzNMOjN2t012Ia_jsblNVojJvg4q84w,11
|
|
23
|
+
pingmapper-4.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|