carb(seacarb)
carb()所属R语言包:seacarb
Parameters of the seawater carbonate system
海水中碳酸盐系统的参数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns parameters of the seawater carbonate system.
返回碳酸海水系统的参数。
用法----------Usage----------
参数----------Arguments----------
参数:flag
select the couple of variables available. The flags which can be used are: flag = 1 pH and CO2 given flag = 2 CO2 and HCO3 given flag = 3 CO2 and CO3 given flag = 4 CO2 and ALK given flag = 5 CO2 and DIC given flag = 6 pH and HCO3 given flag = 7 pH and CO3 given flag = 8 pH and ALK given flag = 9 pH and DIC given flag = 10 HCO3 and CO3 given flag = 11 HCO3 and ALK given flag = 12 HCO3 and DIC given flag = 13 CO3 and ALK given flag = 14 CO3 and DIC given flag = 15 ALK and DIC given flag = 21 pCO2 and pH given flag = 22 pCO2 and HCO3 given flag = 23 pCO2 and CO3 given flag = 24 pCO2 and ALK given flag = 25 pCO2 and DIC given
选择一些可用的变量。可以使用的标志是:标志= 1 pH值和CO2标志= 2 CO2和HCO3标志= 3 CO2,CO3给定的标志= 4 CO2和ALK的标志= 5 CO2和DIC标志= 6 pH值和HCO3给出的标志= 7 pH值和CO3给出的标志= 8 pH值和ALK标志= 9 pH值和DIC标志= 10 = 11 HCO3和ALK的标志HCO3和CO3标志= 12 HCO3和DIC给予的标志= 13 CO3和ALK标志= 14 CO3和DIC标志= 15的ALK和DIC标志= 21 pCO2和pH值= 22 pCO2和HCO3给予的标志给定的标志= 23 pCO2和CO3 = 24 pCO2和ALK = 25 pCO2和DIC给定标志给定的标志
参数:var1
Value of the first variable in mol/kg, except for pH and for pCO2 in μatm
在摩尔/千克的第一个变量的值,除了pH值和二氧化碳分压在μ大气压
参数:var2
Value of the second variable in mol/kg, except for pH
实惠的第二可变摩尔/千克,除了pH值
参数:S
Salinity
盐度
参数:T
Temperature in degrees Celsius
摄氏温度
参数:P
Hydrostatic pressure in bar (surface = 0)
流体静压力(bar)(表面积= 0)
参数:Pt
Concentration of total phosphate in mol/kg
摩尔/千克,总磷浓度
参数:Sit
Concentration of total silicate in mol/kg
总硅酸盐浓度摩尔/千克
参数:k1k2
"l" for using K1 and K2 from Lueker et al. (2000), "m06" from Millero et al. (2006), "m10" from Millero (2010) and "r" from Roy et al. (1993). "x" is the default flag; the default value is then "l", except if T is outside the range 2 to 35oC and/or S is outside the range 19 to 43. In these cases, the default value is "m10".
“升”的使用K1和K2从Lueker等的。 (2000年),“M06”从Millero等。 (2006年),“M10”从Millero(2010年)和“R”Roy等人。 (1993)。 “x”是默认的标志,然后,默认值是“l”的,除非T是2至35℃的范围之外和/或S的是19至43的范围之外。在这些情况下,默认值是“M10”。
参数:kf
"pf" for using Kf from Perez and Fraga (1987) and "dg" for using Kf from Dickson and Riley (1979 in Dickson and Goyet, 1994). "x" is the default flag; the default value is then "pf", except if T is outside the range 9 to 33oC and/or S is outside the range 10 to 40. In these cases, the default is "dg".
“PF”对使用KF佩雷斯和弗拉加(1987年)和“DG”使用KF迪克森和Riley(1979年中迪克森和Goyet,1994年)。 “X”是默认的标志,默认值是“PF”,除非T是范围以外的9为33oC和/或S是超出范围为10~40。在这些情况下,默认为“DG”。
参数:ks
"d" for using Ks from Dickon (1990) and "k" for using Ks from Khoo et al. (1977), default is "d"
使用K报表邱博士等用KS从迪肯(1990)和“k”的“d”的。 (1977),默认为“D”
参数:pHscale
"T" for the total scale, "F" for the free scale and "SWS" for using the seawater scale, default is "T" (total scale)
总规模的“T”,“F”的规模和使用海水规模的“SWS”,默认为“T”(总规模)
参数:b
"l10" for computing boron total from the Lee et al. (2010) formulation or "u74" for using the Uppstrom (1974) formulation, default is "l10"
“L10”硼总Lee等人计算。 (2010年)制定或“U74”用于使用Uppstrom(1974年)制定,默认为“L10”
Details
详细信息----------Details----------
The Lueker et al. (2000) constants for K1 and K2, the Perez and Fraga (1987) constant for Kf and the Dickson (1990) constant for Ks are recommended by Dickson et al. (2007). It is, however, critical to consider that each formulation is only valid for specific ranges of temperature and salinity:
该Lueker等人。 (2000)推荐的常数K1和K2,Perez和弗拉加(1987)常数Kf和迪克森(1990)常数K报表Dickson等人。 (2007年)。 ,但是,重要的是要考虑到每个配方是只适用于特定范围的温度和盐度:
For K1 and K2:
对于K1和K2:
Roy et al. (1993): S ranging between 0 and 45 and T ranging between 0 and 45oC.
Roy等人。 (1993):S取值范围在0和45之间和T 0和45℃之间的范围。
Lueker et al. (2000): S ranging between 19 and 43 and T ranging between 2 and 35oC.
lueker等。 (2000年):S之间19和第43和T 2和35℃之间。
Millero et al. (2006): S ranging between 0.1 and 50 and T ranging between 1 and 50oC.
millero等。 (2006年):S介于0.1和50和T 1和50℃之间的范围。
Millero (2010): S ranging between 1 and 50 and T ranging between 0 and 50oC. Millero (2010) provides a K1 and K2 formulation for the seawater, total and free pH scales. Therefore, when this method is used and if P=0, K1 and K2 are computed with the formulation corresponding to the pH scale given in the flag "pHscale".
millero(2010):S 1和50和T之间的范围在0和50℃之间不等。 Millero(2010)提供了K1和K2制定的海水,总的和自由的pH值尺度。因此,当使用这种方法时,如果P = 0,K1和K2是与制定相应的pH值范围中给出的标志“pHscale”计算。
For Kh:
对于KH:
Perez and Fraga (1987): S ranging between 10 and 40 and T ranging between 9 and 33oC.
佩雷斯和弗拉加(1987):S介于10和40和T 9和33oC之间。
Dickson and Riley (1979 in Dickson and Goyet, 1994): S ranging between 0 and 45 and T ranging between 0 and 45oC.
迪克森和Riley(1979在Dickson和Goyet,1994):S 0~45和T介于0和45℃之间。
For Ks:
对于KS:
Dickson (1990): S ranging between 5 and 45 and T ranging between 0 and 45oC.
迪克森(1990):S介于5和45和T 0和45℃之间的范围。
Khoo et al. (1977): S ranging between 20 and 45 and T ranging between 5 and 40oC.
邱等人。 (1977):S范围20和45和T之间的范围在5至40℃之间。
The arguments can be given as a unique number or as vectors. If the lengths of the vectors are different, the longer vector is retained and only the first value of the other vectors is used. It is recommended to use either vectors with the same dimension or one vector for one argument and numbers for the other arguments.
的参数可被指定为唯一的编号或作为向量。如果矢量的长度是不同的,较长的矢量被保留,并只使用的其它向量的第一个值。建议使用任一向量同尺寸或一个向量的一个参数和其他参数的数字。
Pressure corrections and pH scale:
压力修正和pH值范围:
For K1, K2, pK1, pK2, pK3, Kw, Kb, Khs and Ksi, the pressure correction was applied on the seawater scale. Hence, if needed, values were first transformed from the total scale to the seawater scale, the pressure correction applied as described by Millero (1995), and the value was transformed back to the required scale (T, F or SWS).
对于K1,K2,PK1,PK2,PK3,千瓦,结果,KHS和KSI,压力校正施加在海水规模。因此,如果需要的话,值是第一变换从总规模的海水规模,施加的压力校正所述者Millero(1995),该值被转换回所需的规模(T,F或SWS)。
For Kf, the pressure correction was applied on the free scale. The formulation of Dickson and Riley (1979 in Dickson and Goyet, 1994) provides Kf on the free scale but that of Perez and Fraga (1987) provides it on the total scale. Hence, in that case, Kf was first transformed from the total scale to the free scale. With both formulations, the pressure correction was applied as described by Millero (1995), and the value was transformed back to the required scale (T, F or SWS).
对于钾长石,施加的压力校正的自由规模。迪克森和Riley(1979 Dickson和Goyet,1994年)的制定提供KF规模的自由,但佩雷斯和弗拉加(1987)提供的总规模。因此,在这种情况下,钾长石首先被转化的总规模规模的自由。两种配方,施加的压力校正所述者Millero(1995),并且该值被变换回所需的规模(T,F或SWS)。
For Ks, the pressure correction was applied on the free scale. The pressure correction was applied as described by Millero (1995), and the value was transformed back to the required scale (T, F or SWS).
对于K报表,施加的压力校正的自由规模。压力校正施加者Millero(1995)所描述,该值被变换回所需的规模(T,F或SWS)。
For Kn, The pressure correction was applied on the seawater scale. The pressure correction was applied as described by Millero (1995), and the value was transformed back to the required scale (T, F or SWS).
Kn的,施加的压力校正海水规模。压力校正施加者Millero(1995)所描述,该值被变换回所需的规模(T,F或SWS)。
值----------Value----------
The function returns a data frame containing the following columns:
该函数返回一个数据框包含以下几列:
参数:S
Salinity
盐度
参数:T
Temperature in degrees Celsius
摄氏温度
参数:P
Pressure in bar
压力(bar)
参数:pH
pH
pH值
参数:CO2
CO2 concentration (mol/kg)
CO2浓度(摩尔/千克)
参数:pCO2
pCO2, CO2 partial pressure (μatm)
二氧化碳分压,CO2分压(μ大气压)
参数:fCO2
fCO2, CO2 fugacity (μatm)
fCO2,CO2逸(μ大气压)
参数:HCO3
HCO3 concentration (mol/kg)
HCO3浓度(摩尔/千克)
参数:CO3
CO3 concentration (mol/kg)
CO3浓度(摩尔/千克)
参数:DIC
DIC concentration (mol/kg)
DIC的浓度(摩尔/千克)
参数:ALK
ALK, total alkalinity (mol/kg)
ALK,总碱度(摩尔/千克)
参数:OmegaAragonite
Omega aragonite, aragonite saturation state
欧米茄霰石,文石饱和的状态
参数:OmegaCalcite
Omega calcite, calcite saturation state
欧米茄方解石,方解石饱和的状态
(作者)----------Author(s)----------
Heloise Lavigne and Jean-Pierre Gattuso <a href="mailto:gattuso@obs-vlfr.fr">gattuso@obs-vlfr.fr</a>
参考文献----------References----------
实例----------Examples----------
## With a couple of variables[随着一些变量#]
carb(flag=8, var1=8.2, var2=0.00234, S=35, T=25, P=0, Pt=0, Sit=0,
pHscale="T", kf="pf", k1k2="l", ks="d", b="l10")
## Using vectors as arguments[#使用向量作为参数]
flag <- c(8, 2, 8)
var1 <- c(8.2, 7.477544e-06, 8.2)
var2 <- c(0.002343955, 0.001649802, 2400e-6)
S <- c(35, 35, 30)
T <- c(25, 25, 30)
P <- c(0, 0, 0)
Pt <- c(0, 0, 0)
Sit <- c(0, 0, 0)
kf <- c("pf", "pf", "pf")
k1k2 <- c("l", "l", "l")
pHscale <- c("T", "T", "T")
b <- c("l10", "l10", "l10")
carb(flag=flag, var1=var1, var2=var2, S=S, T=T, P=P,
Pt=Pt, Sit=Sit, kf=kf, k1k2=k1k2, pHscale=pHscale, b=b)
## Test with all flags [#测试,所有的标志]
flag <- c((1:15), (21:25))
var1 <- c(8.200000, 7.308171e-06, 7.308171e-06, 7.308171e-06, 7.308171e-06,
8.2, 8.2, 8.2, 8.2, 0.001646857, 0.001646857, 0.001646857, 0.0002822957,
0.0002822957, 0.00234, 258.2164, 258.2164, 258.2164, 258.2164, 258.2164 )
var2 <- c(7.308171e-06, 0.001646857, 0.0002822957, 0.00234, 0.001936461,
0.001646857, 0.0002822957, 0.00234, 0.001936461, 0.0002822957,
0.00234, 0.001936461, 0.00234, 0.001936461, 0.001936461, 8.2,
0.001646857, 0.0002822957, 0.00234, 0.001936461)
carb(flag=flag, var1=var1, var2=var2)
## Test using a data frame [#测试使用的数据框]
data(seacarb_test_P0) #test data set for P=0 (surface)[设定为P = 0(表面)的测试数据]
tab <- seacarb_test_P0
## method 1 using the column numbers[#方法1,使用列号]
carb(flag=tab[[1]], var1=tab[[2]], var2=tab[[3]], S=tab[[4]], T=tab[[5]],
P=tab[[6]], Sit=tab[[7]], Pt=tab[[8]])
## method 2 using the column names[#方法2使用列名]
carb(flag=tab$flag, var1=tab$var1, var2=tab$var2, S=tab$S, T=tab$T, P=tab$P,
Sit=tab$Sit, Pt=tab$Pt)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|