in3Utils.geoTrans.projectOnRaster

projectOnRaster(dem, Points, interp='bilinear', inData='rasterData', outData='z')[source]

Projects Points on raster using a bilinear or nearest interpolation and returns the z coord (no for loop)

Parameters
  • dem (dict) – dem dictionary

  • Points (dict) – Points dictionary (x,y)

  • interp (str) – interpolation option, between nearest or bilinear

  • inData (str) – key in the dem dict of the 2D field to use for the interpolation.

  • outData (str) – key in the Points dict toe updat with the interpolated data.

Returns

  • Points (dict) – Points dictionary with z coordinate added or updated

  • ioob (int) – number of out of bounds indexes