Hi,
<div><br></div><div>I use GradientOfUnstructuredDataSet to get Gradients. I can see the Gradients_0, ..., Gradients_8 on the Scalars part if I add a new Calculator filter after the GradientOfUnstructuredDataSet filter. My question is how to get these Gradients_0, ..., Gradients_8 in Python Shell or Programmable Filter? I would like to do some data process with them. </div>
<div><br></div><div>I tried to get by this way: </div><div>reader = GetActiveSource()</div><div>gradientsAll = reader.PointData.GetArray(1) # suppose the Gradients is the second variables in the data list</div><div>gradientsAll.GetRange(0) # I can see the range of the 9 gradient scalars but I cannot access the data</div>
<div><br></div><div>I want to create a Jacobi matrix of these 9 gradients to calculate other support matrix and the eigenvalues (for example, to get the Lambda2 criterion). I also need the number of points. I check the proxy but have no idea which function can be used.</div>
<div>Any suggestion or example of codes will be very appreciated!</div><div><br></div><div><br></div><div>Thanks,</div><div>Mei Chen</div>