McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics NEXMAP

McStas
site 2

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


Matlab scripts for McStas legacy data format

These are handy, but unsupported scripts for loading legacy McStas datasets into Matlab.

  • 1D-datasets (such as L_monitor.comp output) - [x,y,err,xlab,ylab,titl]=Mc1Dload('lmonsrc.sim');
  • 2D-datasets (such as PSD_monitor.comp output) - [x,y,data,z,xlab,ylab,titl]=Mc2Dload('psd.sim');
  • Single monitor output from scans (10 means 10'th monitor) - [x,y,err,xlab,ylab,titl]=McScanLoad('.',10)
A test usage script plus datafiles are also provided.

Peter Willendrup, Risø DTU, 2010


Last Modified: Wednesday, 12-Jan-2022 14:57:17 CET
Search website mailinglist archive GitHub repos