Skip to content

Quick script to normalize data of one plot, e.g. spectra.

License

Notifications You must be signed in to change notification settings

mtplr/pyNormalizePlot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

pyNormalizePlot

Quick script to normalize data of one plot in a folder. Initially created to normalize IR spectra from 0 to 1.

The equation used to normalize each absorption point is: normalized_abs_i = (old_abs_i-abs_min)/(abs_max-abs_min)

usage: pyNormalizePlot.py [-h] [--inputfile INPUTFILE] [--outputfile OUTPUTFILE] [--reversey REVERSEY]

Normalize a plot.

optional arguments:
  -h, --help            show this help message and exit
  --inputfile INPUTFILE
                        Input file, like a .dat, .txt ... With two columns: Wavenumbers and Intensity. Default is 'IR.dat'
  --outputfile OUTPUTFILE
                        Output file, default is 'IR-norm.dat'
  --reversey REVERSEY   Choose whether to reverse the y-axis or not. Default False.

About

Quick script to normalize data of one plot, e.g. spectra.

Topics

Resources

License

Stars

Watchers

Forks

Languages