ana3AIMEC.aimecTools.transform

transform(fname, rasterTransfo, interpMethod)[source]

Transfer data from old raster to new raster

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

Parameters
  • fname (str) – path to rasterfile to transform

  • 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