أدوات مساعدةلطلبة الماجستير

بصمة الطيف : أداة مجانية لمقارنة أطياف السبيكتروفوتوميتر لعدة عينات

Spectral Fingerprint: a free tool to compare spectrophotometer spectra of several samples

بصمة الطيف: أداة مجانية لمقارنة أطياف السبيكتروفوتوميتر لعدة عينات

Spectral Fingerprint · v2.0

«بصمة الطيف» أداة تعمل في المتصفح، تقرأ أطياف الامتصاصية أو النفاذية أو الانعكاسية لعدة عينات، وتحسب لكل عينة موضع القمة وعرضها وطاقة الفوتون المقابلة، والإزاحة بين العينات، ولون العينة بمعايير CIE، ومعامل الامتصاص من قانون بير-لامبرت، مع خطأ كل نتيجة وحدود القياس.

أطياف امتصاص منشورة لثلاث صبغات قياسية في الإيثانول، مطبّعة على القمة: الفلوريسين ورودامين 6G ورودامين B. الأرقام مواضع القمم كما حسبتها الأداة، والمسافة بينها هي الإزاحة التي تقيسها بين العينات.

الأداة تعمل في المتصفح على الحاسب والجوال، ولا تُرفع ملفاتك إلى أي خادم. تقبل ملفات نصية (csv وtxt وasc وdat) فيها عمود الطول الموجي ثم عمود أو أكثر للقيم، بعنوان أو بدونه، والفاصل فاصلة أو فاصلة منقوطة أو Tab أو مسافة، مع الفاصلة العشرية والأرقام العربية. والمحور الأفقي بالنانومتر أو الميكرومتر أو العدد الموجي cm⁻¹ أو الإلكترون فولت.

ماذا تعطيك الأداة

  • القممموضع كل حزمة امتصاص بالنانومتر وبطاقة الفوتون، وارتفاعها، وعرضها الكامل عند نصف الارتفاع FWHM بالنانومتر والملي إلكترون فولت، والحزم الثانوية إن وُجدت.
  • الإزاحة بين العيناتالفرق في موضع القمة Δλ وفي الطاقة ΔE بين كل عينة وعينة مرجعية تختارها، واتجاهه نحو الأحمر أو نحو الأزرق، ومعامل تشابه شكل الطيفين.
  • اللونإحداثيات CIE ‏x, y، والنفاذية الضوئية Y، وقيم L*a*b*، والطول الموجي السائد أو المكمّل، والنقاء اللوني، ومربع باللون التقريبي، ومخطط ألوان CIE 1931.
  • قانون بير-لامبرتمعامل الامتصاص المولي ε أو الكتلي من سلسلة تراكيز، مع خطئه المعياري، والجزء المقطوع وخطئه، ومعامل التحديد، والباقي عند كل نقطة.
  • حافة الامتصاصطاقة أشد ارتفاع للامتصاصية مع الطاقة إن كانت خارج الحزم، مؤشرًا سريعًا يُكمَّل بتحليل تاوك لفجوة الطاقة.
  • تنبيهات تلقائيةامتصاصية فوق الحد الموثوق حيث يطغى الضوء الشارد، وضوضاء كبيرة تجعل موضع القمة تقريبيًا، وقمة لا تكتمل داخل البيانات، وخط أساس لا يمر بالصفر.
  • عرض مرنالامتصاصية أو النفاذية أو الامتصاصية المطبّعة أو المشتقة الأولى أو الثانية، على محور الطول الموجي أو طاقة الفوتون، مع قراءة القيم بالمؤشر.
  • ملفات للتحريرجدول النتائج والأطياف المعالجة بصيغة CSV، والرسم بصيغة PNG أو SVG، وتقرير مطبوع أو محفوظ بصيغة PDF يضم الرسم والجداول والتنبيهات والمراجع.

طريقة الاستخدام

  1. ارفع الملفات

    اسحب ملفًا أو أكثر إلى مربع الرفع أو اضغط عليه للاختيار. الملف الذي فيه عدة أعمدة يصبح عدة عينات بأسماء أعمدته. وللتجربة دون ملفات استعمل أحد المثالين، وهما منحنيات محسوبة للتوضيح لا قياسات.

  2. راجع جدول العينات

    تكتب الأداة لكل عينة وحدة المحور الأفقي ونوع الكمية كما تعرّفت عليهما، فصحّحهما إن لزم. واختر العينة المرجعية التي تُقاس الإزاحة منها.

  3. اضبط التحليل

    عرض التنعيم يكون أضيق من أضيق حزمة تهمك، وأدنى بروز للقمة يحدد الحزم الصغيرة المقبولة، وحد الامتصاصية الموثوق يُضبط حسب جهازك.

  4. اقرأ النتائج

    انتقل بين تبويبات القمم والإزاحة، واللون، وبير-لامبرت، والمعالجة والتنبيهات. ولقانون بير-لامبرت أدخل تركيز كل عينة وطول مسارها في جدول العينات.

  5. نزّل ما تحتاجه

    نزّل الرسم أو الجداول، أو اطبع التقرير واحفظه بصيغة PDF من نافذة الطباعة.

خيارات التحليل

الكميةامتصاصية، أو نفاذية بين الصفر والواحد أو نسبة مئوية، أو انعكاسية. تُحوَّل النفاذية إلى امتصاصية، وتُحلل الانعكاسية كما هي دون تحويل.
عرض التنعيمبالنانومتر، والافتراضي 2 nm. تنعيم سافيتسكي-غولاي من الدرجة الثانية يُستعمل في التحليل فقط، ويبقى المنحنى الأصلي في الرسم. والصفر يوقفه.
أدنى بروز للقمةنسبة من مدى المنحنى، والافتراضي 2 %. وتُشترط معه أن تزيد القمة على خمسة أضعاف الضوضاء حولها.
حد الامتصاصية الموثوقالافتراضي 3. فوقه تنبّه الأداة إلى الضوء الشارد، ويمكن خفضه لجهاز أقدم أو رفعه لجهاز مزدوج الحزمة جيد.
المدىبداية المدى ونهايته للرسم، وتبقى الحسابات على كامل الطيف.
الطول الموجي لبير-لامبرتتلقائي عند القمة الرئيسية للعينة الأعلى تركيزًا، أو قيمة تكتبها. ويمكن إلزام المستقيم بالمرور بالأصل.
وحدة التركيزM وmM وµM وnM فيأتي معامل الامتصاص المولي، أو g/L وmg/L فيأتي معامل الامتصاص الكتلي.

القوانين المستعملة

الامتصاصية وقانون بير-لامبرت

$$A=-\log_{10}T=\varepsilon\,l\,c$$

حيث T نسبة شدة الضوء النافذ إلى الساقط، وε معامل الامتصاص المولي، وl طول المسار، وc التركيز. تقرأ الأداة الامتصاصية عند طول موجي واحد لكل عينة، وتلائم A/l مع التركيز بالمربعات الصغرى العادية، فالميل هو ε، والخطأ المعياري للميل:

$$\sigma_\varepsilon=\sqrt{\frac{\sum r_i^2/(N-2)}{\sum (c_i-\bar c)^2}}$$

طاقة الفوتون

$$E=\frac{hc}{\lambda}=\frac{1239.841984\ \mathrm{eV\,nm}}{\lambda}$$

بقيم h وc وe المضبوطة في CODATA 2018. والامتصاصية كمية نقطية، فتُنقل إلى محور الطاقة دون تصحيح يعقوبي، وهذا التصحيح يلزم الكثافات الطيفية مثل أطياف الانبعاث فقط. والعرض بالطاقة من حافتي العرض بالطول الموجي، والإزاحة بالطاقة:

$$\Delta E_{\mathrm{FWHM}}=\frac{hc}{\lambda_1}-\frac{hc}{\lambda_2}\qquad \Delta E\approx-\frac{hc}{\lambda^2}\,\Delta\lambda$$

فالإزاحة نحو الأحمر Δλ > 0 تعني نقص طاقة الانتقال، وعند 530 nm يقابل كل نانومتر نحو 4.4 meV.

التنعيم والقمم

تنعيم سافيتسكي-غولاي ملاءمة كثيرة حدود بالمربعات الصغرى في نافذة متحركة، يحفظ موضع القمة وارتفاعها ما دامت النافذة أضيق من الحزمة. وتُعرَّف القمة وبروزها وعرضها بتعريفات مكتبة SciPy: البروز ارتفاع القمة فوق أعلى القاعدتين على جانبيها، والعرض عند نصف البروز. وموضع القمة رأس قطع مكافئ يُلاءم على النقاط الأعلى من 80 % من البروز، فيتوسط الضوضاء. والضوضاء تُقدَّر من البواقي بعد التنعيم بالانحراف المطلق الوسيط:

$$\sigma=1.4826\ \mathrm{median}\,\bigl|r_i-\mathrm{median}(r)\bigr|$$

اللون

$$X=k\sum_\lambda S(\lambda)\,\tau(\lambda)\,\bar x(\lambda)\,\Delta\lambda\qquad k=\frac{100}{\sum_\lambda S(\lambda)\,\bar y(\lambda)\,\Delta\lambda}$$

ومثلها Y وZ، حيث τ النفاذية أو الانعكاسية كل 5 nm من 380 إلى 780 nm، وS الإضاءة القياسية D65، وx̄ ȳ z̄ دوال الراصد القياسي CIE 1931. ومنها الإحداثيات x = X/(X+Y+Z) وy = Y/(X+Y+Z)، وقيم CIELAB، والطول الموجي السائد من تقاطع الخط الواصل من النقطة البيضاء إلى لون العينة مع حدود الألوان الطيفية.

كيف تقرأ النتائج

موضع القمة وعرضها

دقة موضع القمة أفضل كثيرًا من خطوة القياس إذا كانت الإشارة واضحة، لكنها تتراجع مع الضوضاء: عند نسبة إشارة إلى ضوضاء نحو 15 يكون الموضع صحيحًا في حدود بضعة نانومترات، وتنبّه الأداة إلى ذلك. وعرض الحزمة يتسع مع تعدد البيئات المحيطة بالجزيء أو تفاوت أحجام الجسيمات، فاتساعه بين عينتين معلومة فيزيائية لا تقل عن إزاحة القمة.

الإزاحة

الإزاحة نحو الأحمر تعني أن طاقة الانتقال نقصت: لتغير المذيب أو قطبيته، أو لتجمع الجزيئات، أو لكبر الجسيمات النانوية في حزم الرنين البلازموني. والأداة تقيس الإزاحة وتحدد اتجاهها، أما تفسير سببها فيعود إلى طبيعة العينة. والإزاحة الأصغر من خطوة القياس أو من 2 % من عرض الحزمة تُكتب «لا إزاحة».

اللون

اللون المحسوب لون العينة كما قيست، فيتغير مع التركيز وطول المسار. والمحلول الذي يمتص الأخضر قرب 530 nm يبدو أرجوانيًا، فيُعطى طولًا موجيًا مكمّلًا بدل السائد، لأن الأرجواني لا يقابله طول موجي واحد في الطيف.

الامتصاصية العالية: عند امتصاصية 2 لا يصل إلى الكاشف إلا 1 % من الضوء، وعند 3 جزء من الألف، فيصير الضوء الشارد من أطوال موجية أخرى مؤثرًا، وتبدو الامتصاصية أقل من حقيقتها، وتتسطح القمة ويتسع عرضها، وينحني خط بير-لامبرت. خفّف العينة أو استعمل خلية أقصر.

خط الأساس: الجزء المقطوع البعيد عن الصفر في قانون بير-لامبرت، أو الامتصاصية السالبة، يدل غالبًا على مرجع غير مناسب أو خلية غير نظيفة، فراجع القياس قبل اعتماد معامل الامتصاص.

مقارنة مع أطياف منشورة

اختبرنا الأداة على أطياف منشورة لثلاث صبغات قياسية من قاعدة بيانات PhotochemCAD (Taniguchi & Lindsey, 2018). كوّنّا من طيف معامل الامتصاص المنشور لكل صبغة سلسلة تخفيف بتراكيز 2 و4 و6 و8 µM في خلية طولها 1 cm مع ضوضاء قياس، وكتبنا أحد ملفات الفلوريسين نفاذية مئوية، ثم حللناها بالإعدادات الافتراضية:

الصبغةλmax
المنشور
λmax
الأداة
ε المنشور
(L·mol⁻¹·cm⁻¹)
ε
الأداة
الفرق
رودامين 6G529.75 nm529.73 nm116 000115 9980.00 %
الفلوريسين500.25 nm499.74 nm92 30091 982−0.34 %
رودامين B542.75 nm542.33 nm106 000105 731−0.25 %

جاء موضع القمة ضمن 0.5 nm من القيمة المنشورة في الصبغات الثلاث، ومعامل الامتصاص المولي ضمن 0.4 % منها، وقُرئ ملف النفاذية وحُوّل تلقائيًا. والفرق الصغير في موضع قمتي الفلوريسين ورودامين B سببه عدم تماثل الحزمة، فالكتف على جانبها الأزرق يميل بالقطع المكافئ قليلًا نحوه، وهو أقل من عُشر عرض الحزمة.

واختُبرت الحسابات أيضًا بمقارنتها بمكتبات علمية مستقلة: SciPy للتنعيم والمشتقات والقمم والانحدار الخطي، وcolour-science للحسابات اللونية، فتطابقت النتائج في كل الحالات.

عينات الاختبارملف مضغوط ZIP مع مفتاح الإجابات
اختبار الأداة على عينات قيمها معروفةأطياف محسوبة بقيم محددة سلفًا وبصيغ ملفات مختلفة، ثم مقارنة ما تستخرجه الأداة بها

حسبنا مجموعة أطياف بقيم معروفة، وأضفنا إليها ضوضاء تشبه ضوضاء القياس، وكتبنا كل ملف بصيغة مختلفة، ثم حللناها بالإعدادات الافتراضية:

العينةالصيغةالقيمة الحقيقيةنتيجة الأداة
حزمة واحدةامتصاصية، مسح تنازلي520 nm / 50.0 nm519.98 nm / 50.1 nm
حزمة وحافة امتصاصنفاذية %610 nm، حافة قرب 360 nm610.00 nm، حافة 358 nm
حزمتانبلا عنوان، فاصل مسافات430 و662 nm430.01 و662.01 nm
محور بالميكرومترفاصلة عشرية480 nm / 60 nm480.02 nm / 60.1 nm
ضوضاء كبيرةS/N ≈ 15555 nm / 40 nm554.6 nm / 36.6 nm
سلسلة إزاحةثلاثة أعمدة في ملف520، 528، 545 nm520.01، 528.04، 545.03 nm
امتصاصية مشبعةضوء شارد 0.03 %تنبيه مطلوبظهر التنبيه
سلسلة بير-لامبرتخمسة ملفاتε = 52 000ε = 52 010 ± 42

القيمتان في كل خانة موضع القمة ثم عرضها. وفي العينة المشبعة جاءت القمة مسطحة وأعرض من حقيقتها كما يُتوقع، ونبّهت الأداة إلى أن قيمها غير موثوقة.

المراجع

  1. CIE. (2018). Colorimetry (4th ed., CIE 015:2018). International Commission on Illumination. https://doi.org/10.25039/TR.015.2018
  2. Mooney, J., & Kambhampati, P. (2013). Get the basics right: Jacobian conversion of wavelength and energy scales for quantitative analysis of emission spectra. The Journal of Physical Chemistry Letters, 4(19), 3316–3318. https://doi.org/10.1021/jz401508t
  3. Savitzky, A., & Golay, M. J. E. (1964). Smoothing and differentiation of data by simplified least squares procedures. Analytical Chemistry, 36(8), 1627–1639. https://doi.org/10.1021/ac60214a047
  4. Sharpe, M. R. (1984). Stray light in UV-VIS spectrophotometers. Analytical Chemistry, 56(2), 339A–356A. https://doi.org/10.1021/ac00266a003
  5. Swinehart, D. F. (1962). The Beer–Lambert law. Journal of Chemical Education, 39(7), 333. https://doi.org/10.1021/ed039p333
  6. Taniguchi, M., & Lindsey, J. S. (2018). Database of absorption and fluorescence spectra of >300 common compounds for use in PhotochemCAD. Photochemistry and Photobiology, 94(2), 290–327. https://doi.org/10.1111/php.12860
  7. Tiesinga, E., Mohr, P. J., Newell, D. B., & Taylor, B. N. (2021). CODATA recommended values of the fundamental physical constants: 2018. Reviews of Modern Physics, 93(2), 025010. https://doi.org/10.1103/RevModPhys.93.025010
  8. Virtanen, P., Gommers, R., Oliphant, T. E., et al. (2020). SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nature Methods, 17(3), 261–272. https://doi.org/10.1038/s41592-019-0686-2

من أدوات الباحثين في معامل الفيزياء.

Spectral Fingerprint: a free tool to compare spectrophotometer spectra of several samples

Spectral Fingerprint · v2.0

Spectral Fingerprint is a browser tool that reads absorbance, transmittance or reflectance spectra of several samples and computes, for each sample, the band position and width with the matching photon energy, the shift between samples, the colour of the sample by the CIE standards, and the absorption coefficient from the Beer–Lambert law, with the error of each result and the limits of the measurement.

Published absorption spectra of three standard dyes in ethanol, normalised to the band: fluorescein, rhodamine 6G and rhodamine B. The numbers are the band positions computed by the tool; the gaps between them are the shifts it measures between samples.

The tool runs in the browser on computers and phones, and your files are not uploaded to any server. It reads text files (csv, txt, asc, dat) with a wavelength column followed by one or more value columns, with or without a header, separated by commas, semicolons, tabs or spaces, including decimal commas and Arabic digits. The x axis may be in nanometres, micrometres, wavenumber cm⁻¹ or electronvolts.

What the tool gives you

  • BandsThe position of each absorption band in nanometres and in photon energy, its height, and its full width at half maximum FWHM in nm and meV, with secondary bands where present.
  • Shift between samplesThe band shift Δλ and ΔE of each sample from a reference sample you choose, its direction (red or blue), and a shape-similarity coefficient of the two spectra.
  • ColourCIE chromaticity x, y, luminous transmittance Y, L*a*b*, dominant or complementary wavelength, excitation purity, an approximate colour swatch and a CIE 1931 chromaticity diagram.
  • Beer–Lambert lawThe molar or mass absorption coefficient ε from a concentration series, with its standard error, the intercept and its error, the coefficient of determination and the residual of each point.
  • Absorption edgeThe photon energy of the steepest rise of absorbance with energy, when it lies outside the bands: a quick indicator, to be completed by a Tauc analysis for the band gap.
  • Automatic warningsAbsorbance above the reliable limit where stray light dominates, high noise that makes the band position approximate, a band that does not close inside the data, and a baseline that does not pass through zero.
  • Flexible displayAbsorbance, transmittance, normalised absorbance, or the first or second derivative, against wavelength or photon energy, with a cursor read-out.
  • Editable filesThe results table and processed spectra as CSV, the plot as PNG or SVG, and a printed or PDF report with the plot, tables, warnings and references.

How to use it

  1. Upload the files

    Drop one or more files on the upload box or click it to choose. A file with several columns becomes several samples named after its columns. To try the tool without files, use one of the two examples; they are computed curves for illustration, not measurements.

  2. Check the samples table

    For each sample the tool shows the x-axis unit and the quantity it detected; correct them if needed. Choose the reference sample from which shifts are measured.

  3. Set the analysis

    Keep the smoothing width narrower than the narrowest band you care about; the minimum prominence sets how small an accepted band may be; set the reliable absorbance limit for your instrument.

  4. Read the results

    Move between the tabs for bands and shift, colour, Beer–Lambert, and processing and warnings. For the Beer–Lambert law, enter the concentration and path length of each sample in the samples table.

  5. Download what you need

    Download the plot or the tables, or print the report and save it as PDF from the print dialog.

Analysis options

QuantityAbsorbance, transmittance (0–1 or percent), or reflectance. Transmittance is converted to absorbance; reflectance is analysed as it is, without conversion.
Smoothing widthIn nanometres, default 2 nm. Second-order Savitzky–Golay smoothing is used for the analysis only; the plot keeps the original curve. Zero turns it off.
Minimum prominenceA fraction of the curve range, default 2 %. A band must also exceed five times the noise around it.
Reliable absorbance limitDefault 3. Above it the tool warns about stray light; lower it for an older instrument or raise it for a good double-beam one.
RangeStart and end of the plotted range; the calculations use the whole spectrum.
Beer–Lambert wavelengthAutomatic at the main band of the most concentrated sample, or a value you enter. The line can be forced through the origin.
Concentration unitM, mM, µM, nM give the molar absorption coefficient; g/L and mg/L give the mass absorption coefficient.

Equations used

Absorbance and the Beer–Lambert law

$$A=-\log_{10}T=\varepsilon\,l\,c$$

where T is the ratio of transmitted to incident intensity, ε the molar absorption coefficient, l the path length and c the concentration. The tool reads the absorbance at one wavelength for each sample and fits A/l against concentration by ordinary least squares; the slope is ε, with the standard error:

$$\sigma_\varepsilon=\sqrt{\frac{\sum r_i^2/(N-2)}{\sum (c_i-\bar c)^2}}$$

Photon energy

$$E=\frac{hc}{\lambda}=\frac{1239.841984\ \mathrm{eV\,nm}}{\lambda}$$

with the exact CODATA 2018 values of h, c and e. Absorbance is a point quantity, so it moves to the energy axis without a Jacobian correction; that correction applies only to spectral densities such as emission spectra. The width in energy comes from the two wavelength edges, and the shift in energy is:

$$\Delta E_{\mathrm{FWHM}}=\frac{hc}{\lambda_1}-\frac{hc}{\lambda_2}\qquad \Delta E\approx-\frac{hc}{\lambda^2}\,\Delta\lambda$$

A red shift Δλ > 0 means a lower transition energy; at 530 nm each nanometre is about 4.4 meV.

Smoothing and bands

Savitzky–Golay smoothing is a least-squares polynomial fit in a moving window; it preserves band position and height while the window is narrower than the band. Peak, prominence and width follow the SciPy definitions: prominence is the height of the peak above the higher of its two bases, and the width is taken at half the prominence. The band position is the vertex of a parabola fitted to the points above 80 % of the prominence, so it averages the noise. The noise is estimated from the residuals after smoothing by the median absolute deviation:

$$\sigma=1.4826\ \mathrm{median}\,\bigl|r_i-\mathrm{median}(r)\bigr|$$

Colour

$$X=k\sum_\lambda S(\lambda)\,\tau(\lambda)\,\bar x(\lambda)\,\Delta\lambda\qquad k=\frac{100}{\sum_\lambda S(\lambda)\,\bar y(\lambda)\,\Delta\lambda}$$

and likewise Y and Z, where τ is the transmittance or reflectance every 5 nm from 380 to 780 nm, S the standard illuminant D65 and x̄ ȳ z̄ the CIE 1931 standard observer. From them come x = X/(X+Y+Z), y = Y/(X+Y+Z), CIELAB, and the dominant wavelength from the intersection of the line from the white point through the sample with the spectral locus.

How to read the results

Band position and width

The band position is far more precise than the measurement step when the signal is clear, but the precision drops with noise: at a signal-to-noise ratio of about 15 the position is right to within a few nanometres, and the tool warns about it. A band broadens with the variety of environments around the molecule or the spread of particle sizes, so a change of width between two samples is as informative as a band shift.

Shift

A red shift means the transition energy decreased: through a change of solvent or polarity, aggregation of the molecules, or larger nanoparticles in plasmon bands. The tool measures the shift and its direction; explaining its cause depends on the sample. A shift smaller than the measurement step or than 2 % of the band width is reported as “no shift”.

Colour

The computed colour is the colour of the sample as measured, so it changes with concentration and path length. A solution that absorbs green near 530 nm looks purple and is given a complementary wavelength instead of a dominant one, because purple has no single wavelength in the spectrum.

High absorbance: at absorbance 2 only 1 % of the light reaches the detector, and at 3 one part in a thousand, so stray light from other wavelengths matters: the absorbance reads low, the band flattens and broadens, and the Beer–Lambert line bends. Dilute the sample or use a shorter cell.

Baseline: a Beer–Lambert intercept far from zero, or negative absorbance, usually points to an unsuitable reference or a dirty cell; check the measurement before using the absorption coefficient.

Comparison with published spectra

We tested the tool on published spectra of three standard dyes from the PhotochemCAD database (Taniguchi & Lindsey, 2018). From the published absorption-coefficient spectrum of each dye we formed a dilution series at 2, 4, 6 and 8 µM in a 1 cm cell with measurement noise, wrote one fluorescein file as percent transmittance, and analysed them with the default settings:

Dyeλmax
published
λmax
tool
ε published
(L·mol⁻¹·cm⁻¹)
ε
tool
Difference
Rhodamine 6G529.75 nm529.73 nm116 000115 9980.00 %
Fluorescein500.25 nm499.74 nm92 30091 982−0.34 %
Rhodamine B542.75 nm542.33 nm106 000105 731−0.25 %

The band position came within 0.5 nm of the published value for all three dyes and the molar absorption coefficient within 0.4 %, and the transmittance file was read and converted automatically. The small offset for fluorescein and rhodamine B comes from the asymmetry of the band: the shoulder on its blue side pulls the parabola slightly towards it, by less than a tenth of the band width.

The calculations were also compared with independent scientific libraries, SciPy for smoothing, derivatives, peaks and linear regression and colour-science for colorimetry, and agreed in every case.

Test samplesZIP archive with the answer key
Testing the tool on samples with known valuesSpectra computed with preset values in different file formats, and what the tool recovers from them

We computed a set of spectra with known values, added noise similar to measurement noise, wrote each file in a different format, and analysed them with the default settings:

SampleFormatTrue valueTool result
Single bandAbsorbance, descending scan520 nm / 50.0 nm519.98 nm / 50.1 nm
Band and absorption edgeTransmittance %610 nm, edge near 360 nm610.00 nm, edge 358 nm
Two bandsNo header, space separated430 and 662 nm430.01 and 662.01 nm
Micrometre axisDecimal comma480 nm / 60 nm480.02 nm / 60.1 nm
High noiseS/N ≈ 15555 nm / 40 nm554.6 nm / 36.6 nm
Shift seriesThree columns in one file520, 528, 545 nm520.01, 528.04, 545.03 nm
Saturated absorbanceStray light 0.03 %warning expectedwarning shown
Beer–Lambert seriesFive filesε = 52 000ε = 52 010 ± 42

The two values in a cell are the band position then its width. In the saturated sample the band came out flat and wider than it really is, as expected, and the tool warned that its values are not reliable.

References

  1. CIE. (2018). Colorimetry (4th ed., CIE 015:2018). International Commission on Illumination. https://doi.org/10.25039/TR.015.2018
  2. Mooney, J., & Kambhampati, P. (2013). Get the basics right: Jacobian conversion of wavelength and energy scales for quantitative analysis of emission spectra. The Journal of Physical Chemistry Letters, 4(19), 3316–3318. https://doi.org/10.1021/jz401508t
  3. Savitzky, A., & Golay, M. J. E. (1964). Smoothing and differentiation of data by simplified least squares procedures. Analytical Chemistry, 36(8), 1627–1639. https://doi.org/10.1021/ac60214a047
  4. Sharpe, M. R. (1984). Stray light in UV-VIS spectrophotometers. Analytical Chemistry, 56(2), 339A–356A. https://doi.org/10.1021/ac00266a003
  5. Swinehart, D. F. (1962). The Beer–Lambert law. Journal of Chemical Education, 39(7), 333. https://doi.org/10.1021/ed039p333
  6. Taniguchi, M., & Lindsey, J. S. (2018). Database of absorption and fluorescence spectra of >300 common compounds for use in PhotochemCAD. Photochemistry and Photobiology, 94(2), 290–327. https://doi.org/10.1111/php.12860
  7. Tiesinga, E., Mohr, P. J., Newell, D. B., & Taylor, B. N. (2021). CODATA recommended values of the fundamental physical constants: 2018. Reviews of Modern Physics, 93(2), 025010. https://doi.org/10.1103/RevModPhys.93.025010
  8. Virtanen, P., Gommers, R., Oliphant, T. E., et al. (2020). SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nature Methods, 17(3), 261–272. https://doi.org/10.1038/s41592-019-0686-2

From Researcher tools at Physics Labs.

اظهر المزيد

محمد بن سعد الميلبي

مؤسس مبادرة معامل الفيزياء | مطور حلول رقمية بالذكاء اصطناعي في مجال الفيزياء التعلمية والتحليل العلمي

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني. الحقول الإلزامية مشار إليها بـ *

زر الذهاب إلى الأعلى