McXtrace logo

McXtrace - An X-ray ray-trace simulation package

Synchrotron SOLEIL DTU Physics

McXtrace

About McXtrace
 Publications
 Project Partners
 Project People
 Goal

Download
 Components

Documentation
 Manual
 Commands
 Wiki (GitHub)
 Tutorial

Mailing list

Links

Search

Code-repository (GitHub)

Report bugs (GitHub)


The Source_xtended McXtrace Component

14.2  The Source_extended McXtrace Component

Release: McXtrace 1.4

A plane source emitting x-rays to emulate a distant extended source, such as a nebula or galaxy

Identification

  • Author: Arne ’S Jegers

  • Origin: Technical University of Denmark

  • Date: May 6, 2019

Description

A rectangular x-ray source that samples ray intensity from an image, and deflects the emitted ray to reflect having been emitted from the sampled part of the extended source. Rays that are sampled from the same point on the image are collimated, but can be emitted from anywhere on the rectangular source. The image should be provided as a 2D-ascii table, whose header includes the following entries:

w_pixels and h_pixels: The width and height of the image in pixels x_ref and y_ref: x and y reference values of the FITS image r_max: The maximum distance from the point (x_ref, y_ref) to any corner of the image iCD11, iCD12, iCD21 and iCD22: The values of the FITS image’s CD matrix

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

spectrum_file

str

File with the energy spectrum to sample from (Table format)

NULL

yheight

m

Height of rectangle in (x,y,0) plane where x-rays are generated.

0

xwidth

m

Width of rectangle in (x,y,0) plane where x-rays are generated.

0

dist

m

Currently not used by the component

0

E0

keV

Mean energy of xrays.

0

dE

keV

Energy half spread of x-rays (flat or gaussian sigma).

0

lambda0

Å

Mean wavelength of x-rays.

0

dlambda

Å

Wavelength half spread of x-rays.

0

flux

pht/s

total flux radiated from the source

0

gauss

1

Gaussian (1) or Flat (0) energy/wavelength distribution

0

incoherent

Source is fully incoherent

1

phase

rad

Set phase to something given.

0

image_path

string

Path to file containing the heat map of the source

””

Links

  • Component source code found in file Source_extended.comp.


Last Modified: Monday, 05-Oct-2026 10:48:07 CEST
Search website mailinglist archive GitHub repos