Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages


home | help
mxformat(1)			 USER COMMANDS			   mxformat(1)

       mxformat	 - Text	data set conversion/merging tool of the	McXtrace X-ray
       trace simulation	package

       mxformat	[--format=FORMAT] [file|dir ...]

       The mxformat command is the text	data conversion	tool of	 the  McXtrace
       package.	It may convert any kind	of McXtrace data into an other format.
       Additionally, it	can merge equivalent data sets.	These might be for in-
       stance  two  simulations	made independently (e.g. on a grid or cluster)
       with the	same instrument	and parameters.	The result will	be as  if  the
       simulation  was	performed  once	 on  a single machine. The command can
       merge at	the same time many data	sets into families. When given	direc-
       tories as input,	mxformat works recursively, and	the resulting data set
       follows the same	directory hierarchy as the input data sets.

       McXtrace	is a general tool for simulating  neutron  scattering  instru-
       ments  and  experiments.	It is actively supported by DTU	Physics, ESRF,
       and University of Copenhagen

       McXtrace	is based on a compiler [mcxtrace(1)] that reads	 a  high-level
       specification language defining the instrument to be simulated and pro-
       duces C code that performs the Monte Carlo Simulation.  The  system  is
       very  fast  in  use, both when setting up the instrument	definition and
       when doing calculations.

       McXtrace	supports all neutron scattering	instruments, including triple-
       axis,   time-of-flight  instruments,  and  polarised neutrons. It comes
       with a comprehensive manual and a  library  of  well-tested  components
       that  include most standard elements of neutron scattering instruments,
       including steady-state and  pulsed  sources,  monochromators/analysers,
       guides,	collimators,  vanadium	and powder samples, velocity selectors
       and choppers, and a variety of detectors.

       The package consists of the following user commands:

	      is the graphical user interface. Then use	the X-ray Site menu to
	      select an	example	instrument, and	access the whole documentation
	      for the Help menu. It contains an	instrument editor, methods  to
	      plot simulation results, and much	more

	      is the command-line tool for building and	running	simulations

	      is the simulation	results	plotting tool

	      is the instrument	geometry and neutron trajectory	viewer

	      is the documentation tool

	      is the instrument	compiler

	      can  transform any text data set from one	format to an other. It
	      does not support conversion from binary data sets. It  can  also
	      merge equivalent results.

       We  encourage  users  to	refer to the User and Component	Manuals, which
       are available with the command mxdoc

	      Specifies	wanted output format,  i.e.  PGPLOT,  Matlab,  Scilab,
	      IDL, HTML, XML, Octave, ...

       -d DIR |	--dir=DIR
	      Put all data files in directory DIR.

       -f FILE | --file=FILE
	      Put all data in a	single file.

       -a | --data-only
	      Do not put any headers in	the data files.

       --no-output-files | -t |	--test
	      Do not write any data files (test	mode).

       -h | --help
	      Show the command help.

       -c | --force
	      Force  writting in existing directories and enable relaxed merg-
	      ing mode (no name	check).	Use with caution !

       -m | --merge
	      Add/Append equivalent data files and lists

       -s | --scan
	      Gather simulations per scan series (and  merge  equivalent  data

       -so | --scan-only
	      Create scan series but does not merge data

	      Verbose mode

       Typical usage (put translated files in outdir)
	      mxformat indir -d	outdir

       Merge two equivalent simulations	dir1 and dir2 into dir3
	      mxformat --format=Matlab dir1 dir2 -d dir3

       mxformat	 can  only handle text data sets. Data sets generated with bi-
       nary files can not be translated.

       Additionally, as	mxformat works by identification of specific  keywords
       in  each	 data  file,  if  these	 keywords match	some file or component
       names, the meta data used to identify the simulation might  be  guessed
       wrong. Anyway, the data set will	still be exact.

       McXtrace	is a large package, and	bugs might be found. If	so, please re-
       port  to  and	 the  mailing  list  mcxtrace-

       Erik B Knudsen, Peter Kjaer Willendrup, Kim Lefmann, and	SA,ren Schmidt

       mcxtrace(1), mxrun(1), mxdisplay(1), mxplot(1), mxgui(1), mxdoc(1), mx-

       web site:     <>

       mailing list: <>

       matlab(1), idl(1), octave(1), vitess(1),	NISP(1), restrax(1),  mcnp(1),

McXtrace 1.2 - Jul. 02,	2015					   mxformat(1)


Want to link to this manual page? Use this URL:

home | help