Effacer les filtres
Effacer les filtres

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

9 vues (au cours des 30 derniers jours)
Zoe Haywood
Zoe Haywood le 16 Juin 2021
Réponse apportée : Chunru le 17 Juin 2021
'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 commentaires
Walter Roberson
Walter Roberson le 16 Juin 2021
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 le 16 Juin 2021
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' );

Connectez-vous pour commenter.

Réponse acceptée

Chunru
Chunru le 17 Juin 2021
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

Plus de réponses (0)

Catégories

En savoir plus sur Search Path dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by