lasiadhi / USACE-Bathymetry

0 stars 2 forks source link

Imaginary k values #139

Closed gmuldoon closed 8 years ago

gmuldoon commented 8 years ago

@dwb1988: You might need to add paths to get this to run, but try the following example. I'm getting imaginary values for k_appro

dx = 10; %10; %25 [h,x] = get_hOct9; [hgrid,xq] = interp_h(h,x,dx); h_guess = initialize_h_guess_pointwise(hgrid, xq, dx);

Tb = 11.7647; % for real data [k_appro] = wavenumber(Tb, h_guess);