<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #333399;font-size: 10pt;">
<div style="direction:ltr; font-family:Tahoma; color:#333399; font-size:10pt">Hi,<br>
<br>
I have generated a Catalyst python script that produces a colormap on a slice of a 3D rectilinear grid. I would like to use the same script for another variable of the simulation, but the range of data is not the same. How can I adapt the script, both in case
 where I know the new data range, and in case I don't know and want the colormap to simply figure it out?<br>
<br>
I believe the part of the script that deals with that is as follows:<br>
<br>
a1_dbz_PiecewiseFunction = CreatePiecewiseFunction( Points=[-36.903831481933594, 0.0, 0.5, 0.0, 57.036045074462891, 1.0, 0.5, 0.0] )<br>
<br>
a1_dbz_PVLookupTable = GetLookupTableForArray( "dbz", 1, RGBPoints=[-36.903831481933594, 0.23000000000000001, 0.29899999999999999, 0.754, 10.066106796264648, 0.86499999999999999, 0.86499999999999999, 0.86499999999999999, 57.036045074462891, 0.70599999999999996,
 0.016, 0.14999999999999999], VectorMode='Magnitude', NanColor=[0.25, 0.0, 0.0], ScalarOpacityFunction=a1_dbz_PiecewiseFunction, ColorSpace='Diverging', ScalarRangeInitialized=1.0 )<br>
<br>
But I don't know how to adapt it.<br>
<br>
Thanks,<br>
<br>
Matthieu<br>
<br>
<br>
</div>
</div>
</body>
</html>