xoa.interp.grid2rellocs

xoa.interp.grid2rellocs(xxi, yyi, xo, yo)[source]

Compute coordinates of points relative to a curvilinear grid

Parameters:
  • xxi (array_like(nyi, nxi)) – Grid longitudes in degrees

  • yyi (array_like(nyi, nxi)) – Grid latitudes in degrees

  • xo (array_like(no)) – Point longitude

  • yo (array_like(no)) – Point latitude

Returns:

  • array_like(no) – The integer part gives the grid cell index along the second dim, and the fractional part gives the coordinate relative this cell. A value of -1 means outside the grid.

  • array_like(no) – The integer part gives the grid cell index along the first dim, and the fractional part gives the coordinate relative this cell. A value of -1 means outside the grid.