<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; } @font-face { font-family: Calibri; } @font-face { font-family: Tahoma; } p.MsoNormal, li.MsoNormal, div.MsoNormal { margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; } a:link, span.MsoHyperlink { color: blue; text-decoration: underline; } a:visited, span.MsoHyperlinkFollowed { color: purple; text-decoration: underline; } span.EmailStyle18 { font-family: Calibri, sans-serif; color: rgb(31, 73, 125); } .MsoChpDefault { font-size: 10pt; } @page WordSection1 { margin: 1in; }--></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Yes. I just checked the Calculator function and it seems worked. I will try to experience more with the tool.<br>
</p>
<p><br>
</p>
<p>Thanks very much!<br>
</p>
<p>Jing <br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Scott, W Alan <wascott@sandia.gov><br>
<b>Sent:</b> Tuesday, November 4, 2014 2:58 PM<br>
<b>To:</b> jlih; paraview@paraview.org<br>
<b>Subject:</b> RE: [EXTERNAL] [Paraview] Possibilities of using different color ramps for different extractions of the same dataset?</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Your question obviously has to do with python scripts, however in ParaView this can be done using the Calculator filter. We just create another copy of the
data with a different name – and then ParaView will allow you to use a different color table for this second array. Could you do something like that? Or, did I miss your point?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Alan</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> ParaView [mailto:paraview-bounces@paraview.org]
<b>On Behalf Of </b>jlih<br>
<b>Sent:</b> Monday, November 03, 2014 8:17 PM<br>
<b>To:</b> paraview@paraview.org<br>
<b>Subject:</b> [EXTERNAL] [Paraview] Possibilities of using different color ramps for different extractions of the same dataset?</span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"> </p>
<div id="divtagdefaultwrapper">
<p style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black">Dear all, </span></p>
<p style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black">I am creating extractions from a NetCDF data. I am wondering if I can create separate color ramps for different extractions of the same array for comparisons.
I tried the process within Paraview Desktop but I was not able to set different color ramps because the array name is the same for all extractions. </span></p>
<p style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black">Sample code:</span></p>
<div>
<p class="MsoNormal" style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> SetActiveSource(ncreader)</span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> ExtractSubset1 = ExtractSubset()</span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> ExtractSubset1.VOI = [0, 50,0, 50,0, 8]</span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> DataRepresentation1 = Show(ExtractSubset1)</span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> DataRepresentation1.Representation = 'Volume'</span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> DataRepresentation1.ColorArrayName = ('CELL_DATA', varname)</span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> DataRepresentation1.ColorAttributeType = 'CELL_DATA'</span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> DataRepresentation1.LookupTable = GetLookupTableForArray(varname...</span></p>
</div>
<p style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black">Any suggestions?</span></p>
<p style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black">Thanks, </span></p>
<p style="margin-left:.5in; background:white"><span style="font-family:"Calibri","sans-serif"; color:black">Jing </span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>