1 # Z interpolation with HYDRO
2 from salome.hydrotools.interpolZ import interpolZ, createZfield2
4 # Calculation case name in HYDRO
5 caseName = <case_name_from_dlg>
7 # MED file 2D(x,y) of the case produced by SMESH
8 medFile = <MED_file_path_from_dlg>
10 # Dictionary [med group name] = region name
13 # Value to use for Z when the node is not in a region (used to detect problems)
14 zUndef = <z_undef_value_from_dlg>
16 # Interpolation method
17 interpolMethod = <interpolation_method_value_from_dlg>
19 # Z interpolation on the bathymetry/altimetry on the mesh nodes
20 statZ = interpolZ(caseName, medFile, dictGroupRegion, zUndef,interpolMethod)
21 createZfield2(medFile)