找回密码
 注册
查看: 236|回复: 0

R语言 seacarb包 buffer()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-29 23:41:23 | 显示全部楼层 |阅读模式
buffer(seacarb)
buffer()所属R语言包:seacarb

                                        Buffer parameters of the seawater carbonate system
                                         海水中碳酸盐系统的缓冲参数

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Returns buffer parameters of the seawater carbonate system.
返回的海水中碳酸盐系统的缓冲参数。


用法----------Usage----------


buffer(flag, var1, var2, S=35, T=25, P=0, Pt=0, Sit=0, k1k2="x",
        kf="x", ks="d", pHscale="T", b="l10")



参数----------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
enter value of the first  variable in mol/kg, except for pH and for pCO2 in μatm
进入摩尔/千克,第一个变量的值,pH值和二氧化碳分压在μ大气压


参数:var2
enter 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), "k" for using Ks from Khoo et al. (1977), default is "d"  
“D”用KS迪肯(1990年),“K”邱等人用KS。 (1977),默认为“D”


参数:pHscale
choice of pH scale: "T" for the total scale, "F" for the free scale and "SWS" for using the seawater scale, default is "T" (total scale)
选择pH值范围:总规模的“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年中迪克森和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:
该函数返回一个数据框包含以下几列:


参数:PhiD
PhiD, chemical buffer factor (dpH/d[DIC]); input/output of dissolved CO2 (unit pH per mol/kg)
PhiD,化学缓冲因子(DPH /天[DIC]),溶解的CO2(每摩尔/千克的pH单元的输入/输出)


参数:BetaD
BetaD, homogeneous or Revelle buffer factor (dln(pCO2)/dln[DIC]); input/output of dissolved CO2
BETAD,均匀或雷维尔缓冲因子(DLN(二氧化碳分压)/ DLN [DIC]);溶解二氧化碳的输入/输出


参数:PiD
PiD, chemical buffer factor (dpCO2/d[DIC]); input/output of dissolved CO2 (μ atm per mol/kg)
PID,化学缓冲因子(dpCO2 / [DIC])的溶解的二氧化碳的输入/输出(μ atm每摩尔/千克);


参数:PhiB
PhiB, chemical buffer factor (dpH/d[DIC]); from input/output of bicarbonate (unit pH per mol/kg)
PhiB,化学缓冲因子(DPH /天[DIC]),从输入/输出的碳酸氢盐(每摩尔/千克的pH单元)


参数:BetaB
BetaB, homogeneous buffer factor (dln(pCO2)/dln[DIC]); input/output of bicarbonate
BetaB,同质缓冲因子(DLN(二氧化碳分压)/ DLN [DIC]),输入/输出的碳酸氢盐


参数:PiB
PiB, chemical buffer factor (dpCO2/d[DIC]); input/output of dissolved CO2 (μ atm per mol/kg)
PiB中,化学缓冲因子(dpCO2 / [DIC])的溶解的二氧化碳的输入/输出(μ atm每摩尔/千克);


参数:PhiC
PhiC, chemical buffer factor (dpH/d[DIC]); input/output of carbonate (unit pH per mol/kg)
变质,化学缓冲因子(DPH /天[DIC]),碳酸酯(每摩尔/千克的pH单元的输入/输出)


参数:BetaC
BetaC, homogeneous buffer factor (dln(pCO2)/dln[DIC]); input/output of carbonate
BetaC,同质缓冲因子(DLN(二氧化碳分压)/ DLN [DIC]),输入/输出的碳酸


参数:PiC
PiC, chemical buffer factor (dpCO2/d[DIC]); input/output of carbonate (μ atm per mol/kg)
PIC,化学缓冲因子(dpCO2 / [DIC]),输入/输出的碳酸酯(μ atm每摩尔/千克);


参数:PhiH
PhiH, chemical buffer factor (dpH/d[ALK]); input/output of strong acid (unit pH per mol/kg)
PhiH,化学缓冲因子(DPH /天[ALK]);强酸中的输入/输出(每摩尔/千克的pH单元)


参数:PiH
PiH, chemical buffer factor (dpCO2/d[ALK]); input/output of strong acid (μ atm per mol/kg)
PIH,化学缓冲因子(dpCO2 / [ALK]),输入/输出的强酸(μ atm每摩尔/千克)


(作者)----------Author(s)----------



Heloise Lavigne, Aurelien Proye and Jean-Pierre Gattuso <a href="mailto:gattuso@obs-vlfr.fr">gattuso@obs-vlfr.fr</a>




参考文献----------References----------













实例----------Examples----------



## Computation with a couple of variables[#一对夫妇的变量计算]
buffer(flag=8, var1=8.2, var2=0.00234, S=35, T=25, P=0, Pt=0,
        Sit=0, pHscale="T", kf="pf", k1k2="l", 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")
buffer(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 for all flags [#测试的所有标志]

flag <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 21, 22, 23, 24, 25)

var1 <- c(8.200000, 7.477544e-06, 7.477544e-06, 7.477544e-06, 7.477544e-06, 8.2,
        8.2, 8.2, 8.2, 0.001685024, 0.001685024, 0.001685024,  0.0002888382,
        0.0002888382, 0.002391252, 264.2008, 264.2008, 264.2008, 264.2008, 264.2008)

var2 <- c(7.477544e-06, 0.001685024, 0.0002888382, 0.002391252, 0.001981340,
        0.001685024, 0.0002888382, 0.002391252, 0.001981340, 0.0002888382, 0.002391252,
        0.001981340,  0.002391252, 0.001981340, 0.001981340, 8.2, 0.001685024,
        0.0002888382, 0.002391252, 0.001981340)

buffer(flag=flag, var1=var1, var2=var2)


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-30 06:39 , Processed in 0.020915 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表