ana3AIMEC.aimecTools.transform

transform(fname, rasterTransfo, interpMethod)[source]

Transfer data from old raster to new raster

Assign value to the points of the new raster (after domain transormation)

Parameters
  • fname (str, dict) – path to rasterfile to transform- or already read to dict with data as numpy nd array

  • rasterTransfo (dict) – transformation information

  • interpMethod (str) – interpolation method to chose between ‘nearest’ and ‘bilinear’

Returns

newData – new_data = z, pressure or depth… corresponding to fname on the new raster

Return type

2D numpy array