Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Writing a C program: In spectroscopy, measurements are made of light intensity at different wavelengths. Often the data has an offset or background that must

Writing a C program:

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

In spectroscopy, measurements are made of light intensity at different wavelengths. Often the data has an offset or background that must be subtracted in order to get the desired result. Write a C program that reads in two data files, one containing the total signal and one containing the background. In the region where the data from the two files overlap, calculate and plot the corrected signal (i.e., total signal background) The first number in each file will be the number of wavelength/intensity pairs followed by the data, wavelength first and intensity second. For example, the total signal might look like this 12 530.2 530.4 530.6 530.8 531 531.2 531.4 531.6 531.8 532 532.2 532.4 449.10 589.59 742.04 910.61 1027.11 1044.72 1026.95 915.85 750.05 590.37 452.58 322.43 The wavelength is in nm and the intensity is in averaged detector counts The background will have a similar structure, but might not cover exactly the same spectral region - that is, it might look like this In spectroscopy, measurements are made of light intensity at different wavelengths. Often the data has an offset or background that must be subtracted in order to get the desired result. Write a C program that reads in two data files, one containing the total signal and one containing the background. In the region where the data from the two files overlap, calculate and plot the corrected signal (i.e., total signal background) The first number in each file will be the number of wavelength/intensity pairs followed by the data, wavelength first and intensity second. For example, the total signal might look like this 12 530.2 530.4 530.6 530.8 531 531.2 531.4 531.6 531.8 532 532.2 532.4 449.10 589.59 742.04 910.61 1027.11 1044.72 1026.95 915.85 750.05 590.37 452.58 322.43 The wavelength is in nm and the intensity is in averaged detector counts The background will have a similar structure, but might not cover exactly the same spectral region - that is, it might look like this

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions