You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
around half the time I run m = interp(m, gdat); on a high res. inset mesh I get NaNs sneaking into m.b. Sometimes even two of them. This happens at nodes which end up just ever so slightly outside the bbox, even though there is valid elevation data in the gdat DEM well beyond the given bbox. If the (possibly massive) DEM is being clipped to the bbox, perhaps a small buffer area could be added to the clipping box? e.g. 1% of the width or height of the bbox or an extra row/column or two of the DEM grid.
(often the bottom right corner, but not always)
dumb work-around: just re-run mshopts.build.grd until sum(isnan(m.b)) == 0.
thanks,
Hamish
The text was updated successfully, but these errors were encountered:
Hi,
around half the time I run
m = interp(m, gdat);
on a high res. inset mesh I get NaNs sneaking intom.b
. Sometimes even two of them. This happens at nodes which end up just ever so slightly outside the bbox, even though there is valid elevation data in the gdat DEM well beyond the given bbox. If the (possibly massive) DEM is being clipped to the bbox, perhaps a small buffer area could be added to the clipping box? e.g. 1% of the width or height of the bbox or an extra row/column or two of the DEM grid.(often the bottom right corner, but not always)
dumb work-around: just re-run
mshopts.build.grd
untilsum(isnan(m.b))
== 0.thanks,
Hamish
The text was updated successfully, but these errors were encountered: