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

R语言 SPEI包 Drought indices()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:57:38 | 显示全部楼层 |阅读模式
Drought indices(SPEI)
Drought indices()所属R语言包:SPEI

                                        Calculation of the Standardized Precipitation-Evapotranspiration Index (SPEI) and the Standardized Precipitation Index (SPI).
                                         计算的标准化降水的蒸散指数(SPEI)和标准化降水指数(SPI)。

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

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

Given a time series of the climatic water balance (precipitation minus potential evapotranspiration), gives a time series of the Standardized Precipitation-Evapotranspiration Index (SPEI).
给定一个时间序列的气候水分平衡的(降水量减去潜在蒸散量),给出了一个时间序列的标准化降水的蒸散指数(SPEI)。


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


spei(data, scale, kernel = list(type = 'rectangular', shift = 0),
        distribution = 'log-Logistic', fit = 'ub-pwm', na.rm = FALSE,
        ref.start=NULL, ref.end=NULL, x=FALSE, ...)

spi(data, scale, kernel = list(type = 'rectangular', shift = 0),
        distribution = 'Gamma', fit = 'ub-pwm', na.rm = FALSE,
        ref.start=NULL, ref.end=NULL, x=FALSE, ...)



参数----------Arguments----------

参数:data
a vector, matrix or data frame with time ordered values of precipitation (for the SPI) or of the climatic balance precipitation minus potential evapotranspiration (for the SPEI).
一个向量,矩阵或数据框随时间沉淀(为SPI),或气候的平衡降水量减去潜在蒸散量(SPEI)有序值。


参数:scale
an integer, representing the time scale at which the SPEI / SPI will be computed.
的整数,相当于在哪些SPEI / SPI将被计算的时间尺度。


参数:kernel
optional, a list defining the type of kernel used for computing the SPEI / SPI at scales higher than one. Defaults to unshifted rectangular kernel.
可选的,一个列表定义类型的内核,用于计算SPEI / SPI高于一个尺度。默认非移动的矩形内核。


参数:distribution
optional, name of the distribution function to be used for computing the SPEI / SPI (one of 'log-Logistic', 'Gamma' and 'PearsonIII'). Defaults to 'log-Logistic'.
可选的,要用于计算SPEI / SPI(之一log - MF的“,”伽马“和”PearsonIII)的分布函数的名称。默认的log - MF。


参数:fit
optional, name of the method used for computing the distribution function parameters (one of 'ub-pwm', 'pp-pwm' and 'max-lik'). Defaults to 'ub-pwm'.
可选的,用于计算的分布函数的参数(UB-pwm的,页pwm的和最大力)的方法名称。默认为“UB-PWM。


参数:na.rm
optional, a logical value indicating whether NA values should be stripped from the computations. Defaults to FALSE, i.e. no NA are allowed in the data.
可选的,一个逻辑值,该值指示NA值是否应该从计算中被剥离。默认为false,即不NA允许的数据。


参数:ref.start
optional, starting point of the reference period used for computing the index. Defaults to NULL, indicating that the first value in data will be used as starting point.
可选的,用于计算索引的基准周期的起点。默认为空,表示数据中的第一个值将被用来作为出发点。


参数:ref.end
optional, ending point of the reference period used for computing the index. Defaults to NULL, indicating that the last value in data will be used as ending point.
可选的,用于计算索引的基准周期的结束点。默认为空,表示的终点,数据将被用作最后的值。


参数:x
optional, a logical value indicating wether the data used for fitting the model should be kept. Defaults to FALSE.
可选的,一个逻辑值,表示天气的数据拟合模型,应予保留。默认为false。


参数:...
other parameters to be passed.
其他参数来传递。


Details

详细信息----------Details----------

The spei and spi functions allow computing the SPEI and the SPI indices. These are widely used for drought identification and monitoring. Both functions are identical (in fact, spi is just a wrapper for spei), but they are kept separated for clarity. Basically, the functions standardize a variable following a log-Logistic distribution function (i.e., they transform it to a standard Gaussian variate with zero mean and standard deviation of one). The input variable is a time ordered series of precipitation values for spi, and a series of the climate water balance (precipitation minus potential evapotranspiration) for spei. When used with the default options, they yield values of both indices as defined in the references given below.
spei和spi函数允许SPEI和SPI指数计算。这些被广泛用于干旱的识别和监控。这两个函数是相同的(其实,spi是只是一个包装spei),但他们分开为清晰。基本上,功能规范变量的log - MF分布函数(即,他们把它转换成一个标准的高斯变量的均值为零,标准偏差为1)。输入变量是一个时间顺序系列的降水值spi和一系列的气候水分平衡的(降水量减去潜在蒸散量)为spei。当使用默认的选项,他们得到的数值,这两个指数的定义在下面给出的参考。

The SPEI and the SPI were defined for monthly data. Since the PDFs of the data are not homogenous from month to month, the data is split into twelve series (one for each month) and independent PDFs are fit to each series. If data is a vector or a matrix it will be treated as a sequence of monthly values starting in January. If it is a (univariate or multivariate) time series then the function cycle will be used to determine the position of each observation within the year (month), allowing the data to start in a month other than January.
SPEI和SPI被定义为月度数据。由于PDF文件中的数据是不是同质的每个月,数据分割成十二个系列(每月)和独立的PDF文件,适合各系列。如果data是序列年1月开始每月的值将被视为一个向量或矩阵。如果它是一个(单变量或多变量)的时间序列,然后功能cycle将被用于确定每个观测位置年(或月)内,允许数据在一个月以外一月开始。

An important advantage of the SPEI and the SPI is that they can be computed at different time scales. This means that it is possible to incorporate the influence of the past values of the variable in its computation, enabling the index to adapt to the memory of the system under study. The magnitude of this memory is controlled by parameter scale: for example, a value of six would imply that data from the current month and of the past five months will be used for computing the SPEI or SPI value for a given month. By default all past data will have the same weight in computing the index, as it was originally proposed by the authors. Other kernels, however, are available through parameter kernel. The parameter kernel is a list defining the shape of the kernel and a time shift. For more details refer to  the function kern.
磺化聚醚酰亚胺和SPI的一个重要的优点是,它们可以在不同的时间尺度计算。这意味着,它可以将过去的值的影响,在其计算的变量,使索引,以适应所研究的系统的存储器中。该存储器的大小被控制的参数scale:例如,值6将意味着,从当前的月份和过去5个月的数据将被用于计算SPEI或SPI值,对于一个给定的月份。默认情况下,所有的过去的数据将具有相同的权重计算指数,因为它最初是由作者。然而,其他的内核,都可以通过参数kernel。参数kernel是一个列表,限定的内核和一个时间偏移的形状。有关详细信息,请参阅的功能kern。

Following the original definitions spei uses a log-Logistic distribution by default, and spi uses a Gamma distribution. This behaviour can be modified, however, through parameter distribution.
的原始定义spei使用默认的log - MF配送,和spi采用了伽玛分布。然而,这种行为可以被修改,通过参数distribution。

The default method for parameter fitting is based on unbiased Probability Weighted Moments ('ub-pwm'), but other methods can be used through parameter fit. Valid aleternatives are the plotting-position PWM ('pp-pwm') and the maximum likelihood method ('max-lik').
默认参数拟合方法的基础上公正概率加权矩(UB-PWM),但其他的方法可以用来通过参数fit。有效aleternatives是绘图位置PWM(页pwm的“)和最大似然法(”最大力)。

The default behaviour of the functions is using all the values provided in data for parameter fitting. However, this can be modified with help of parameters ref.start and ref.end. These parameters allow defining a subset of values that will be used for parameter fitting, i.e. a reference period. The functions, however, will compute the values of the indices for the whole data set. For these options to work it is necessary that data will be a time series object. The starting and ending points of the reference period will then be defined as pairs of year and month values, e.g. c(1900,1).
功能的默认行为是使用提供的值在data参数拟合。然而,这可以修改与的参数ref.start和ref.end的帮助。这些参数允许定义的值,将用于为参数拟合,即一个特定期间内的一个子集。的功能,但是,将整个数据集的指数计算的值。这些工作是必要的,data将是一个时间序列对象。基准期的开始和结束点,然后将被定义为对年份和月份的值,例如C(1900,1)。


值----------Value----------

Functions spei and spi return an object of class spei. The generic functions print and summary can be used to obtain summaries of the results. The generic accessor functions coefficients and fitted extract useful features of the object.
功能spei和spi类spei返回一个对象。通用功能中的print和summary可以用来获得汇总结果。一般的访问功能coefficients和fitted的对象中提取有用的功能。

An object of class spei is a list containing at least the following components:
一种的类spei的对象是一个列表,包含至少以下组件:

call: the call to spei or spi used to generate the object.
检测:呼叫spei或spi用于生成的对象。

fitted: time series with the values of the Standardized Precipitation-Evapotranspiration Index (SPEI) or the Standardized Precipitation Index (SPI). If data consists of several columns the function will treat each column as independent data, and the result will be a multivariate time series. The names of the columns in data will be used as column names in fitted.
装:时间序列的标准化降水的蒸散指数(SPEI)或标准化降水指数(SPI)的值。如果数据由多个列,该函数将治疗作为独立的数据的每一列,和的结果将是一个多变量时间序列。 data中的列的名称将用作列名在装。

coefficients: an array with the values of the coefficients of the distribution function fitted to the data. The first dimension of the array contains the three (or two) coefficients, the second dimension will typically consist of twelve values corresponding to each month, and the third dimension will be equal to the number of columns (series) in data. If a time scale greater than one has been used then the first elements will have NA value since the kernel can not be applied. The first element with valid data will be the one corresponding to the time scale chosen.
系数:一个数组与嵌合的数据的分布函数的值的系数。阵列的第一维中包含的三个(或两个)系数,第二个维度将通常由12值对应每月,和第三个维度将是相等的列数(系列)在data 。如果大于一的时间尺度已被使用,则在第一个元素将有因为内核不能应用于NA值。有效的数据的第一个元素将是一个对应于所选择的时间尺度。

scale: the scale parameter used to generate the object.
规模:scale参数用于生成对象。

kernel: the parameters and values of the kernel used to generate the object.
内核:用于生成对象的内核的参数和值。

distribution: the distribution function used to generate the object.
分布:用于生成对象的分布函数。

fit: the fitting method used to generate the object.
适合:用于生成对象的拟合方法。

na.action: the value of the na.action parameter used.
na.action:的na.action使用的参数的值。

data: if requested, the input data used.
数据:如果被请求的,使用所输入的数据。


注意----------Note----------

Dependencies: the spei function depends on the library lmomco.
依存关系的SpeI功能依赖于库中lmomco。


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



Santiago Beguer铆a and Sergio M. Vicente-Serrano. Maintainer: Santiago Beguer铆a




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




参见----------See Also----------

kern for different kernel functions available. thornthwaite, hargreaves and penman for ways of calculating potential evapotranspiration. summary.spei and print.spei for summaries of spei objects. plot.spei for plotting spei objects.
kern不同的内核函数。 thornthwaite,hargreaves和penman潜在蒸散量的计算方法。 summary.spei和print.speispei对象的摘要。 plot.spei:策划spei对象的。


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


# Load data[数据加载]
data(wichita)

# One and tvelwe-months SPEI[和tvelwe个月SPEI]
wichita$PET <- thornthwaite(wichita$TMED,37.6475)
spei1 <- spei(wichita$PRCP-wichita$PET,1)
spei12 <- spei(wichita$PRCP-wichita$PET,12)
# not executed[不执行]
#spei1[spei1]
#summary(spei1)[摘要(spei1)]
#coefficients(spei1)[系数(spei1)]
par(mfrow=c(2,1))
plot(spei1)
plot(spei12,'Wichita')

# One and tvelwe-months SPI[一,tvelwe个月的SPI]
spi_1 <- spi(wichita$PRCP,1)
spi_12 <- spi(wichita$PRCP,12)
par(mfrow=c(2,1))
plot(spi_1)
plot(spi_12)

# Define the properties of the time series with ts()[与日ts()定义的属性的时间序列]
plot(spei(ts(wichita$PRCP-wichita$PET,freq=12,start=c(1980,1)),12))

# Time series not starting in January[时间序列年1月开始]
plot(spei(ts(wichita$PRCP-wichita$PET,freq=12,start=c(1980,6)),12))

# Using a particular reference period[使用一个特定参考期]
plot(spei(ts(wichita$PRCP-wichita$PET,freq=12,start=c(1980,1)),12,
        ref.start=c(1980,1), ref.end=c(2000,1)))

# Different kernels[不同的内核]
spei24 <- spei(wichita$PRCP-wichita$PET,24)
spei24_gau <- spei(wichita$PRCP-wichita$PET,24,kernel=list(type='gaussian',shift=0))
par(mfrow=c(2,1))
plot(spei24,'Rectangular kernel')
plot(spei24_gau,'Gaussian kernel')


# Several time series at a time[在时间的几个时间序列]
data(balance)
names(balance)
bal_spei12 <- spei(balance,12)
plot(bal_spei12)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 09:34 , Processed in 0.024839 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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