I am writing Python scripts which read-in byte data, with the purpose of visualizing using the Volume module. Problem is, whenever I create the .vtk files, I end up with the following header:
# vtk DataFile Version 2.0
Data array
ASCII
DATASET STRUCTURED_POINTS
DIMENSIONS 32 32 32
ORIGIN 0 0 0
SPACING 1 1 1
POINT_DATA 32768
SCALARS Data_array int 1
LOOKUP_TABLE default
Now the Volume module only works for data type "unsigned_char" or "unsigned_short". Is there a way to set the line "SCALARS Data_array int 1" to read "SCALARS Data_array unsigned_char" within my script so I don't have to manually change the .vtk file or use the StructuredPointProbe? Any help would be appreciated.
Michael Franklin
Claremont Grad. University
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ MayaVi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mayavi-users
