load pole figure data from (theta,rho,intensity) files
Description
Without h the crystal direction is guessed from the file name, which only works if the file is named after its reflection. A name that carries any other number, e.g. a measurement id as in 110F-Creuz426sym.sum, may be read as a superposition of several crystal directions and give a pole figure that cannot be inverted. Pass the direction whenever the file name is not purely the reflection.
Syntax
[pf,varargin] = loadPoleFigure_generic(fname,varargin)Input
| fname | file name (text files only) |
| h | Miller crystal direction (optional) |
Options
| 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 (y↓→x)
crystal symmetry : m-3m
h = (111), r = 2120 x 1 pointsstate the crystal direction instead of guessing it from the file name
cs = crystalSymmetry('m-3m');
pf = loadPoleFigure_generic(fname,Miller(1,1,1,cs),'HEADER',21,'degree',...
'ColumnNames',{'polar angle','azimuth angle','intensity'},...
'Columns',[1 2 3])pf = PoleFigure (y↓→x)
crystal symmetry : m-3m
h = (111), r = 2120 x 1 points