synthetic_radiograph

plasmapy.diagnostics.charged_particle_radiography.synthetic_radiography.synthetic_radiograph(obj, size=None, bins=None, ignore_grid: bool = False)[source]

Calculate a “synthetic radiograph” (particle count histogram in the image plane).

Parameters:
  • obj (dict or Path or Tracker) – Either a Tracker object that has been run, a dictionary equivalent to results_dict, or path to a saved output file from a Tracker object (HDF5 file).

  • size (Quantity, shape (2, 2), optional) – The size of the detector array, specified as the minimum and maximum values included in both the horizontal and vertical directions in the detector plane coordinates. Shape is ((hmin, hmax), (vmin, vmax)). If not specified, the size will be set to include all particles on the detector. Units must be convertible to meters.

  • bins (array of integers, shape (2)) – The number of bins in each direction in the format (hbins, vbins). The default is (200, 200).

  • ignore_grid (bool) – If True, returns the intensity in the image plane in the absence of simulated fields.

Returns:

  • hax (Quantity array shape (hbins,)) – The horizontal axis of the synthetic radiograph in meters.

  • vax (Quantity array shape (vbins, )) – The vertical axis of the synthetic radiograph in meters.

  • intensity (ndarray, shape (hbins, vbins)) – The number of particles counted in each bin of the histogram.

Notes

This function ignores any particles that are stopped or removed before reaching the detector plane.