|
1 | 1 | # Part of PING-Mapper software |
2 | 2 | # |
| 3 | +# GitHub: https://github.com/CameronBodine/PINGMapper |
| 4 | +# Website: https://cameronbodine.github.io/PINGMapper/ |
| 5 | +# |
3 | 6 | # Co-Developed by Cameron S. Bodine and Dr. Daniel Buscombe |
4 | 7 | # |
5 | 8 | # Inspired by PyHum: https://github.com/dbuscombe-usgs/PyHum |
6 | 9 | # |
7 | 10 | # MIT License |
8 | 11 | # |
9 | | -# Copyright (c) 2022-23 Cameron S. Bodine |
| 12 | +# Copyright (c) 2025 Cameron S. Bodine |
10 | 13 | # |
11 | 14 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
12 | 15 | # of this software and associated documentation files (the "Software"), to deal |
@@ -430,65 +433,6 @@ def _getSon3Chunk(self, i): |
430 | 433 | # Find min depth |
431 | 434 | minDep = min(lMinDep, cMinDep, rMinDep) |
432 | 435 |
|
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 | | - |
492 | 436 | lSonDat = lSonDat[minDep:] |
493 | 437 | cSonDat = cSonDat[minDep:] |
494 | 438 | rSonDat = rSonDat[minDep:] |
|
0 commit comments