Skip to content
Snippets Groups Projects
Commit 53c24486 authored by ivar's avatar ivar
Browse files

added MixingratioToPermil

parent d8378f7e
Branches
No related tags found
No related merge requests found
#!/usr/bin/env python
# MixingratioToPermil.py
"""
Author : ivar
Revision History:
File created on 11 May 2012.
"""
def MixingratioToPermil(filename,simulated):
""" Converts 13C mixing ratios to permil values"""
import da.tools.io4 as io
from numpy import array
pdb = 0.011112
trlength=len(simulated[0,:])
memlength=trlength/2
simulated=simulated*1.e6 #convert to ppm
simulated[:,memlength:trlength]=1000.*((simulated[:,memlength:trlength]/simulated[:,0:memlength]/pdb)-1.)
print simulated
return simulated
if __name__ == "__main__":
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment