User Tools

Site Tools


processing:synthetic_dataset

This is an old revision of the document!


Creation of the synthetic dataset

Synthetic data sets are useful to learn how to process data. You can input the experimental parameters you will use in your actual experiment and your actual sample. The software to do so is PolyXSim

Basic usage

PolyXSim -i input_file (.inp or .ini)

Input file

Input file can include a collection of parameters. Information on the input parameters can be found here https://sourceforge.net/p/fable/wiki/PolyXSim%20-%20input/

Input file example 1

Here are input files for simulating an experiment at the P02.2 beamline in PETRA

  • Wavelength is 0.289 Å
  • Detector is a Perkin-Elmer with 2048×2048 pixels, 200 μm pixel size in both directions, 400 mm from the sample. No tilt, no messing with detector orientation.
  • Data collected over an range of Δω = [-28°;+28°] in steps δω = 0.5°.

Grain information

  • 10 grains of post-perovkite
  • random crystal orientations
  • no strain
  • randomly placed in a box of 10 x 10 x 10 μm3
  • grains of 1 μm grain size in average with a minimum grain size of 0.5 μm and a maximum size of 1.5 μm
  • no background noise
  • very sharp peaks

The full input file is here simu-ppv-basic.inp

Input file example 2

This second input file is the same experiment as previous but

  • peak shapes are set to Gaussian with 0.02° spread in 2θ, 0.5° in η and 0.5° in ω
  • A background with noise.

This second dataset is more difficult to process. You will really need to work on your background to get it to work.

The full input file is here simu-ppv-bg.inp.

Remarks

Here are typical errors that we bumped into

  • Be careful of the intensity (beamflux). Should be in the order of 10e15-10e17
  • Check the name of the parameter for the space group number (sgno) or space group symbol (sgname).

Output files

Possible output parameters:

  '.edf' -  diffraction images with the omega angle in the header
  '.ref' - reflection files (one per grain) having all the information about the reflections.
  '.flt' - a peak file of the same format as output by ImageD11 peaksearch and can be loaded in ImageD11_gui
  '.gve' - a g-vector file. Where the peaks are transformed into scattering vectors (g-vectors). This file can be used for indexing in either GrainSpotter or ImageD11- index
  '.ini' - an input file for indexing with GrainSpotter using the .gve file is written. It will then be possible to try the GrainSpotter indexing program imidiately.
  '.ubi' - grain orientations as inv(U*B)
  '.par' - the input parameters for PolyXSim written in the par format of ImageD11
  '.res' - summary of the simulation
  
processing/synthetic_dataset.1529680446.txt.gz · Last modified: (external edit)