CameronBodine / PINGMapper

Open-source interface for processing recreation-grade side scan sonar datasets and reproducibly mapping benthic habitat
https://cameronbodine.github.io/PINGMapper/
MIT License
43 stars 3 forks source link

If no instrument depth in file, automatically detect depth #11

Closed CameronBodine closed 2 years ago

CameronBodine commented 3 years ago

Rec00001. In addition, chunk_id started at -1. Unexpected behavior.

CameronBodine commented 3 years ago

My error:

Using Humminbird's depth estimate...
Done!
Traceback (most recent call last):
  File "main.py", line 71, in <module>
    read_master_func(S[k], H[k], P[k], t, nchunk, exportUnknown, wcp, src, detectDepth, smthDep, adjDep, pltBedPick)
  File "E:\NAU\Python\PINGMapper\pj_readFiles.py", line 430, in read_master_func
    maxDep[i] = acousticBed[i]
IndexError: index 63 is out of bounds for axis 0 with size 63
CameronBodine commented 3 years ago

Dan H error:

Traceback (most recent call last):
  File "main.py", line 71, in <module>
    read_master_func(S[k], H[k], P[k], t, nchunk, exportUnknown, wcp, src, detectDepth, smthDep, adjDep, pltBedPick)
  File "C:\Users\dwhealdo\Documents\Programs\PINGMapper-main\pj_readFiles.py", line 390, in read_master_func
    dep0 = portstarObjs[0].sonMetaDF[depFieldIn].values
  File "C:\ProgramData\Anaconda3\envs\ping\lib\site-packages\pandas\core\frame.py", line 3024, in __getitem__
    indexer = self.columns.get_loc(key)
  File "C:\ProgramData\Anaconda3\envs\ping\lib\site-packages\pandas\core\indexes\base.py", line 3083, in get_loc
    raise KeyError(key) from err
KeyError: 'dep_m'