xoa.interp.grid2locs
- xoa.interp.grid2locs(xxi, yyi, zzi, ti, vi, xo, yo, zo, to)[source]
Linear interpolation of gridded data to random positions
- Parameters:
xxi (array_like(nyi, nxi)) – Input grid longitudes in degrees, with nyi==1 for 1D coordinates.
yyi (array_like(nyi, nxi)) – Input grid latitudes in degrees, with nxi==1 for 1D coordinates.
zzi (array_like(nexz, nti, nzi, nyi, nxi)) – Input grid depths, positive up. Non effective dimensions must be set to 1. nexz may be equal or a multiple of nex.
ti (array_like(nti)) – Input times
vi (array_like(nexz, ntiz, nzi, nyiz, nxiz)) – Input values.
xo (array_like(no)) – Points longitude
yo (array_like(no)) – Points latitude
zo (array_like(no)) – Points depth, positive up.
to (array_like(no)) – Points time.
- Returns:
array_like(nex, no) – Points value.