>>>>> "Michael" == Michael Franklin <[EMAIL PROTECTED]> writes:
Michael> Hello All, I am writing Python scripts which read-in byte
Michael> data, with the purpose of visualizing using the Volume
Michael> module. Problem is, whenever I create the .vtk files, I
Michael> end up with the following header:
[...]
Michael> Now the Volume module only works for data type
Michael> "unsigned_char" or "unsigned_short". Is there a way to
Michael> set the line "SCALARS Data_array int 1" to read "SCALARS
Michael> Data_array unsigned_char" within my script so I don't
Michael> have to manually change the .vtk file or use the
Michael> StructuredPointProbe? Any help would be appreciated.
Given what you have written I assume that you are using pyvtk to
generate the files? If that is the case, use a Numeric data array of
typecode 'b' or 'w' to get unsigned_char/unsigned_short in your
output. I figured this out by reading the pyvtk sources. Look in
pyvtk/common.py.
cheers,
prabhu
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