<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Yang,<br>
&nbsp;<br>
&nbsp; The "Integrated Spectral Analysis Workbench"
(<a class="moz-txt-link-freetext" href="http://www.pns.anl.gov/computing/isaw">http://www.pns.anl.gov/computing/isaw</a>) is written in Java and has a
number of classes that may be useful to you.&nbsp; Specifically,<br>
<br>
...gov/anl/ipns/MathTools/lattice_calc.java&nbsp; <br>
provides some generally useful calculations, such as factoring UB,
getting lattice parameters, etc.<br>
<br>
<br>
.../gov/anl/ipns/MathTools/LinearAlgebra.java<br>
provides basic linear algebra routines, including finding a matrix that
best maps a list of calculated peak positions to/from (h,k,l) values.<br>
<br>
<br>
.../DataSetTools/instruments/SampleOrientation.java<br>
represents goniometer angles Chi, Phi, Omega<br>
<br>
<br>
.../DataSetTools/instruments/IPNS_SCD_SampleOrientation.java<br>
represents using the sign conventions of the IPNS SCD.<br>
<br>
<br>
These, and some related basic classes for vectors and matrices might be
helpful.&nbsp; If you have any questions regarding these classes in ISAW,
please contact me.<br>
<br>
Regards,<br>
Dennis Mikkelson<br>
<br>
<br>
FEI, Yang wrote:
<blockquote
 cite="midA5B0E1B67F4DD611924B0090278D5371155F52@pdnt53.anp.ansto.gov.au"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 10 (filtered)">
  <style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
  </style>
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">At the moment we are
developing control program for TAS and Single
crystal machine.&nbsp; This program is being developed in Java code, so I
just
think if anyone has done the same job for the UB matrix calculation in
Java and
can share the code with us that will be greatly appreciated and save a
lot of
our time to recode the same thing. &nbsp;Thanks,</span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>
  <p><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;">Yang</span></font></p>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
NeXus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:NeXus@anl.gov">NeXus@anl.gov</a>
<a class="moz-txt-link-freetext" href="http://www.neutron.anl.gov/mailman/listinfo/nexus">http://www.neutron.anl.gov/mailman/listinfo/nexus</a>
  </pre>
</blockquote>
<br>
</body>
</html>