Skip to content

Commit c8ceada

Browse files
Merge pull request #149 from CameronBodine/dev
Merge dev with main
2 parents 7a09faf + 93c41b6 commit c8ceada

15 files changed

Lines changed: 1006 additions & 2475 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Python 3.7*
2121

2222
user_params.json
2323

24+
pingmapper/clip_table.csv
2425
pingmapper/procData/*
2526
pingmapper/__pycache__/*
2627
oldFiles/*

pingmapper/class_mapSubstrateObj.py

Lines changed: 4 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# Part of PING-Mapper software
22
#
3+
# GitHub: https://github.com/CameronBodine/PINGMapper
4+
# Website: https://cameronbodine.github.io/PINGMapper/
5+
#
36
# Co-Developed by Cameron S. Bodine and Dr. Daniel Buscombe
47
#
58
# Inspired by PyHum: https://github.com/dbuscombe-usgs/PyHum
69
#
710
# MIT License
811
#
9-
# Copyright (c) 2022-23 Cameron S. Bodine
12+
# Copyright (c) 2025 Cameron S. Bodine
1013
#
1114
# Permission is hereby granted, free of charge, to any person obtaining a copy
1215
# of this software and associated documentation files (the "Software"), to deal
@@ -430,65 +433,6 @@ def _getSon3Chunk(self, i):
430433
# Find min depth
431434
minDep = min(lMinDep, cMinDep, rMinDep)
432435

433-
# # Pad arrays if chunk's minDep > minDep and fill with zero's
434-
# # Left
435-
# if lMinDep > minDep:
436-
# # Get current sonDat shape
437-
# r, c = lSonDat.shape
438-
439-
# # Determine pad size (actual offset from top)
440-
# pad = lMinDep - minDep
441-
442-
# # Make new zero array w/ pad added in
443-
# newArr = np.zeros((pad+r, c))
444-
# # Fill with nan to prevent unneeded prediction
445-
# newArr.fill(np.nan)
446-
447-
# # Fill sonDat in appropriate location
448-
# newArr[pad:,:] = lSonDat
449-
# lSonDat = newArr.copy()
450-
# del newArr
451-
452-
# # Center
453-
# if cMinDep > minDep:
454-
# # Get current sonDat shape
455-
# r, c = cSonDat.shape
456-
457-
# # Determine pad size
458-
# pad = cMinDep - minDep
459-
460-
# # Make new zero array w/ pad added in
461-
# newArr = np.zeros((pad+r, c))
462-
# # Fill with nan to prevent unneeded prediction
463-
# newArr.fill(np.nan)
464-
465-
# # Fill sonDat in appropriate location
466-
# newArr[pad:,:] = cSonDat
467-
# cSonDat = newArr.copy()
468-
# del newArr
469-
470-
# # Return cpad to recover original dims
471-
# cpad = pad
472-
# else:
473-
# cpad = cMinDep
474-
475-
# # Right
476-
# if rMinDep > minDep:
477-
# # Get current sonDat shape
478-
# r, c = rSonDat.shape
479-
# # Determine pad size
480-
# pad = rMinDep - minDep
481-
482-
# # Make new zero array w/ pad added in
483-
# newArr = np.zeros((pad+r, c))
484-
# # Fill with nan to prevent unneeded prediction
485-
# newArr.fill(np.nan)
486-
487-
# # Fill sonDat in appropriate location
488-
# newArr[pad:,:] = rSonDat
489-
# rSonDat = newArr.copy()
490-
# del newArr
491-
492436
lSonDat = lSonDat[minDep:]
493437
cSonDat = cSonDat[minDep:]
494438
rSonDat = rSonDat[minDep:]

pingmapper/class_portstarObj.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# Part of PING-Mapper software
22
#
3+
# GitHub: https://github.com/CameronBodine/PINGMapper
4+
# Website: https://cameronbodine.github.io/PINGMapper/
5+
#
36
# Co-Developed by Cameron S. Bodine and Dr. Daniel Buscombe
47
#
58
# Inspired by PyHum: https://github.com/dbuscombe-usgs/PyHum
69
#
710
# MIT License
811
#
9-
# Copyright (c) 2022-23 Cameron S. Bodine
12+
# Copyright (c) 2025 Cameron S. Bodine
1013
#
1114
# Permission is hereby granted, free of charge, to any person obtaining a copy
1215
# of this software and associated documentation files (the "Software"), to deal
@@ -392,10 +395,7 @@ def _createMosaicTransect(self,
392395
# maxChunk = 50 # Max chunks per mosaic. Limits each mosaic file size.
393396
self.imgsToMosaic = [] # List to store files to mosaic.
394397

395-
if cog:
396-
chunkField = 'chunk_id'
397-
else:
398-
chunkField = 'chunk_id_2'
398+
chunkField = 'chunk_id'
399399

400400
if son:
401401
if self.port.rect_wcp: # Moscaic wcp sonograms if previousl exported

0 commit comments

Comments
 (0)