• Pierre Cazenave's avatar
    Move the code to write the NetCDF file into a new function... · ca7e2f1f
    Pierre Cazenave authored
    Move the code to write the NetCDF file into a new function (write_FVCOM_forcing.m). Also improve the speed of the interpolation in two ways: 1. Use TriScatteredInterp to do the interpolation (with natural neighbour interpolation), and 2. Do the interpolation onto the element centres using their positions directly, rather than averaging the nodal values for each element. This last step significantly improved the speed of the interpolation
    ca7e2f1f
grid2fvcom.m 3.74 KB