X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=doc%2Fsalome%2Fexamples%2Fh011_normalCaseManualInterpolZ.py;h=6f71f1a47f6ae78afc048fb1fb65b26aa3e45f41;hb=ef44f612e7baa53c452b3ceb2b7202b8330eb234;hp=ffdd3b129edf3d7986e019a2f7420e7b50d6a013;hpb=602fe3dd385c109d18f7f8a71eea71ff53852b55;p=modules%2Fhydro.git diff --git a/doc/salome/examples/h011_normalCaseManualInterpolZ.py b/doc/salome/examples/h011_normalCaseManualInterpolZ.py index ffdd3b12..6f71f1a4 100644 --- a/doc/salome/examples/h011_normalCaseManualInterpolZ.py +++ b/doc/salome/examples/h011_normalCaseManualInterpolZ.py @@ -479,7 +479,7 @@ if salome.sg.hasDesktop(): # --- Z interpolation with HYDRO #---------------------- -from salome.hydrotools.interpolZ import interpolZ, createZfield2 +from salome.hydrotools.interpolZ import interpolZ from salome.hydrotools.controls import controlStatZ # --- case name in HYDRO @@ -494,9 +494,13 @@ dicoGroupeRegion= dict(litMineur = 'garonne_1_litMineur', ) # --- value to use for Z when the node is not in a region (used to detect problems) zUndef = 90 +# --- interpolation Method: 0 = nearest point on bathymetry (default), 1 = linear interpolation +interpolMethod = 0 +# --- produce a 3D mesh (Z set to its value instead of 0 +m3d = True # --- Z interpolation on the bathymety/altimetry on the mesh nodes -statz = interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef) +statz = interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef, interpolMethod, m3d) #print statz refstatz = {'riveDroite': (10.88, 32.61, 24.17, 5.12, 17.57, 31.33, 0.25), 'riveGauche': (7.72, 71.86, 24.51, 12.18, 12.90, 60.36, 0.25),