padre_meddea.io.amptek#

Provides io support for reading files created by the amptek detector.

Functions

read_mca(filename[, count_rate])

Read an amptek mca file.

padre_meddea.io.amptek.read_mca(filename: Path, count_rate=False)[source]#

Read an amptek mca file.

Parameters:
  • filename (Path) – A file to read.

  • count_rate (bool) – If True, then return data in count rate rather than counts.

Returns:

spectrum (Spectrum1D) – All meta data with all capitals are direct from the mca file. Lower case metadata is added.

Examples