Skip to content

Instantly share code, notes, and snippets.

@jarvist
Created May 1, 2012 16:09
Show Gist options
  • Save jarvist/2569218 to your computer and use it in GitHub Desktop.
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
#!/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