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

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding
 Screenshots

Download
 Components
 Linux Install (deb/rpm)
 Mac OS X Install
 Unix Install (src code)
 Windows Install
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 McStas manual
 FAQ
 Known problems
 Publications
 C Compilers
 Other
 Tools
 Tutorial

Workshops/conferences

Developments

Links

Report bugs

Git

McStas Ubuntu live-dvd


Matlab script to generate .lau datafiles (for Single_crystal.comp) from .laz type

  function laz2laue(datafile)
  
    Script to generate '.lau' type datafile from '.laz' (generates
    multiples and sorts by h.^2+k.^2+l.^2 )
 
    Example:
       laz2laue('/usr/local/lib/mcstas/data/Cu.laz')

Important details:

  • 1) Does NOT change F2 units etc.
  • 2) No clever spacegroup considerations etc. copies every reflection to the other 7 octants...
  • 3) Unix specific as it relies on having a 'grep' command on the system path
  • 4) Saves resulting datafile to current directory


Last Modified: Friday, 20-Jul-2012 09:45:07 CEST
Search website mailinglist archive GitHub repos