Skip to main content

Computer Glow Curve Deconvolution

Project description

CGCD

This Python library enables the analysis of thermoluminescent (TL) glow curves. It currently includes two main functions:

PeakDetection This function detects potential peaks present in a TL glow curve. It requires the following input parameters:

DataFrame: A pandas.DataFrame with two columns. The first column should contain temperature values (in degrees Celsius), and the second column should contain the corresponding light intensity for each temperature point.

Smoothing level (smoothing_level): An integer between 0 and 4. A value of 0 applies very strong smoothing, while 4 applies minimal smoothing.

Resolution (channels): An integer indicating the number of channels used to analyze the curve, which affects the resolution of peak detection.

Derivative factor (derivative_factor): A numerical value that multiplies the intensity of the second derivative, used to enhance peak detection.

As a result, the function returns a pandas.DataFrame containing the intensity of each detected peak and the corresponding temperature at which the maximum is estimated to occur.

Deconvolution This function performs a deconvolution fit of experimental TL glow curves using a mathematical model based on first-order kinetics. It supports both discrete and continuous trapped charge density distributions, allowing either Gaussian, exponential, or localized (discrete) peak modeling.

Input parameters:

df: A pandas.DataFrame containing two columns — temperature values (in °C or K) and corresponding TL intensities.

p: A 4×n vector (as a 1D list or NumPy array of length 4×n), representing the initial guess for each kinetic parameter of the n peaks, in the following order: [I₁_max, E₁_a, T₁_max, σ₁, ..., Iₙ_max, Eₙ_a, Tₙ_max, σₙ]

l_w: A 4×n vector specifying the lower bounds for each parameter during the fitting process, in the same format as p.

p_w: A 4×n vector specifying the upper bounds for each parameter during fitting, also in the same format as p.

max_iter: An integer specifying the maximum number of iterations allowed for the numerical optimization method. This controls the convergence behavior during the fitting process.

ROI: A tuple or list defining the region of interest, as the minimum and maximum temperatures that delimit the fitting area (e.g., [start_temp, end_temp]).

models: A list or vector of length n defining the model type for each component peak. Each element must be one of:

'G' – for a continuous Gaussian trap distribution

'E' – for a continuous Exponential trap distribution

'L' – for a Localized (discrete) trap distribution

The function returns two pandas.DataFrame objects:

Kinetic Parameters DataFrame: Contains the estimated parameters for each contribution:

Imax (a.u.)

Ea (eV)

Tmax (K)

σ (eV)

Statistical Residuals DataFrame: Reports a statistical analysis of the residuals from the curve fitting, helping evaluate the quality and reliability of the deconvolution.

Characteristics

  • ✅ Easy to use
  • ⚡ Fast and efficient
  • 🔧 Compatible with Python 3.7+

Installation

You can install the library using pip:

pip install CGCD==0.0.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cgcd-0.0.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cgcd-0.0.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file cgcd-0.0.0.tar.gz.

File metadata

  • Download URL: cgcd-0.0.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cgcd-0.0.0.tar.gz
Algorithm Hash digest
SHA256 f9b360618f4d5033f55e5380e7084077cee3d7e6e6df20f4a913558adb51b306
MD5 4a1ac5ae4f982633dd219c2fd6746cc1
BLAKE2b-256 bde38a2ae1c3815898ddbba45b8f5240a1ac533c7055964201f20cef83c8b5fd

See more details on using hashes here.

File details

Details for the file cgcd-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: cgcd-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cgcd-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 173e2d38f2683d845bf7f8dfa5f4b299d1b185b9d1bd5fb398892dd0457294ec
MD5 0a898ea1f0ee807b0ef0048267558b73
BLAKE2b-256 7bf1ff663c51abd0443480bf6324789ac44ef28ac31c21a1692d4eb94644c0d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page