loadPoleFigure_generic

load pole figure data from (theta,rho,intensity) files

Description

loadPoleFigure_generic is a generic function that reads any txt files of diffraction intensities that are of the following format

theta_1 rho_1 intensity_1
theta_2 rho_2 intensity_2
theta_3 rho_3 intensity_3
.      .       .
.      .       .
.      .       .
theta_M rho_M intensity_M

The actual order of the columns in the file can be specified by the options ColumnNames and Columns. Furthermore, the files can be contain any number of header lines to be ignored using the option HEADER.

Syntax

[pf,'param1',val1,'param2',val2] = loadPoleFigure_generic(fname,'param1',val1,'param2',val2)

Input

fname

file name (text files only)

param,val Parameters and values that control loadPoleFigure_generic
Parameter Description
'ColumnNames'

content of the columns to be imported

'Columns'

positions of the columns to be imported

'RADIANS'

treat input in radians

'DELIMITER'

delimiter between numbers

'HEADER'

number of header lines

Example

fname = [mtexDataPath '/PoleFigure/nja/seifert-111.nja'];
pf = loadPoleFigure_generic(fname,'HEADER',21,'degree',...
'ColumnNames',{'polar angle','azimuth angle','intensity'},...
'Columns',[1 2 3])
 
pf = PoleFigure  
  crystal symmetry : m-3m
  specimen symmetry: 1
 
  h = (111), r = 2120 x 1 points

See also

ImportPoleFigureData, loadPoleFigure