pingmapper 4.2.6__py3-none-any.whl → 4.2.8__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.
@@ -80,6 +80,8 @@ def map_master_func(logfilename='',
80
80
  mask_wc=False,
81
81
  spdCor=False,
82
82
  maxCrop=False,
83
+ moving_window=False,
84
+ window_stride=0.1,
83
85
  USE_GPU=False,
84
86
  remShadow=0,
85
87
  detectDep=0,
@@ -75,7 +75,7 @@ def read_master_func(logfilename='',
75
75
  pix_res_map=0,
76
76
  x_offset=0,
77
77
  y_offset=0,
78
- tileFile=False,
78
+ tileFile='.png',
79
79
  egn=False,
80
80
  egn_stretch=0,
81
81
  egn_stretch_factor=1,
@@ -83,11 +83,13 @@ def read_master_func(logfilename='',
83
83
  wcm=False,
84
84
  wcr=False,
85
85
  wco=False,
86
- sonogram_colorMap='Greys',
86
+ sonogram_colorMap='Greys_r',
87
87
  mask_shdw=False,
88
88
  mask_wc=False,
89
89
  spdCor=False,
90
90
  maxCrop=False,
91
+ moving_window=False,
92
+ window_stride=0.1,
91
93
  USE_GPU=False,
92
94
  remShadow=0,
93
95
  detectDep=0,
@@ -354,7 +356,13 @@ def read_master_func(logfilename='',
354
356
 
355
357
  son.sonMetaFile = meta['metaCSV']
356
358
 
357
- sonObjs.append(son)
359
+ if sonFiles:
360
+ if son.beamName in sonFiles:
361
+ sonObjs.append(son)
362
+ else:
363
+ pass
364
+ else:
365
+ sonObjs.append(son)
358
366
 
359
367
  ####
360
368
  # OLD
@@ -1250,10 +1258,10 @@ def read_master_func(logfilename='',
1250
1258
  # Export un-rectified sonar tiles #
1251
1259
  ############################################################################
1252
1260
 
1253
- moving_window = True
1254
- window_stride = 0.1
1255
- tileFile = '.mp4'
1256
- frameRate = 5
1261
+ # moving_window = True
1262
+ # window_stride = 0.1
1263
+ # tileFile = '.mp4'
1264
+ # frameRate = 5
1257
1265
  if tileFile == '.mp4':
1258
1266
  imgType = '.png'
1259
1267
  else:
@@ -84,13 +84,14 @@ def rectify_master_func(logfilename='',
84
84
  mask_wc=False,
85
85
  spdCor=False,
86
86
  maxCrop=False,
87
+ moving_window=False,
88
+ window_stride=0.1,
87
89
  USE_GPU=False,
88
90
  remShadow=0,
89
91
  detectDep=0,
90
92
  smthDep=0,
91
93
  adjDep=0,
92
94
  pltBedPick=False,
93
- cog=True,
94
95
  rect_wcp=False,
95
96
  rect_wcr=False,
96
97
  rubberSheeting=True,
@@ -261,6 +262,10 @@ def rectify_master_func(logfilename='',
261
262
  # Smooth Trackline #
262
263
  ############################################################################
263
264
 
265
+ cog=True
266
+ if 'rectMethod' != 'COG':
267
+ cog=False
268
+
264
269
  smthTrkFilenames = smoothTrackline(projDir=projDir, x_offset=x_offset, y_offset=y_offset, nchunk=nchunk, cog=cog, threadCnt=threadCnt)
265
270
  for son in portstar:
266
271
  beam = son.beamName
pingmapper/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '4.2.6'
1
+ __version__ = '4.2.8'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pingmapper
3
- Version: 4.2.6
3
+ Version: 4.2.8
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
@@ -8,16 +8,15 @@ pingmapper/funcs_common.py,sha256=pCOIy83srtYKtKUnF4oXkd83_kimZI0NiSrO0TE0O4g,13
8
8
  pingmapper/funcs_model.py,sha256=dO9J4-0s1COggHkSUqHFC1qKTs20A6PSvkDqXWMUT6A,7916
9
9
  pingmapper/funcs_rectify.py,sha256=Goh5Yon_qP93dLjq8Vv_qezPxw1H0Yb7Rw4MCTt9Z8U,12114
10
10
  pingmapper/gui_main.py,sha256=4mWQDt0qJ-VaQnUQkbYlBiHTIdaVRMh1n5ULkEpRXbQ,34308
11
- pingmapper/main_mapSubstrate.py,sha256=XfjWeI77JeSc0Z64ktwAe4_Bo9yx6FnjANyDnzp1dZI,20991
12
- pingmapper/main_readFiles.py,sha256=FScvLChVQIjlicX1yzr263rad71ECojS1hz9MiEAKaA,53036
13
- pingmapper/main_rectify.py,sha256=k3XA3DEsUp_WZ9J7ugguXqmQjVCCTBhZvm73_UBuJiI,19468
14
- pingmapper/mosaic_substrate.py,sha256=KEIu4Os8ax9fYYqejphO1suhrZwZ6Cd9i4H5t9Bk9NA,966
11
+ pingmapper/main_mapSubstrate.py,sha256=obzB_uM0N8z7C0DJFsk1HGaFWd7g_U5Ejghdxey86u0,21073
12
+ pingmapper/main_readFiles.py,sha256=R2xzNIoAQOmXAnGiGkiq8h7MxNDAIX6hnKs9YB86EAg,53292
13
+ pingmapper/main_rectify.py,sha256=fQMd09RbvkTOQ3l_fKYg1mZn7egMtuPJkG8-rN0iT4A,19589
15
14
  pingmapper/test_PINGMapper.py,sha256=ZdVPHTlJFAR_JMnY-kzJe3WeIY6Dukb7Apy4InBFpUI,13986
16
15
  pingmapper/test_time.py,sha256=uHT0mtLDP1J6w-snoELyk4UzZ2LrDeF6jGgJJVloalg,750
17
- pingmapper/version.py,sha256=5qNn46yLWlQWULkaH44HvigjOMJ2sqekprJW6UxbbCg,21
18
- pingmapper-4.2.6.data/data/pingmapper_config/default_params.json,sha256=YA9Rx1PSdUy4cTq-vtKORo3nNLisCYNOeUBxClldmHs,1285
19
- pingmapper-4.2.6.dist-info/licenses/LICENSE,sha256=lowDp_th1CGR0Z224a-jYRi-oNFe_0fdldL3USXhX-k,1095
20
- pingmapper-4.2.6.dist-info/METADATA,sha256=9NxxFRheLBRDFgPanF02e7D-rhijnsGh7cc0_RJl2EU,9173
21
- pingmapper-4.2.6.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
22
- pingmapper-4.2.6.dist-info/top_level.txt,sha256=RlV4sDoE3uIIDzNMOjN2t012Ia_jsblNVojJvg4q84w,11
23
- pingmapper-4.2.6.dist-info/RECORD,,
16
+ pingmapper/version.py,sha256=ltynC5U5URkV3Hq3VGLUkBudnSS6yOSDZUICYCTmB0U,21
17
+ pingmapper-4.2.8.data/data/pingmapper_config/default_params.json,sha256=YA9Rx1PSdUy4cTq-vtKORo3nNLisCYNOeUBxClldmHs,1285
18
+ pingmapper-4.2.8.dist-info/licenses/LICENSE,sha256=lowDp_th1CGR0Z224a-jYRi-oNFe_0fdldL3USXhX-k,1095
19
+ pingmapper-4.2.8.dist-info/METADATA,sha256=Gw7rghv0FyidtHm4SRh9s1dB0wbsJRT0DV-CS7ayJIU,9173
20
+ pingmapper-4.2.8.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
21
+ pingmapper-4.2.8.dist-info/top_level.txt,sha256=RlV4sDoE3uIIDzNMOjN2t012Ia_jsblNVojJvg4q84w,11
22
+ pingmapper-4.2.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.1.0)
2
+ Generator: setuptools (80.3.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,27 +0,0 @@
1
-
2
-
3
-
4
- from osgeo import gdal
5
-
6
-
7
-
8
- resampleAlg = 'nearest'
9
- overview = False
10
- inVrt = r'D:\redbo_science\projects\GulfSturgeonProject_2025\ProcessedData\Raw\PRL_438_395_20210304_FWSB1_Rec00008_2025\substrate\map_substrate_mosaic\PRL_438_395_20210304_FWSB1_Rec00008_2025_map_substrate_raster_mosaic_0_copy.vrt'
11
- outRast = r'D:\redbo_science\projects\GulfSturgeonProject_2025\ProcessedData\Raw\PRL_438_395_20210304_FWSB1_Rec00008_2025\substrate\map_substrate_mosaic\PRL_438_395_20210304_FWSB1_Rec00008_2025_map_substrate.tif'
12
-
13
- # Create GeoTiff from vrt
14
- ds = gdal.Open(inVrt)
15
-
16
- kwargs = {'format': 'GTiff',
17
- 'creationOptions': ['NUM_THREADS=ALL_CPUS', 'COMPRESS=LZW', 'TILED=YES']
18
- }
19
-
20
- # Create geotiff
21
- gdal.Translate(outRast, ds, **kwargs)
22
-
23
- # Generate overviews
24
- if overview:
25
- dest = gdal.Open(outRast, 1)
26
- gdal.SetConfigOption('COMPRESS_OVERVIEW', 'DEFLATE')
27
- dest.BuildOverviews('nearest', [2 ** j for j in range(1,10)])