Salome HOME
GlobalNodeIds in MEDReader in // context.
[modules/paravis.git] / src / Plugins / MEDReader / Doc / HowTo0.py
1 from paraview.simple import *
2
3 myMedReader=MEDReader(FileName="/home/H87074/WORK/TESTS_AMA/TESTS0/ssll117a/ssll117a.med")
4
5 # list of all keys
6
7 keys=myMedReader.GetProperty("FieldsTreeInfo")[::2]
8
9 # list all the names of arrays that can be seen (including their spatial discretization)
10
11 arr_name_with_dis=[elt.split("/")[-1] for elt in keys]
12
13 # list all the names of arrays (Equal to those in the MED File)
14
15 arr_name=[elt.split(myMedReader.GetProperty("Separator").GetData())[0] for elt in arr_name_with_dis]
16