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

Download
 Components
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


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: Wednesday, 12-Jan-2022 16:53:02 CET
Search website mailinglist archive GitHub repos