Comments (7)
Great!
from arlpy.
Does typing bellhop.exe
on command line run Bellhop? If so, make sure you start Python or Jupyter from the same terminal where this works.
P.S. You may need to put this in your .bashrc
or .profile
file to ensure the PATH
is set correctly every time you start a terminal.
from arlpy.
Thank you, I think it work.
But when I trying to run an example file at_2020_11_4/tests/arctic/arctic.env, it came up with 'Stop Fatal Error:Check the print file for detail.'
Here is the content of env file and print file.
arctic.env
'Arctic profile' ! TITLE
500.0 ! frequency (Hz)
1
'SVF'
3750 0.0 3750.0
0. 1436.0 0.0 1.0 /
100. 1441.9 0.0 1.0 /
150. 1450.0 0.0 1.0 /
200. 1458.4 0.0 1.0 /
250. 1460.0 0.0 1.0 /
300. 1460.5 0.0 1.0 /
400. 1461.0 0.0 1.0 /
450. 1461.5 0.0 1.0 /
500. 1462.0 0.0 1.0 /
1000. 1466.7 0.0 1.0 /
2000. 1479.6 0.0 1.0 /
2500. 1487.9 0.0 1.0 /
3750. 1510.4 0.0 1.0 /
'A' 0.0
3750. 1510.4 0.0 1.0 /
0.0 1504.0
300.0 ! RMAX (km)
1
100.0 / ! NSRCS SD(1:NSRCS)
1
200.0 / ! NRCVRS RD(1:NRCVRS)
arctic.env.prt
BELLHOP/BELLHOP3D
ENVFile = /mypath/at_2020_11_4/Bellhop/arctic.env.env
*** FATAL ERROR ***
Generated by program or subroutine: BELLHOP - READIN
Unable to open the environmental file
from arlpy.
Also, I try to run a python code with arlpy.
Like this:
import arlpy.uwapm as pm
import arlpy.plot as plt
bathy = [
[0, 30], # 30 m water depth at the transmitter
[300, 20], # 20 m water depth 300 m away
[1000, 25] # 25 m water depth at 1 km
]
ssp = [
[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
]
env = pm.create_env2d(depth=bathy,
soundspeed=ssp,
bottom_soundspeed=1450,
bottom_density=1200,
bottom_absorption=1.0,
tx_depth=15)
pm.print_env(env)
rays = pm.compute_rays(env)
pm.plot_rays(rays, width=1000)
It also came up with:'Stop Fatal Error:Check the print file for detail.'
How can I fix this?
Thank you for your help.
from arlpy.
For your problem re running Bellhop directly, the clue is in the error output: Unable to open the environmental file
and /mypath/at_2020_11_4/Bellhop/arctic.env.env
. Note the .env.env
that Bellhop is trying to read, whereas your env file probably has only one .env
. Bellhop automatically assumes the .env
and so when running Bellhop, you should run it as bellhop.exe /mypath/at_2020_11_4/Bellhop/arctic
without the .env
.
For any further guidance on using Bellhop without arlpy, please consult Bellhop's documentation, and if you have doubts, contact Bellhop's author.
from arlpy.
For your problem running Bellhop from arlpy, try a simpler environment example (e.g. from the docs) to check if your installation is fine. If it is, you can use rays = pm.compute_rays(env, debug=True)
to ask arlpy to retain the Bellhop print file for you to check what the error might be.
from arlpy.
Ok, Thank you for your answer.
I think think the problem solved.
from arlpy.
Related Issues (20)
- Not able to compute or plot arrival times/ rays using bellhop model in python HOT 1
- Transmitter position/ possible request HOT 1
- Exposing when `bellhop.exe` is not recognized HOT 1
- Bellhop Arrivals Complex amplitude calculation HOT 15
- Bellhop throws an unexpected error with arlpy default env file HOT 7
- How can I make sure that BELLHOP installed on my PC? HOT 12
- Range dependent profile -I am getting Print('[WARN] Bellhop did not generate expected output file') HOT 8
- np.int is deprecated in numpy == 1.20.0 HOT 1
- arlpy outputs debug messages to stdout HOT 3
- ARRFile output in two lines instead of one HOT 8
- Compatibility issues with Bokeh version 3.1.1 HOT 4
- Ability to plot a transmission loss slice at one receiver depth HOT 2
- CI is broken
- why is max_angle (and min) limited in bellhop uwapm? HOT 1
- Arrival Amplitude Calculation raises error HOT 9
- failed to validate FigureOptions(...).y_range HOT 2
- Impulse Response Calculation HOT 1
- compute_arrivals and compute_eigenrays do not work in parallel HOT 2
- The reference bellhop version which is compatible with arlpy HOT 1
- `nbeams` is messing up the uwapm notebook tutorial HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arlpy.