Hello users
I've been tring to modify the bottom value using python script.
In oder to chagne the depth in some nodes.
First, I extract the bottom value from geometry file using python script.
Second, I modified depths of some nodes with same array 'BOTTOM' values
And then, I want to create selafin file, How can do it?
I think, the simplest method is to replace only 'BOTTOM' values
because the other values are equal
Could help me, please? I'm python beginner.
Thnak you
--- script sample here ----
filename = "geometry.slf"
slf = SELAFIN(filename)
var_names=[item.rstrip() for item in slf.VARNAMES]
x = slf.MESHX
y = slf.MESHY
z = np.squeeze(slf.getVariablesAt(0, [var_names.index('BOTTOM')]))
I wanat to replace 'BOTTOM' and write new SELAFIN file