Bellhop: index exceeds the number of array elements (0)

조회 수: 2 (최근 30일)
Zoe Haywood
Zoe Haywood 2021년 6월 16일
답변: Chunru 2021년 6월 17일
'Test Scapa Summer' ! TITLE
10.0 ! FREQ (Hz)
1 ! NMEDIA
'SVN' ! SSPOPT (analytic or C-linear interpolation)
51 0.0 260.0 ! DEPTH of bottom (m)
0.0 1498.18 /
10.0 1498.34 /
20.0 1498.51 /
30.0 1498.67 /
40.0 1498.83 /
50.0 1499.00 /
60.0 1499.16 /
70.0 1499.32 /
80.0 1499.49 /
90.0 1499.65 /
100.0 1499.81 /
110.0 1499.98 /
120.0 1500.14 /
130.0 1500.30 /
140.0 1500.47 /
150.0 1500.63 /
160.0 1500.80 /
170.0 1500.96 /
180.0 1501.12 /
190.0 1501.29 /
200.0 1501.45 /
210.0 1501.62 /
220.0 1501.78 /
230.0 1501.94 /
240.0 1502.11 /
250.0 1502.27 /
260.0 1502.43 /
A0.0
260.0 1600.00 0.0 1.0 /
1 ! NSD
15.0 / ! SD(1:NSD) (m)
51 ! NRD
0.0 220.0 / ! RD(1:NRD) (m)
1001 ! NR
0.0 80.0 / ! R(1:NR ) (km)
R! ’R/C/I/S’
0 ! NBeams
-20.0 20.0 / ! ALPHA1,2 (degrees)
0.0 250.0 85.0 ! STEP (m), ZBOX (m), RBOX (km)
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 6월 16일
Is that BELLHOP from the (third-party) Acoustics Toolbox, https://oalib-acoustics.org/AcousticsToolbox/index_at.html ?
What commands are you using?
Zoe Haywood
Zoe Haywood 2021년 6월 16일
Yes it is and I used plotssp. This worked on the Munk practice one so I believe I've just got some lines wrong in the env file but not sure which ones. These were the full error messages:
Index exceeds the number of array elements (0).
Error in read_env_core (line 233)
Bdry.Bot.Opt = [ BotOpt( nchars( 1 ) + 1 : nchars(
2 ) - 1 ) blanks( 3 - ( nchars( 2 ) - nchars( 1 ) ) )
];
Error in read_env (line 19)
[ TitleEnv, freq, SSP, Bdry, fid ] = read_env_core(
envfil ); % read in the environmental file
Error in plotssp (line 11)
[ ~, ~, SSP, Bdry, ~, ~, ~, ~, fid ] = read_env(
envfil, 'BELLHOP' );

댓글을 달려면 로그인하십시오.

채택된 답변

Chunru
Chunru 2021년 6월 17일
Check the quotation marks. AcousticToolbox input use the single quote " ' " for input.
260.0 1502.43 /
A0.0
260.0 1600.00 0.0 1.0 /
0.0 80.0 / ! R(1:NR ) (km)
R! ’R/C/I/S’
0 ! NBeams

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by