<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Cory,<div><br></div><div>The file you sent won't open in my Paraview. It does not recognize the extension (?). </div><div><br></div><div>I followed what you suggested, however:</div><div><br></div><div>1) Loaded the first file and selected "apply". This file has only binary scalars (0=background, 1=surface)</div><div>2) Selected calculator and created a function that consisted of: "scalars*1", to be renamed "surface location"; pressed "apply" again</div><div>3) Loaded the second file and selected "apply" This file has float scalar values ranging from 0 to 10.7</div><div>4) control-selected both the calculator and second file, and then selected "Append Attributes"; and pressed "apply" again. This resulted in 3 new items in the pipeline, all called AppendAttributes1. The one at the bottom had a box icon (the other two had only arrows). </div><div><br></div><div>When I click on the bottom AppendAttributes1 file and look at the information tab, it says it has 2 data arrays. One is a double called "surface location" (matching what I thought I created in step 2 above), and has value range of 0 to 1 (which is correct). However, the other one, which I assume is the one from the file loaded in step 3 above, now has a range of only 0 to 1 also (not 0 to 10.7, like it should). So either it is doing something odd (like rescaling data??) or it got that data elsewhere? Why is it doing this?</div><div><br></div><div>If I then compute a contour based on the "surface location" array in AppendAttributes1, I get the surface I expect to see.</div><div><br></div><div>But the other array data is not any good (it isn't 0 to 10.7 anymore). Even if it was, what exactly would I do then to color the surface with this other array? Is that done with another filter? Or is it done in the contour image?</div><div><br></div><div>Thanks for any further help!</div><div><br></div><div>-Tom</div><div><br></div><div><div><div>On Apr 8, 2012, at 10:22 AM, Cory Quammen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Tom,<br><br>You can load your two images and, assuming they are the same size, use<br>the Append Attributes filter to combine them. However, chances are<br>good that the scalars in your image data will have the same name,<br>meaning that Append attributes will grab only the scalar values from<br>one of the images. To get around this limitation, you can "rename" the<br>scalar field in one image by using a Calculator filter on it and<br>setting the "Result Array Name" to something else. Your pipeline will<br>look like this *before* applying the Append Attributes filter:<br><br>Image1<br>---|<br> Calculator1<br>Image2<br><br>To apply the Append Attributes filter, select the Calculator1 filter<br>and Image2. Use Ctrl-click on Windows to select more than one object<br>in the pipeline browser. Then select Append Attributes from the<br>Filters menu under the Alphabetical submenu.<br><br>Now you should have two scalar fields in an image data. You can use<br>one to do the contouring and the other to do the pseudo-coloring.<br><br>I've attached a state file with two Wavelet sources in place of image<br>inputs. It illustrates what I've described here.<br><br>Hope that helps,<br>Cory<br><br><br>On Sun, Apr 8, 2012 at 9:45 AM, Tom Schoenemann <<a href="mailto:toms@indiana.edu">toms@indiana.edu</a>> wrote:<br><blockquote type="cite">OK, but is there some way to combine two image files, each with its own<br></blockquote><blockquote type="cite">scalars, into one image? What I'm thinking about is reading in 2 copies of<br></blockquote><blockquote type="cite">the same image, and using the scalars from one to display the contour, and<br></blockquote><blockquote type="cite">the scalars from the other to display the colors? I tried doing this, but I<br></blockquote><blockquote type="cite">can't get it to work. I loaded one as the contour, and colored it one color<br></blockquote><blockquote type="cite">only (white). I then added the copy, an tried to view it as a volume. It<br></blockquote><blockquote type="cite">let me change the color map parameters, but it seems to display the color<br></blockquote><blockquote type="cite">UNDERNEATH the first one (that has the contour. I'm sure there must be a<br></blockquote><blockquote type="cite">way to do this, but how?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Perhaps there is a way to add 2 scalar fields to one image? Maybe image<br></blockquote><blockquote type="cite">calculator could do this??<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-Tom<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Apr 8, 2012, at 8:30 AM, Cory Quammen wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Tom,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">An isosurface by definition has the same scalar value everywhere on<br></blockquote><blockquote type="cite">the surface, so what you describe happening is exactly what should<br></blockquote><blockquote type="cite">happen, unless I misunderstand. You could contour by one scalar field<br></blockquote><blockquote type="cite">and color by another scalar field and expect to see different colors,<br></blockquote><blockquote type="cite">but if you try to color by the same scalar, you should expect to see<br></blockquote><blockquote type="cite">only one color on the surface.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Cory<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Sun, Apr 8, 2012 at 3:38 AM, Tom Schoenemann <<a href="mailto:toms@indiana.edu">toms@indiana.edu</a>> wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have a single volume dataset that has scalar values only on a surface, and<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">zeros everywhere else. The scalar values represent statistics we have<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">calculated for each point on a surface. I've been able using the contour<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">filter to create an isosurface from this dataset, but I can't get the<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">surface to display anything other than a single color. I have tried setting<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">"contour by" to "compute normals" and "compute scalars", and then going to<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">"display" and choosing "color by" scalars. However, only a single value is<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">allowed. I have tried unselecting "automatically rescale to fit data range"<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">and then entering my own range, but only my minimum value is accepted (even<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">if I enter a different value for the maximum).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Perhaps I am using paraview the wrong way, but I have to say, it isn't<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">intuitive. Is there a way to use the same scalar data (same file) to both:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1) create a surface, and 2) color code the surface based on the same scalar<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">values?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks for any hints or suggestions.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-Tom<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Powered by <a href="http://www.kitware.com">www.kitware.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Visit other Kitware open-source projects at<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please keep messages on-topic and check the ParaView Wiki at:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Follow this link to subscribe/unsubscribe:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Cory Quammen<br></blockquote><blockquote type="cite">Research Associate<br></blockquote><blockquote type="cite">Department of Computer Science<br></blockquote><blockquote type="cite">The University of North Carolina at Chapel Hill<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br><br>-- <br>Cory Quammen<br>Research Associate<br>Department of Computer Science<br>The University of North Carolina at Chapel Hill<br><span><AppendAttributesExample.pvsm></span></div></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div>_________________________________________________</div><div>P. Thomas Schoenemann</div><div><br class="khtml-block-placeholder"></div><div><div>Associate Professor</div><div>Department of Anthropology</div><div>Indiana University</div><div>Bloomington, IN 47405</div><div>Phone: 812-855-8800</div><div>E-mail: <a href="mailto:toms@indiana.edu" style="text-decoration: none; ">toms@indiana.edu</a></div></div><div><br></div><div>Open Research Scan Archive (ORSA) Co-Director</div><div>Consulting Scholar</div><div>Museum of Archaeology and Anthropology</div><div>University of Pennsylvania</div><div><br></div><div><div>Homepage: <a href="http://mypage.iu.edu/~toms/">http://mypage.iu.edu/~toms/</a></div><div><br></div></div></span></div></div></span></div></span></div></span></div></span></div></span></div></span></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>