The LAMP Application

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

lamp_mac/D16/

axis_conversion.pro


Routines

axis_conversion_init

result = get_numor_parameters(w, parameters=parameters)

result = q_to_d(w, datp=datp)

result = two_theta_to_q(w, wavelength=wavelength, offset=offset, datp=datp)

result = two_theta_to_d(w_in, _EXTRA=_EXTRA)

axis_conversion

Routine details

top axis_conversion_init

axis_conversion_init

:Description: Set some commons. :History: 14 Oct 2010 Created, Eric Pellegrini :Author: pellegrini

top get_numor_parameters

result = get_numor_parameters(w, parameters=parameters)

:Description: Retrieves in the |datp| structure of a given numor a list of input parameters. :Params: w : in, required the workspace the internal structure of which will be searched for the wavelegnth. :Keyword: parameters : in, optional a list of string specifying the parameters to retrieve from the selected numor. :Returns: A structure whose tag names are the upperized values of the input parameters. Two special cases for the value associated to a given tag - -7777 -> the parameters was not found in the |instr_struct| global structure - -8888 -> the instrument was not found for the selected parameter :History: 06 Oct 2010 Created, Eric Pellegrini :Author: pellegrini

Parameters

w

Keywords

parameters

top q_to_d

result = q_to_d(w, datp=datp)

:Description: Perform the conversion of x axis from q to d. :Params: w : in, required :Returns: A new workspace with x-axis converted from q to d. :History: 07 Oct 2010 Created, Eric Pellegrini :Author: pellegrini

Parameters

w

Keywords

datp

top two_theta_to_q

result = two_theta_to_q(w, wavelength=wavelength, offset=offset, datp=datp)

:Description: Performs the conversion of x axis from 2Theta to q in the elastic case. :Params: w : in, required the workspace used to perform the conversion. :Keywords: wavelength : in, optional the wavelength used for the conversion. offset : in, optional the offset in 2Theta. :Returns: A new workspace with x-axis converted from 2Theta to q. :History: 06 Oct 2010 Created, Eric Pellegrini :Author: pellegrini

Parameters

w

Keywords

wavelength
offset
datp

top two_theta_to_d

result = two_theta_to_d(w_in, _EXTRA=_EXTRA)

:Description: Performs the conversion of x axis from 2Theta to d. :Params: w_in : in, required :Keywords: _EXTRA : in, optional the extra keyword. Can be 'wavelength' and/or 'offset'. :Returns: A new workspace with x-axis converted from 2Theta to d. :History: 07 Oct 2010 Created, Eric Pellegrini :Author: pellegrini

Parameters

w_in

Keywords

_EXTRA

top axis_conversion

axis_conversion

File attributes

Modification date: Tue Oct 1 14:43:15 2013
Lines: 334