Closed HamishB closed 3 years ago
Thanks. We will fix it. But please do not do Interpolation from gdat objects as we’ve discussed many times already.
Understood about interpolating gdat objects. In this case I was using it for generating offshore/deep water slopes for Calc_IT_Fric() so wasn't too concerned with subsampling problems as the elements are large out at sea compared to the raster netcdf bathy cell size.
Okay cool..because nearshore it creates a ton of problems as it can create artificial topo-bathymetric holes.
If you want a quick fix for this just specify the kwarg slope_calc
there. I believe rms
is the default option...This should by pass the error for now.
See #207 for fix
Hi,
running
m = interp(m, {gdat1}, 'type', 'slope')
gives an error for the disp() on line 132 of @msh/private/GridData.m as 'slope_calc' is undefined. Commenting out the disp() lets it continue & complete without further error.thanks, Hamish