Due to the odd vertical structure in HYCOM, it is sometimes the case that there are fewer than 16 data points available. As such, limit the number of neightbours to either 16 or the entire vector. Similarly, if there are only two data points, a triangulation seems overkill (and impossible), so just take the mean of those two values.
Due to the odd vertical structure in HYCOM, it is sometimes the case that there are fewer than 16 data points available. As such, limit the number of neightbours to either 16 or the entire vector. Similarly, if there are only two data points, a triangulation seems overkill (and impossible), so just take the mean of those two values.

pwcazenave/fvcom-toolbox,pwcazenave/fvcom-toolbox