Created
May 1, 2012 16:09
-
-
Save jarvist/2569218 to your computer and use it in GitHub Desktop.
Generates Gaussians from a set of Dirac Delta inputs, to simulate vibrational / experimental broadening, Currently designed for raman spectra
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
#Generates Gaussians from a set of Dirac Delta inputs, to simulate vibrational / experimental broadening | |
#Currently designed for raman spectra | |
BEGIN{ | |
} | |
{ | |
c=0.1 | |
if ($2>10.0) | |
printf("+ %f*exp(-(x-(%f))*(x-(%f))/(2*%f))",$2,$1,$1,c); | |
} | |
END{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment