don't worry about it. I got it. Thanks<br><br><div class="gmail_quote">On Mon, Apr 5, 2010 at 5:18 PM, Stephen Yip <span dir="ltr"><<a href="mailto:stephen.fyip1@gmail.com">stephen.fyip1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Hi,</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">I have the x and y vector components store in a mhd file. I'd like to create a 3d vector by using the calculator filter. <br>
<br>1. How do I find out the names of my x and y components?<br>2. I attempted to create the 3d vector by entering </span></span><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Vector_x*iHat+Vector_y*jHat+0*kHat or Vector_1*iHat+Vector_2*jHat+0*kHat. I then get the following error. </span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">Thank you, </span><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">Stephen</span><br style="color: rgb(0, 0, 0);"><br></span><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (050FE4C8): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (050FE4C8): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07840DE8): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><span style="color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (050FE4C8): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (050FE4C8): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07840DE8): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><span style="color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (050FE4C8): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (050FE4C8): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07840DE8): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><span style="color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077B3B28): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077B3B28): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07595D08): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><span style="color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077B3B28): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077B3B28): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07595D08): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><span style="color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077B3B28): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077B3B28): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07595D08): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><span style="color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077B3B28): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077B3B28): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07595D08): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><span style="color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077B3B28): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077B3B28): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07595D08): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><span style="color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077CDF80): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077CDF80): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07811978): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><span style="color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077CDF80): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077CDF80): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07811978): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><span style="color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077CDF80): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);">vtkFunctionParser (077CDF80): Syntax error: expecting a variable name; see position 0</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><span style="color: rgb(0, 0, 0);">Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 398</span></p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);">vtkArrayCalculator (07811978): An error occured when parsing the calculator's function. See previous errors.</p>
<p style="margin: 0px; text-indent: 0px; font-family: 'Courier'; font-size: 8.25pt; color: rgb(0, 0, 0);"><br></p><br><span style="font-family: 'Courier'; font-size: 8.25pt; color: rgb(128, 0, 0);"><br></span>
</blockquote></div><br>