Dear All,

I am trying to write a macro in TOPAS (version 4) to output the intensities of 
specific reflections for each phase, for the purposes comparing multiple 
structures of the same phase from the literature.

To date I have been able to achieve this by using the following macro which 
output all the hkl's and the intensity of each, then I use a spreadsheet 
package to sort my data appropriately, but this is cumbersome and I have 
hundreds of structures I  would like to examine. 


macro out_specific_hkl_details(file)
{
 phase_out file append load out_record out_fmt out_eqn
   {
                " %s" = Get(phase_name);
                " %3.0f " = H;
                " %3.0f " = K;
                " %3.0f " = L;
                " %11.5f \n " = I_after_scale_pks;
   }
}


Ideally I would like to output:

Phase1Name I(hkl_1) I(hkl_2) I(hkl_3) I(hkl_4) I(hkl_5)
Phase2Name I(hkl_1) I(hkl_2) I(hkl_3) I(hkl_4) I(hkl_5)
Phase3Name I(hkl_1) I(hkl_2) I(hkl_3) I(hkl_4) I(hkl_5)
Phase4Name I(hkl_1) I(hkl_2) I(hkl_3) I(hkl_4) I(hkl_5)

The problem is I can't work out how to output parameters for specific hkl's, 
can anyone help me?


Thanks,

Ross


+++++++++++++++++++++++++
Ross Williams
PhD Student
Centre for Materials Research
Department of Imaging and Applied Physics
Curtin University of Technology
GPO Box U1987 Perth WA 6845
Western Australia
Phone: +61 (0)8 9266 4219
Fax:     +61 (0)8 9266 2377
Email:   [EMAIL PROTECTED]

Reply via email to