Hi,<div><br></div><div>I have the following problem:</div><div><br></div><div>I have the following binary files with data:</div><div>bathymetry file</div><div>temperature file</div><div>depth file</div><div><br></div><div>
I read both the temperature and bathymetry files correctly, display the surface, create the contour, etc.</div><div><br></div><div>The problem I have is the following:</div><div>The temperature file extent is</div><div>x: 0 -> 130</div>
<div>y: 0 -> 250</div><div>z: 0 -> 18</div><div>with the value at that place as a scalar (temperature).</div><div><br></div><div>and the bathymetry is</div><div>x: 0 -> 130</div><div>y: 0 -> 250</div><div>with the value at that place as a scalar (depth).</div>
<div><br></div><div>So I actually have a temperature reading for each one of the 19 z points.</div><div>So after I load the data using the vtkImageReader I request the output and get an vtkImageData object that has correctly for each x,y,z point the temperature as a scalar value.</div>
<div><br></div><div>But the z value is not an actual depth value. The depth value is located in the depth file. So for example for a z value of 10, the depth may be -100. And because the bathymetry file has as scalars the actual depths, the depth of the temperature reading is not the same as the bathymetry.</div>
<div><br></div><div>I tried manually to change the z value of each point in the vtkImageData object, but that didn't worked. </div><div>Any ideas of how I can fix that ?</div><div><br></div><div>Thank you,</div><div>
Victor</div>
<div><br>
</div>