qempanel saves a matlab file with 3 at structures
Using the code of qem/qemxtract.m
[qemb(2).kn,qemb(2).dipdelta,qemb(2).dxs]=... % load quad errors
qemerrload(qemres,fullfile(qemres.datadir,'quaderrors.mat'));
warning('temporary hack! remove following line!')
qemb(2).dipdelta = zeros(size(qemres.dipidx));
A=textscan(fopen(fullfile(qemres.datadir,'skewcor.dat'),'r'),'%s %f','HeaderLines',7); %read from setting manager saved file
qemb(2).skewcor=A{2};
s=load(fullfile(qemres.datadir,'skewerrors.mat')); % load skew errors
qemb(2).ks=s.ks;
qemb(2).diptilt=s.diprot;
qemb(2).at=qemat(qemres,qemb(2),true);
When a lattice model is stored using the button Store Lattice Model in qempanel
3 AT lattice are saved:
- r : the nominal lattice
- rerr : the lattice with the fitted errors
- rcor : the lattice with fitted errors and corrections (if no correct->save is done rcor = rerr)