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

spei1

spei12

# 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_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

spei24_gau

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

plot(bal_spei12)

注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。

注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。

注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。

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

r语言的runmed函数_干旱指数新宠—SPEI的C语言版、R语言版与单独执行软件SPEI Calculator...相关推荐

  1. r语言的runmed函数_使用R语言爬取DailyMed药物信息

    之前介绍过如何批量爬取NCBI中基因详细信息,今天介绍爬取DailyMed指定药物的数据. 根据指定药物药物及其ID列表(由ID可以获得该药的网页链接)爬取这些药物在DailyMed中的相关信息: D ...

  2. c语言中规定,程序中各函数之间,C语言题库-函数_(参考).doc

    C语言函数练习题 选择题 1.在函数的说明和定义时若没有指出函数的类型,则( A ) A: 系统自动地认为函数的类型为整型. B: 系统自动地认为函数的类型为字符型. C: 系统自动地认为函数的类型为 ...

  3. python编写函数_如何用Python编写自己喜欢的R函数

    python编写函数 数据科学和机器学习的伟大现代斗争之一是" Python vs. R". 毫无疑问,近年来两者都已经取得了巨大的发展,成为数据科学,预测分析和机器学习的顶级编程 ...

  4. C语言可变参数函数_初探

    一.什么是可变参数函数 C语言允许定义参数数量可变的函数,这称为可变参数函数(variadic function).这种函数需要固定数量的强制参数,后面是数量可变的可选参数. 其中,强制参数必须至少一 ...

  5. r语言 林元震_林木多地点半同胞子代测定遗传分析 R语言程序包及其应用

    [1]孔繁浩,阮梓材.半同胞子代测定的试验设计和分析[j].广东林业科技,1988(1):32-35.kongfh,ruanzc.theexperimentaldesignandanalysisofh ...

  6. java语言程序设计精编_全国精编月高等教育自学考试Java语言程序设计一试题

    <全国精编月高等教育自学考试Java语言程序设计一试题>由会员分享,可在线阅读,更多相关<全国精编月高等教育自学考试Java语言程序设计一试题(12页珍藏版)>请在人人文库网上 ...

  7. c语言遍历文件内容_编程语言安全性排行榜:Ruby 最佳,C 语言漏洞最多

    来源|WhiteSource 译者|田晓旭 编辑|Debra AI 前线导读:IT 技术圈有一个永远无解且有争议性的问题,那就是"谁是最好的编程语言?"事实上,由于各种编程语言的特 ...

  8. r语言的runmed函数_R实战 第五篇:常用函数的用法

    Basic包是R语言预装的开发包,包含了常用的数据处理函数,可以对数据进行简单地清理和转换,也可以在使用其他转换函数之前,对数据进行预处理,必须熟练掌握常用的数据处理函数. 一,合并向量 函数appe ...

  9. r语言找不到cochrane函数_网状meta必备技能之6-利用R中的meta包实现meta分析

    我们仅仅是代码的编辑者.整合者.搬运工,仅免费传授方法,下文数据和代码取自于网络和免费软件"R语言说明书",如果您觉得我们侵犯了您的版权,请通知我们撤稿.请大家谅解,谢谢! 相信大 ...

  10. r语言的runmed函数_R语言 函数参数的局部匹配验证(match.arg)

    Argument Verification Using Partial Matching Description match.arg matches arg against a table of ca ...

最新文章

  1. 第八周项目一-数组做数据成员(3)
  2. tensorflowgpu利用率为0_奥普特冲科:曾侵犯竞争对手商业机密,产能利用率或虚高...
  3. 二进制在计算机电路中得到广泛的应用,模拟电子和数字电子技术的区别及应用...
  4. 31 | 套路篇:磁盘 I/O 性能优化的几个思路
  5. 每台计算机需要配置网关吗,每台计算机的IP地址和网关以及子网掩码的设置有哪些规律或者规则吗?...
  6. 学java专科_专科学历可以学习java开发吗
  7. iphone开发如何隐藏各种bar
  8. 电脑功耗测试软件_电脑“烤机”怎么测?用这几款软件就对了
  9. axios 全局配置
  10. 02_入门程序(非注解方式,了解)
  11. [转贴]从零开始学C++之STL(二):实现一个简单容器模板类Vec(模仿VC6.0 中 vector 的实现、vector 的容量capacity 增长问题)...
  12. vue中将汉字按照首字母排序,也适用于其他地方,但不适用多音字
  13. 不要版面费的期刊名称
  14. 基于GXWorks2的ST语言介绍
  15. 数据禾|2001年东四盟地区植被类型分布数据
  16. MSTAR雷达数据集总结
  17. CentOS7下 SVN版本控制的安装(包括yum与非yum)的步骤记录。
  18. JDK类库创建一张简单图片
  19. Oracle EXPLAIN PLAN用法
  20. 一种简单的生成伪随机数的方法(翻译)

热门文章

  1. Maven的安装和适配使用教程-保姆级
  2. 汇编语言集成开发环境 RadASM 中文版 (修复object file not found报错)
  3. 常见反爬虫策略与绕过方法
  4. 手把手教你齿轮齿条配合
  5. iwconfig工具源码
  6. 如何查询Opencv的版本
  7. 基于 Echarts 实现可视化数据大屏展示
  8. mysql导出表_Navicat for MySQL如何导出数据表
  9. Qt 二维码文件传输工具
  10. PDF电子发票解析免费版