Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index and columns reading format may be incorrect (Bellhop from AT 2023 updated version) #114

Open
xuliang5115 opened this issue Feb 17, 2025 · 3 comments
Assignees

Comments

@xuliang5115
Copy link

import arlpy.uwapm as pm
import numpy as np

env = pm.create_env2d(
frequency=10000,
soundspeed=[
[0, 1540], # 1540 m/s at the surface
[10, 1530], # 1530 m/s at 10 m depth
[20, 1532], # 1532 m/s at 20 m depth
[25, 1533], # 1533 m/s at 25 m depth
[30, 1535] # 1535 m/s at the seabed
],
bottom_soundspeed=1550,
bottom_density=1200,
bottom_absorption=1.0,
tx_depth=15,
depth=[
[0, 25], # 30 m water depth at the transmitter
[300, 30], # 20 m water depth 300 m away
[1000, 20] # 25 m water depth at 1 km
]
)

env['rx_range'] = np.linspace(0, 1000, 1001)
env['rx_depth'] = np.linspace(0, 30, 301)

tloss = pm.compute_transmission_loss(env)
print(tloss.shape)
xr = (min(tloss.columns), max(tloss.columns))
print(xr[0], xr[1])
pm.plot_transmission_loss(tloss, env=env, clim=[-60, -30], width=900)

Image

@xuliang5115
Copy link
Author

Then some path testing may be needed, as the current code seems to require Bellhop.exe and .py to be in the same folder, otherwise the output file cannot be detected, or move from the path of file to the path where .exe is located during calculation and plotting.

@mchitre
Copy link
Member

mchitre commented Feb 17, 2025

There is no special requirement of where bellhop.exe is, as long as it in on your PATH.

@mchitre
Copy link
Member

mchitre commented Feb 17, 2025

It's not clear to me from the issue description as to what the problem is. The code and screenshot doesn't describe anything. Please update the description to explain what the problem is and how to reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants