in2Trans.transformFields.convertDepthThickness

convertDepthThickness(inputDict, demDict, typeOfInput='depth')[source]

convert depthField to thicknessField or the other way around depending on type, using a DEM to compute the slope angle required for transformation also writes field to a new directory called transformed where depthFile/thicknessFile is located

Parameters
  • demDict (dict) – dictionary with dem header and rasterData (numpy nd array of z values)

  • inputDict (dict) – dictionary with depthField/thicknessField header and rasterData (numpy nd array of depth values)

  • typeOfInput (str) – provided inputDict type: thickness or depth

Returns

outputDict – dictionary with header and thickness/depth field numpy array as rasterData key

Return type

dict