Commit eb466977 authored by Whitfield, Ross's avatar Whitfield, Ross
Browse files

Update IPTS-21442/vts_to_vti.py

parent 9fa166d9
......@@ -8,5 +8,5 @@ for filename in filenames:
_, x, _, y, _, z = vts.GetDataInformation().DataInformation.GetExtent()
print(x,y,z)
resampleToImage = ResampleToImage(Input=vts)
resampleToImage.SamplingDimensions = [x, y, z]
resampleToImage.SamplingDimensions = [x+1, y+1, z+1]
SaveData(filename.replace('vts','vti'), proxy=resampleToImage)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment