Question: 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

 Write a C program that reads in two data files, one

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: 15 530.8 21.35189819 531 10.70652695 531.2 16.98842348 531.4 14.49398002 531.6 18.49910328 531.8 22.98970273 532 37.44635603 532.2 70.40316511 532.4 94.21406115 532.6 114.116485 532.8 131.7567569 533 191.4859871 533.2 214.5389005 533.4 243.7556789 533.6 299.0439143

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!