
Hi Andrew, I added a VTK file reader -- in tonight's Chimera daily build. It handles vtk structured points files in ascii format like the one you gave me. Your file had many -32768 values which seem to indicate regions where you don't have data and normal data values in a range 0 to 55. This makes the histogram display of data values in Chimera worthless because the data range is 33000 but the meaningful range is 55. Chimera is only able to show the whole range. You might want to use some other value to indicate "no data", like -1 if negative values are not valid. Tom
On Aug 6, 2013, at 10:09 AM, Andrew VanBenschoten wrote:
Hi Elaine, I hope all is well! Quick question for you: I have a 3D .vtk file (attached) that I want to be able to view in Chimera. This is one of the diffuse scatter maps that we discussed earlier: nearly identical to X-ray diffraction patterns except that the data values are applied to entire voxels as opposed to points. Any suggestions as to what I could try? Thank you so much!
-Andrew <out.vtk>

Hi Andrew, An easy way to change all the -32768 values to something like zero (so that the histogram in the Volume Viewer dialog will become useful) is with the "vop threshold" command: <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/vop.html#threshold> For example, if your VTK file is opened as model 0, you could create a new map model 1 in which all values below zero are set to zero with the following command: vop threshold #0 min 0 set 0 model 1 I hope this helps, Elaine ---------- Elaine C. Meng, Ph.D. UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco On Aug 27, 2013, at 3:20 PM, Tom Goddard <goddard@sonic.net> wrote:
Hi Andrew,
I added a VTK file reader -- in tonight's Chimera daily build. It handles vtk structured points files in ascii format like the one you gave me. Your file had many -32768 values which seem to indicate regions where you don't have data and normal data values in a range 0 to 55. This makes the histogram display of data values in Chimera worthless because the data range is 33000 but the meaningful range is 55. Chimera is only able to show the whole range. You might want to use some other value to indicate "no data", like -1 if negative values are not valid.
Tom
participants (2)
-
Elaine Meng
-
Tom Goddard