Skip to content

CDICALC: GUI for setup calculations in Coherent X-ray Diffraction Imaging experiments.

License

Notifications You must be signed in to change notification settings

carnisj/cdicalc

Repository files navigation

CDICALC: GUI for setup calculations in Coherent X-ray Diffraction Imaging experiments.

Calculations are performed using the pint package, to remove any ambiguity about units.

Installation:

  • git clone https://github.com/carnisj/cdicalc.git
  • (Optional) Create a virtual environment (Python3.9) and activate it
  • cd cdicalc/
  • pip install -r requirements.txt

Usage:

  • cd scripts/
  • python cdicalc_client.py

The script cdicalc_client.py will also be copied in (e.g. for a Conda environment):

  • on Windows: path_to\anaconda3\envs\myenv\Scripts
  • on Linux: /path_to/anaconda3/envs/myenv/bin

Tab BCDI calculations:

Here you can calculate the following:

  • the crystal size given the X-ray energy (or wavelength), the detector distance, the detector pixel size and the fringe spacing on the detector 2D image. Or the minimum detector distance given the desired crystal size and sampling.
  • the angular sampling given the X-ray energy (or wavelength), the detector distance, the detector pixel size and the crystal size. Or the maximum rocking angle to achieve the desired angular sampling.

Tab CDI calculations:

Tab Diffraction calculations:

Tab Coherence calculations:

About

CDICALC: GUI for setup calculations in Coherent X-ray Diffraction Imaging experiments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages