User Tools

Site Tools


evaluation:extractgrainsizes

This is an old revision of the document!


Determine Grain Sizes

The TIMEleSS tools contain two scripts to determine the size of each grain in the sample. These are timelessExtractGrainSizes.py to obtain relative grain sizes and timelessRelToAbsGrainSize.py to convert these relative grain sizes into absolute values.

To use this method, the process of indexing has to be finished, i.e. a GrainSpotter output file is required.

“”“”

Estimation of relative grain volumes based on diffraction intensities

Example:

  timelessGrainSizes.py -w 0.3738 mylogfile.log peaks-t100.flt crystal.cif

This is part of the TIMEleSS project http://timeless.texture.rocks

positional arguments:

logfile               Path and name for GrainSpotter output file
fltfile               Path and name for fltfile
ciffile               Path and name for CIF file

optional arguments:

  1. h, –help show this help message and exit
  2. w WAVELENGTH, –wavelength WAVELENGTH

Wavelength (angstrom, required)

  1. m TTHETA_MIN, –ttheta_min TTHETA_MIN

If set, minimum 2 theta for calculation of peaks from cif file (degrees). Guessed from GS output file otherwise.

  1. M TTHETA_MAX, –ttheta_max TTHETA_MAX

If set, maxium 2 theta for calculation of peaks from cif file (degrees). Guessed from GS output file otherwise.

  1. o OUTPUT, –output OUTPUT

If set, saves result to this file. Default is None (no filter)

  1. HV HISTOGRAM_VOL, –histogram_vol HISTOGRAM_VOL

If set, plots a histogram of the grain volumes on the screen. Default is False

  1. HR HISTOGRAM_RAD, –histogram_rad HISTOGRAM_RAD

If set, plots a histogram of the grain radii on the screen. Default is False

  1. b HISTOGRAM_BINS, –histogram_bins HISTOGRAM_BINS

Sets the number of histrogram bins. Only works if histogram is set True. Default is 60

  1. r REJECT, –reject REJECT

Reject grains with AverageI > reject*MedianI. Default is 20.0 “”“”

evaluation/extractgrainsizes.1618912070.txt.gz · Last modified: 2021/04/20 09:47 by matthias