pingmapper 4.2.9__py3-none-any.whl → 4.2.11__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/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") ), initial_folder=os.path.dirname(default_params['inFile']))
76
+ browse_input = sg.FileBrowse(file_types=(("Sonar File", "*.DAT *.sl2 *.sl3 *.svlog") ), initial_folder=os.path.dirname(default_params['inFile']))
77
77
 
78
78
  # Add to layout
79
79
  layout.append([text_io])
@@ -36,6 +36,11 @@ SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
36
36
  PACKAGE_DIR = os.path.dirname(SCRIPT_DIR)
37
37
  sys.path.append(PACKAGE_DIR)
38
38
 
39
+ # # For debug
40
+ # from funcs_common import *
41
+ # from class_sonObj import sonObj
42
+ # from class_portstarObj import portstarObj
43
+
39
44
  from pingmapper.funcs_common import *
40
45
  from pingmapper.class_sonObj import sonObj
41
46
  from pingmapper.class_portstarObj import portstarObj
@@ -46,7 +51,7 @@ from scipy.signal import savgol_filter
46
51
 
47
52
  # sys.path.insert(0, r'C:\Users\cbodine\PythonRepos\PINGVerter')
48
53
 
49
- from pingverter import hum2pingmapper, low2pingmapper
54
+ from pingverter import hum2pingmapper, low2pingmapper, cerul2pingmapper
50
55
 
51
56
  import cv2
52
57
 
@@ -246,6 +251,11 @@ def read_master_func(logfilename='',
246
251
  | | water column present (wcp)
247
252
  '''
248
253
 
254
+ #####################################
255
+ # Show version
256
+ from pingmapper.version import __version__
257
+ print("\nPING-Mapper v{}".format(__version__))
258
+
249
259
 
250
260
  #####################################
251
261
  # Download models if they don't exist
@@ -315,6 +325,11 @@ def read_master_func(logfilename='',
315
325
  elif file_type == '.sl2' or file_type == '.sl3':
316
326
  sonar_obj = low2pingmapper(inFile, projDir, nchunk, tempC, exportUnknown)
317
327
 
328
+ # Prepare Cerulean file for PINGMapper
329
+ elif file_type == '.svlog':
330
+ sonar_obj = cerul2pingmapper(inFile, projDir, nchunk, tempC, exportUnknown)
331
+ detectDep = 1 # No depth in cerulean files, so set to Zheng et al. 2021
332
+
318
333
  ####################
319
334
  # Create son objects
320
335
  ####################
@@ -262,6 +262,10 @@ def rectify_master_func(logfilename='',
262
262
  # Smooth Trackline #
263
263
  ############################################################################
264
264
 
265
+ # Must use COG for rubber sheeting
266
+ if rubberSheeting:
267
+ rectMethod = 'COG'
268
+
265
269
  cog=True
266
270
  if rectMethod != 'COG':
267
271
  cog=False
@@ -38,6 +38,12 @@ SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
38
38
  PACKAGE_DIR = os.path.dirname(SCRIPT_DIR)
39
39
  sys.path.append(PACKAGE_DIR)
40
40
 
41
+ # # For debug
42
+ # from funcs_common import *
43
+ # from main_readFiles import read_master_func
44
+ # from main_rectify import rectify_master_func
45
+ # from main_mapSubstrate import map_master_func
46
+
41
47
  from pingmapper.funcs_common import *
42
48
  from pingmapper.main_readFiles import read_master_func
43
49
  from pingmapper.main_rectify import rectify_master_func
@@ -177,7 +183,7 @@ def test(ds):
177
183
  ## 2==Auto detect depth w/ Thresholding
178
184
 
179
185
  smthDep = True #Smooth depth before water column removal
180
- adjDep = 10 #Aditional depth adjustment (in pixels) for water column removaL
186
+ adjDep = 0 #Aditional depth adjustment (in meters) for water column removaL
181
187
  pltBedPick = True #Plot bedpick on sonogram
182
188
 
183
189
 
pingmapper/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '4.2.9'
1
+ __version__ = '4.2.11'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pingmapper
3
- Version: 4.2.9
3
+ Version: 4.2.11
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
@@ -0,0 +1,22 @@
1
+ pingmapper/__init__.py,sha256=8zLGg-DfQhnDl2Ky0n-zXpN-8e-g7iR0AcaI4l4Vvpk,32
2
+ pingmapper/__main__.py,sha256=6qBbTK3eg_Er2SlUgBUaR0CBrJCKB9P2dpJaq2y5y3g,1421
3
+ pingmapper/class_mapSubstrateObj.py,sha256=FXw61jZ2Fnpk74vZl4PT0ijlN9gz1S-kIf8RyyrrI1Y,36785
4
+ pingmapper/class_portstarObj.py,sha256=1jFyKUXVL_0rzCA0sQREiCS9qp0ZQqPshOIk0XHcknM,105527
5
+ pingmapper/class_rectObj.py,sha256=GV14tTFHc_2XCLTZ-niVDMU3ohH9puHVqWgtjndMW4M,90897
6
+ pingmapper/class_sonObj.py,sha256=jxo_QBtYJmM9oJlxPfcKutc_8HkEj1hBdP5F6-61Mz8,74242
7
+ pingmapper/funcs_common.py,sha256=pCOIy83srtYKtKUnF4oXkd83_kimZI0NiSrO0TE0O4g,13414
8
+ pingmapper/funcs_model.py,sha256=dO9J4-0s1COggHkSUqHFC1qKTs20A6PSvkDqXWMUT6A,7916
9
+ pingmapper/funcs_rectify.py,sha256=Goh5Yon_qP93dLjq8Vv_qezPxw1H0Yb7Rw4MCTt9Z8U,12114
10
+ pingmapper/gui_main.py,sha256=91HAQP-o1EWxvTdW3Sv4eYJcDiSGYp_U7pQ9f_ZJ7Z8,34316
11
+ pingmapper/main_mapSubstrate.py,sha256=obzB_uM0N8z7C0DJFsk1HGaFWd7g_U5Ejghdxey86u0,21073
12
+ pingmapper/main_readFiles.py,sha256=G435bPsfTMt-YC3PKYiu6dW5773C6qhjDBuXRzb764c,53859
13
+ pingmapper/main_rectify.py,sha256=df6cRODvLRVYWsWHE-g6Kk5JBihtWj5NHHcc6w0jkHM,19681
14
+ pingmapper/test_PINGMapper.py,sha256=-SYMsdK-tTodXp5dCFSWPn-KRN7-OjX6OwjQ2-8hQg0,14176
15
+ pingmapper/test_time.py,sha256=uHT0mtLDP1J6w-snoELyk4UzZ2LrDeF6jGgJJVloalg,750
16
+ pingmapper/version.py,sha256=wVA9FQiVBAtgizy42u87ZKjWF0ms1HV6fR3Wfq-_58o,22
17
+ pingmapper-4.2.11.data/data/pingmapper_config/default_params.json,sha256=YA9Rx1PSdUy4cTq-vtKORo3nNLisCYNOeUBxClldmHs,1285
18
+ pingmapper-4.2.11.dist-info/licenses/LICENSE,sha256=lowDp_th1CGR0Z224a-jYRi-oNFe_0fdldL3USXhX-k,1095
19
+ pingmapper-4.2.11.dist-info/METADATA,sha256=GE0vG0B6xkn45kPVVqgAviVr8dbyzCHV8eCPa1MTYMY,9174
20
+ pingmapper-4.2.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ pingmapper-4.2.11.dist-info/top_level.txt,sha256=RlV4sDoE3uIIDzNMOjN2t012Ia_jsblNVojJvg4q84w,11
22
+ pingmapper-4.2.11.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,22 +0,0 @@
1
- pingmapper/__init__.py,sha256=8zLGg-DfQhnDl2Ky0n-zXpN-8e-g7iR0AcaI4l4Vvpk,32
2
- pingmapper/__main__.py,sha256=6qBbTK3eg_Er2SlUgBUaR0CBrJCKB9P2dpJaq2y5y3g,1421
3
- pingmapper/class_mapSubstrateObj.py,sha256=FXw61jZ2Fnpk74vZl4PT0ijlN9gz1S-kIf8RyyrrI1Y,36785
4
- pingmapper/class_portstarObj.py,sha256=1jFyKUXVL_0rzCA0sQREiCS9qp0ZQqPshOIk0XHcknM,105527
5
- pingmapper/class_rectObj.py,sha256=GV14tTFHc_2XCLTZ-niVDMU3ohH9puHVqWgtjndMW4M,90897
6
- pingmapper/class_sonObj.py,sha256=jxo_QBtYJmM9oJlxPfcKutc_8HkEj1hBdP5F6-61Mz8,74242
7
- pingmapper/funcs_common.py,sha256=pCOIy83srtYKtKUnF4oXkd83_kimZI0NiSrO0TE0O4g,13414
8
- pingmapper/funcs_model.py,sha256=dO9J4-0s1COggHkSUqHFC1qKTs20A6PSvkDqXWMUT6A,7916
9
- pingmapper/funcs_rectify.py,sha256=Goh5Yon_qP93dLjq8Vv_qezPxw1H0Yb7Rw4MCTt9Z8U,12114
10
- pingmapper/gui_main.py,sha256=4mWQDt0qJ-VaQnUQkbYlBiHTIdaVRMh1n5ULkEpRXbQ,34308
11
- pingmapper/main_mapSubstrate.py,sha256=obzB_uM0N8z7C0DJFsk1HGaFWd7g_U5Ejghdxey86u0,21073
12
- pingmapper/main_readFiles.py,sha256=MexJce9Ztsrgyd_3Z26dCTCY58KKLuRf3hIV9U2EGy0,53304
13
- pingmapper/main_rectify.py,sha256=2XsEOqog5HOFjeeiUcY9Sq_Y74F04uEkUxbkEbGnCb8,19587
14
- pingmapper/test_PINGMapper.py,sha256=ZdVPHTlJFAR_JMnY-kzJe3WeIY6Dukb7Apy4InBFpUI,13986
15
- pingmapper/test_time.py,sha256=uHT0mtLDP1J6w-snoELyk4UzZ2LrDeF6jGgJJVloalg,750
16
- pingmapper/version.py,sha256=yvHjVLLVx-JPb9M_ofUHXpjA6rtcCDGAGn6ykTlRppw,21
17
- pingmapper-4.2.9.data/data/pingmapper_config/default_params.json,sha256=YA9Rx1PSdUy4cTq-vtKORo3nNLisCYNOeUBxClldmHs,1285
18
- pingmapper-4.2.9.dist-info/licenses/LICENSE,sha256=lowDp_th1CGR0Z224a-jYRi-oNFe_0fdldL3USXhX-k,1095
19
- pingmapper-4.2.9.dist-info/METADATA,sha256=I8l4_cnALCJZdzDHreS2BJf4kDo4JVVW-BO9n5OMjQQ,9173
20
- pingmapper-4.2.9.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
21
- pingmapper-4.2.9.dist-info/top_level.txt,sha256=RlV4sDoE3uIIDzNMOjN2t012Ia_jsblNVojJvg4q84w,11
22
- pingmapper-4.2.9.dist-info/RECORD,,