pingmapper 5.4.8__tar.gz → 5.4.9__tar.gz
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-5.4.8 → pingmapper-5.4.9}/PKG-INFO +1 -1
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/class_mapSubstrateObj.py +7 -4
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/class_portstarObj.py +27 -4
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/class_rectObj.py +3 -3
- pingmapper-5.4.9/pingmapper/version.py +1 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper.egg-info/PKG-INFO +1 -1
- pingmapper-5.4.8/pingmapper/version.py +0 -1
- {pingmapper-5.4.8 → pingmapper-5.4.9}/LICENSE +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/README.md +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/__init__.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/__main__.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/class_sonObj.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/class_sonObj_nadirgaptest.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/default_params.json +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/doWork.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/funcs_common.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/funcs_model.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/funcs_rectify.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/gui_main.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/main_mapSubstrate.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/main_readFiles.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/main_rectify.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/nonGUI_batch_main.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/nonGui_main.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/processing_scripts/main_batchDirectory_2024-01-18_0926.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/processing_scripts/main_batchDirectory_2024-01-18_0929.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/scratch/funcs_pyhum_correct.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/scratch/main.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/scratch/main_batchDirectory.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/self_check.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/test_PINGMapper.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/test_cli_self_check.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/test_dq_filter.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/test_time.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/DRAFT_Workflows/avg_predictions_Mussel_WBL.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/DRAFT_Workflows/gen_centerline.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/DRAFT_Workflows/gen_centerline_from_bankline.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/DRAFT_Workflows/gen_centerline_trkpnts_fitspline_DRAFT.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/DRAFT_Workflows/testEXAMPLE_mosaic_logit.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/RawEGN_avg_predictions.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/00_substrate_logits_mosaic_transects.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/00_substrate_shps_mosaic_transects.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/01_gen_centerline_from_coverage.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/02_gen_summary_stamp_shps.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/03_gen_summary_shp.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/04_combine_summary_shp_csv.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/05_gen_summary_shp_plots.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/06_compare_raw-egn_volume.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/08_raw-egn_hardReacheFreq_hist.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/09_raw-egn_PatchSize_density.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/summarize_project_substrate.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/export_coverage.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/main_mosaic_transects.py +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper.egg-info/SOURCES.txt +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper.egg-info/dependency_links.txt +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper.egg-info/requires.txt +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper.egg-info/top_level.txt +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/pyproject.toml +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/setup.cfg +0 -0
- {pingmapper-5.4.8 → pingmapper-5.4.9}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pingmapper
|
|
3
|
-
Version: 5.4.
|
|
3
|
+
Version: 5.4.9
|
|
4
4
|
Summary: Open-source interface for processing recreation-grade side scan sonar datasets and reproducibly mapping benthic habitat
|
|
5
5
|
Author: Cameron Bodine, Daniel Buscombe, Iury T Simoes-Sousa
|
|
6
6
|
Author-email: bodine.cs@gmail.email
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
30
|
# SOFTWARE.
|
|
31
31
|
|
|
32
|
-
import os, sys
|
|
32
|
+
import os, sys, re
|
|
33
33
|
|
|
34
34
|
# Add 'pingmapper' to the path, may not need after pypi package...
|
|
35
35
|
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
@@ -1066,9 +1066,12 @@ class mapSubObj(rectObj):
|
|
|
1066
1066
|
|
|
1067
1067
|
# Extract chunkID from filename and store in dict
|
|
1068
1068
|
for n in npzs:
|
|
1069
|
-
c = os.path.basename(n)
|
|
1070
|
-
|
|
1071
|
-
|
|
1069
|
+
c = os.path.splitext(os.path.basename(n))[0]
|
|
1070
|
+
match = re.search(r'_(\d+)$', c)
|
|
1071
|
+
if match is None:
|
|
1072
|
+
continue
|
|
1073
|
+
|
|
1074
|
+
c = int(match.group(1))
|
|
1072
1075
|
toMap[c] = n
|
|
1073
1076
|
|
|
1074
1077
|
del npzDir, npzs
|
|
@@ -714,8 +714,18 @@ class portstarObj(object):
|
|
|
714
714
|
except:
|
|
715
715
|
pass
|
|
716
716
|
|
|
717
|
-
#
|
|
718
|
-
|
|
717
|
+
# For substrate/prediction mosaics, enforce configured map resolution.
|
|
718
|
+
force_map_res = (not son) and (self.port.pix_res_map != 0)
|
|
719
|
+
if force_map_res:
|
|
720
|
+
vrt_options = gdal.BuildVRTOptions(
|
|
721
|
+
resampleAlg=resampleAlg,
|
|
722
|
+
bandList=bands_to_use,
|
|
723
|
+
xRes=self.port.pix_res_map,
|
|
724
|
+
yRes=self.port.pix_res_map,
|
|
725
|
+
targetAlignedPixels=True,
|
|
726
|
+
)
|
|
727
|
+
else:
|
|
728
|
+
vrt_options = gdal.BuildVRTOptions(resampleAlg=resampleAlg, bandList = bands_to_use)
|
|
719
729
|
gdal.BuildVRT(outVRT, imgs, options=vrt_options)
|
|
720
730
|
|
|
721
731
|
# Create GeoTiff from vrt
|
|
@@ -733,7 +743,10 @@ class portstarObj(object):
|
|
|
733
743
|
# gdal.Translate(outTIF, ds, xRes=xRes, yRes=yRes, **kwargs)
|
|
734
744
|
|
|
735
745
|
# Create geotiff
|
|
736
|
-
|
|
746
|
+
if force_map_res:
|
|
747
|
+
gdal.Translate(outTIF, ds, xRes=self.port.pix_res_map, yRes=self.port.pix_res_map, **kwargs)
|
|
748
|
+
else:
|
|
749
|
+
gdal.Translate(outTIF, ds, **kwargs)
|
|
737
750
|
|
|
738
751
|
# Generate overviews
|
|
739
752
|
if overview:
|
|
@@ -841,7 +854,17 @@ class portstarObj(object):
|
|
|
841
854
|
|
|
842
855
|
# Build VRT
|
|
843
856
|
# vrt_options = gdal.BuildVRTOptions(resampleAlg=resampleAlg, bandList = bands, xRes=xRes, yRes=yRes)
|
|
844
|
-
|
|
857
|
+
force_map_res = (not son) and (self.port.pix_res_map != 0)
|
|
858
|
+
if force_map_res:
|
|
859
|
+
vrt_options = gdal.BuildVRTOptions(
|
|
860
|
+
resampleAlg=resampleAlg,
|
|
861
|
+
bandList=bands_to_use,
|
|
862
|
+
xRes=self.port.pix_res_map,
|
|
863
|
+
yRes=self.port.pix_res_map,
|
|
864
|
+
targetAlignedPixels=True,
|
|
865
|
+
)
|
|
866
|
+
else:
|
|
867
|
+
vrt_options = gdal.BuildVRTOptions(resampleAlg=resampleAlg, bandList = bands_to_use)
|
|
845
868
|
gdal.BuildVRT(outVRT, imgs, options=vrt_options)
|
|
846
869
|
|
|
847
870
|
# Generate overviews
|
|
@@ -2409,7 +2409,7 @@ class rectObj(sonObj):
|
|
|
2409
2409
|
NA
|
|
2410
2410
|
'''
|
|
2411
2411
|
filterIntensity = False
|
|
2412
|
-
pix_res = self.pix_res_son
|
|
2412
|
+
pix_res = self.pix_res_son if son else self.pix_res_map
|
|
2413
2413
|
do_resize = True
|
|
2414
2414
|
|
|
2415
2415
|
# # Set pixel resolution
|
|
@@ -2786,7 +2786,7 @@ class rectObj(sonObj):
|
|
|
2786
2786
|
del out, img
|
|
2787
2787
|
|
|
2788
2788
|
if do_resize:
|
|
2789
|
-
self._pixresResize(gtiff)
|
|
2789
|
+
self._pixresResize(gtiff, son=son)
|
|
2790
2790
|
|
|
2791
2791
|
if self.rect_wcr:
|
|
2792
2792
|
if son:
|
|
@@ -2932,7 +2932,7 @@ class rectObj(sonObj):
|
|
|
2932
2932
|
del out
|
|
2933
2933
|
|
|
2934
2934
|
if do_resize:
|
|
2935
|
-
self._pixresResize(gtiff)
|
|
2935
|
+
self._pixresResize(gtiff, son=son)
|
|
2936
2936
|
|
|
2937
2937
|
gc.collect()
|
|
2938
2938
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '5.4.9'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pingmapper
|
|
3
|
-
Version: 5.4.
|
|
3
|
+
Version: 5.4.9
|
|
4
4
|
Summary: Open-source interface for processing recreation-grade side scan sonar datasets and reproducibly mapping benthic habitat
|
|
5
5
|
Author: Cameron Bodine, Daniel Buscombe, Iury T Simoes-Sousa
|
|
6
6
|
Author-email: bodine.cs@gmail.email
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '5.4.8'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/DRAFT_Workflows/avg_predictions_Mussel_WBL.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/DRAFT_Workflows/testEXAMPLE_mosaic_logit.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pingmapper-5.4.8 → pingmapper-5.4.9}/pingmapper/utils/Substrate_Summaries/03_gen_summary_shp.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|