# Z interpolation with HYDRO from salome.hydrotools.interpolZ import interpolZ, createZfield2 # Calculation case name in HYDRO caseName = # MED file 2D(x,y) of the case produced by SMESH medFile = # Dictionary [med group name] = region name # Value to use for Z when the node is not in a region (used to detect problems) zUndef = # Interpolation method interpolMethod = # Z interpolation on the bathymetry/altimetry on the mesh nodes statZ = interpolZ(caseName, medFile, dictGroupRegion, zUndef,interpolMethod) createZfield2(medFile)