theStudy = salome.myStudy
theStudyId = salome.myStudyId
+import numpy as np
+
# -----------------------------------------------------------------------------
from med import medfile
vx.append(xyz[0])
vy.append(xyz[1])
vz = cas.GetAltitudesForPoints( vx, vy, region, interpolMethod )
- minz = min(vz)
- maxz = max(vz)
- statz[grp.GetName()] = (minz, maxz)
+ minz = np.amin(vz)
+ maxz = np.amax(vz)
+ meanz = np.mean(vz)
+ stdz = np.std(vz)
+ v05z = np.percentile(vz,05)
+ v95z = np.percentile(vz,95)
+
+ statz[grp.GetName()] = (minz, maxz, meanz, stdz, v05z, v95z)
for i,nodeId in enumerate(nodesIds):