Closed elishafer closed 5 years ago
Update, same issue on Python 3.6.
I'm using Python 3.6.4, but I doubt the problem is due to Python version. I suspect it has something to do with your Bellhop version or its execution.
Could you try pm.compute_arrivals(env, debug=True)
? This will leave the Bellhop files around and print their location. If you can zip them up and attach them, that would help debugging. It's the arrival file (*.arr
) that seems to be the problem, but it may be useful to have all the files anyway.
pm.compute_arrivals(env, debug=True)
gives the same error.
I did compile the bellhop.exe on my machine without installing any extra tools. The source I downloaded from the ocean acoustics toolbox.
I'm new to this library so I don't know where the .arr
file is located. Could you point me in the right direction?
OK, I see that the .arr
file is in the /tmp/
folder.
I'm also getting a message in the Jupyter notebook CLI terminal:
At line 39 of file ReadEnvironment.f90 (unit = 5, file = '/tmp/tmpcv_v2w_r.env')
Fortran runtime error: End of file
edit: recompiled the ocean toolbox library and getting this warning:
ReadEnvironment.f90:71:50:
CALL TopBot( ENVFile, PRTFile, freq, AttenUnit, HSTop )
1
Warning: Type mismatch in argument ‘hs’ at (1); passed TYPE(hsinfo) to TYPE(hsinfo)
ReadEnvironment.f90:128:50:
CALL TopBot( ENVFile, PRTFile, freq, AttenUnit, HSBot )
1
Warning: Type mismatch in argument ‘hs’ at (1); passed TYPE(hsinfo) to TYPE(hsinfo)
Thanks! That helped identify the problem!!
The file format for the arr
file seems to have changed in the latest Bellhop. I just downloaded and recompiled the latest Bellhop and was able to reproduce the problem.
Old version:
25000.000000000000 1 1 1
5.00000000
10.0000000
1000.00000
34
34
1.25386987E-05 1636.07935 0.721795559 -4.85707142E-06 -22.5382519 22.5382519 9 8
:
:
New version:
'2D'
25000.000000000000
1 5.00000000
1 10.0000000
1 1000.00000
34
34
1.25360748E-05 1636.0794715189722 0.721795619 -4.85707187E-06 -22.5382576 22.5382576 9 8
:
:
The change is small, and only in the headers, and so should be easy to fix. But I need to find a way to introduce it so that it doesn't break compatibility with the older versions, as many users are likely to have those installed. Give me a day or two to sort this out in a robust way, and I'll release a version for you to try.
Cool, thanks. I downloaded an older version of the bellhop here and it's working now.
Fixed in dev
. Will be part of the upcoming release.
Hi,
In the ipython bellhop sample I'm getting the following error:
Using Python version 3.5.2 on virtual env. Ubuntu 16.04.
I suspect that this may be because of python version. Could you please state the version of Python that you're using?
Thanks!