mocsy  2.0
Fortran 95 routines to model ocean carbonate system thermodynamics
 All Classes Namespaces Files Functions Variables Pages
Variables
mocsy_CMIP5 Namespace Reference

Variables

string usage
 
tuple nb_arguments = len(sys.argv)
 
list DIC_file = sys.argv[1]
 
list DIC_var = sys.argv[2]
 
list Alk_file = sys.argv[3]
 
list Alk_var = sys.argv[4]
 
list Temp_file = sys.argv[5]
 
list Temp_var = sys.argv[6]
 
list Salt_file = sys.argv[7]
 
list Salt_var = sys.argv[8]
 
list PO4_file = sys.argv[9]
 
list PO4_var = sys.argv[10]
 
list Si_file = sys.argv[11]
 
list Si_var = sys.argv[12]
 
list stimebeg = sys.argv[13]
 
list stimeendref = sys.argv[14]
 
list stimeendmin = sys.argv[15]
 
tuple timebeg = int(stimebeg)
 
tuple timeendref = int(stimeendref)
 
tuple timeendmin = int(stimeendmin)
 
tuple g = cdms.open(DIC_file)
 
tuple dicfile = os.path.basename(DIC_file)
 
tuple dicdir = os.path.dirname(DIC_file)
 
 outdir = dicdir
 
tuple filnameparts = dicfile.split('_')
 
list model = filnameparts[2]
 
list expmt = filnameparts[3]
 
tuple dirparts = dicdir.split('/')
 
list institute = dirparts[4]
 
tuple dic0 = g(DIC_var,time=slice(0,1))
 
tuple depth1D = dic0.getLevel()
 
tuple lat2D = dic0.getLatitude()
 
tuple tax = g.getAxis('time')
 
tuple taxlen = len(tax)
 
list taxbeg = tax[0]
 
list taxend = tax[taxlen-1]
 
tuple itims = xrange(timeendmin+1-timebeg)
 
tuple f = cdms.open(DIC_file)
 
tuple dic = f(DIC_var,time=slice(itim,itim+1))
 
tuple dic_axes = dic.getAxisList()
 
tuple dic_grid = dic.getGrid()
 
tuple alk = f(Alk_var,time=slice(itim,itim+1))
 
tuple t = f(Temp_var,time=slice(itim,itim+1))
 
tuple s = f(Salt_var,time=slice(itim,itim+1))
 
int po4 = t*0
 
int sio2 = t*0
 
 depth = depth1D
 
 lat = lat2D
 
tuple common_mask = np.zeros(dic.shape)
 
 m = v.mask
 
list patm = t[:]
 
string optcon = 'mol/m3'
 
tuple pH = np.reshape(pH, dic.shape)
 
tuple pco2 = np.reshape(pco2, dic.shape)
 
tuple fco2 = np.reshape(fco2, dic.shape)
 
tuple co2 = np.reshape(co2, dic.shape)
 
tuple hco3 = np.reshape(hco3, dic.shape)
 
tuple co3 = np.reshape(co3, dic.shape)
 
tuple OmegaA = np.reshape(OmegaA, dic.shape)
 
tuple OmegaC = np.reshape(OmegaC, dic.shape)
 
tuple BetaD = np.reshape(BetaD, dic.shape)
 
tuple Alk = np.reshape(alk, dic.shape)
 
tuple DIC = np.reshape(dic.ravel(), dic.shape)
 
tuple DENis = np.reshape(DENis, dic.shape)
 
tuple p = np.reshape(p, dic.shape)
 
tuple Tis = np.reshape(Tis, dic.shape)
 
tuple varfile = dicfile.replace('dissic',variable.id)
 
tuple vardir = outdir.replace('dissic',variable.id)
 
string output_file_name = vardir+"/"
 
tuple output_file = cdms.open(output_file_name, "w")
 

Variable Documentation

tuple mocsy_CMIP5.alk = f(Alk_var,time=slice(itim,itim+1))

Definition at line 176 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.Alk = np.reshape(alk, dic.shape)

Definition at line 288 of file mocsy_CMIP5.py.

list mocsy_CMIP5.Alk_file = sys.argv[3]

Definition at line 92 of file mocsy_CMIP5.py.

list mocsy_CMIP5.Alk_var = sys.argv[4]

Definition at line 93 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.BetaD = np.reshape(BetaD, dic.shape)

Definition at line 287 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.co2 = np.reshape(co2, dic.shape)

Definition at line 282 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.co3 = np.reshape(co3, dic.shape)

Definition at line 284 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.common_mask = np.zeros(dic.shape)

Definition at line 234 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.DENis = np.reshape(DENis, dic.shape)

Definition at line 292 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.depth = depth1D

Definition at line 222 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.depth1D = dic0.getLevel()

Definition at line 136 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.dic = f(DIC_var,time=slice(itim,itim+1))

Definition at line 168 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.DIC = np.reshape(dic.ravel(), dic.shape)

Definition at line 290 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.dic0 = g(DIC_var,time=slice(0,1))

Definition at line 135 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.dic_axes = dic.getAxisList()

Definition at line 169 of file mocsy_CMIP5.py.

list mocsy_CMIP5.DIC_file = sys.argv[1]

Definition at line 90 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.dic_grid = dic.getGrid()

Definition at line 170 of file mocsy_CMIP5.py.

list mocsy_CMIP5.DIC_var = sys.argv[2]

Definition at line 91 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.dicdir = os.path.dirname(DIC_file)

Definition at line 119 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.dicfile = os.path.basename(DIC_file)

Definition at line 118 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.dirparts = dicdir.split('/')

Definition at line 126 of file mocsy_CMIP5.py.

list mocsy_CMIP5.expmt = filnameparts[3]

Definition at line 125 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.f = cdms.open(DIC_file)

Definition at line 167 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.fco2 = np.reshape(fco2, dic.shape)

Definition at line 281 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.filnameparts = dicfile.split('_')

Definition at line 123 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.g = cdms.open(DIC_file)

Definition at line 117 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.hco3 = np.reshape(hco3, dic.shape)

Definition at line 283 of file mocsy_CMIP5.py.

list mocsy_CMIP5.institute = dirparts[4]

Definition at line 127 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.itims = xrange(timeendmin+1-timebeg)

Definition at line 160 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.lat = lat2D

Definition at line 223 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.lat2D = dic0.getLatitude()

Definition at line 137 of file mocsy_CMIP5.py.

mocsy_CMIP5.m = v.mask

Definition at line 236 of file mocsy_CMIP5.py.

list mocsy_CMIP5.model = filnameparts[2]

Definition at line 124 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.nb_arguments = len(sys.argv)

Definition at line 88 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.OmegaA = np.reshape(OmegaA, dic.shape)

Definition at line 285 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.OmegaC = np.reshape(OmegaC, dic.shape)

Definition at line 286 of file mocsy_CMIP5.py.

string mocsy_CMIP5.optcon = 'mol/m3'

Definition at line 264 of file mocsy_CMIP5.py.

mocsy_CMIP5.outdir = dicdir

Definition at line 120 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.output_file = cdms.open(output_file_name, "w")

Definition at line 405 of file mocsy_CMIP5.py.

string mocsy_CMIP5.output_file_name = vardir+"/"

Definition at line 399 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.p = np.reshape(p, dic.shape)

Definition at line 293 of file mocsy_CMIP5.py.

list mocsy_CMIP5.patm = t[:]

Definition at line 258 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.pco2 = np.reshape(pco2, dic.shape)

Definition at line 280 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.pH = np.reshape(pH, dic.shape)

Definition at line 279 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.po4 = t*0

Definition at line 195 of file mocsy_CMIP5.py.

list mocsy_CMIP5.PO4_file = sys.argv[9]

Definition at line 98 of file mocsy_CMIP5.py.

list mocsy_CMIP5.PO4_var = sys.argv[10]

Definition at line 99 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.s = f(Salt_var,time=slice(itim,itim+1))

Definition at line 189 of file mocsy_CMIP5.py.

list mocsy_CMIP5.Salt_file = sys.argv[7]

Definition at line 96 of file mocsy_CMIP5.py.

list mocsy_CMIP5.Salt_var = sys.argv[8]

Definition at line 97 of file mocsy_CMIP5.py.

list mocsy_CMIP5.Si_file = sys.argv[11]

Definition at line 100 of file mocsy_CMIP5.py.

list mocsy_CMIP5.Si_var = sys.argv[12]

Definition at line 101 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.sio2 = t*0

Definition at line 196 of file mocsy_CMIP5.py.

list mocsy_CMIP5.stimebeg = sys.argv[13]

Definition at line 102 of file mocsy_CMIP5.py.

list mocsy_CMIP5.stimeendmin = sys.argv[15]

Definition at line 104 of file mocsy_CMIP5.py.

list mocsy_CMIP5.stimeendref = sys.argv[14]

Definition at line 103 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.t = f(Temp_var,time=slice(itim,itim+1))

Definition at line 182 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.tax = g.getAxis('time')

Definition at line 152 of file mocsy_CMIP5.py.

list mocsy_CMIP5.taxbeg = tax[0]

Definition at line 154 of file mocsy_CMIP5.py.

list mocsy_CMIP5.taxend = tax[taxlen-1]

Definition at line 155 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.taxlen = len(tax)

Definition at line 153 of file mocsy_CMIP5.py.

list mocsy_CMIP5.Temp_file = sys.argv[5]

Definition at line 94 of file mocsy_CMIP5.py.

list mocsy_CMIP5.Temp_var = sys.argv[6]

Definition at line 95 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.timebeg = int(stimebeg)

Definition at line 112 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.timeendmin = int(stimeendmin)

Definition at line 114 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.timeendref = int(stimeendref)

Definition at line 113 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.Tis = np.reshape(Tis, dic.shape)

Definition at line 294 of file mocsy_CMIP5.py.

string mocsy_CMIP5.usage
Initial value:
1 = """
2  Usage: mocsy_OCMIP5.py <DIC-file> <DIC-var> <Alk-file> <Alk-var> <Temp-file> <Temp-var> \\
3  <Salt-file> <Salt-var> <PO4-file> <PO4-var> <Si-file> <Si-var>
4 
5  Ouput file is created & stored following OCMIP5 (CMIP5) archive nomenclature
6  (under /prodigfsOCMIP5/derived_CMIP5). Its name is derived from DIC filename:
7  * dir as for input dir but "dissic" replaed by output var names
8  * filename handled likewise with "dissic" replaced by output var names"
9  """

Definition at line 78 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.vardir = outdir.replace('dissic',variable.id)

Definition at line 397 of file mocsy_CMIP5.py.

tuple mocsy_CMIP5.varfile = dicfile.replace('dissic',variable.id)

Definition at line 395 of file mocsy_CMIP5.py.