rai: Rainfall Anomaly Index

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/rai.r

Description

Calculates the Rainfall Anomaly Index (RAI) on a daily or monthly precipitation serie.

Usage

1
rai(object, granularity = "m")

Arguments

object

a daily or monthly precipitation serie.

granularity

the granularity applied for calculating the rainfall anomaly index, which should be either "m" for monthly granularity or "a" for annual granularity. (Default value: "m")

Value

A data.frame (precintcon.rai) containing the following variables:

Author(s)

Lucas Venezian Povoa [email protected]

References

Van Rooy, M. P. "A rainfall anomaly index independent of time and space." Notos 14.43 (1965): 6.

See Also

pplot.rai read.data

Examples

1
2
3
4
5
6
7
##
# Loading the monthly precipitation serie.
data(monthly)

##
# Performing the Rainfall Anomaly Index analysis
rai(monthly, granularity = "m")

Example output

Loading required package: ggplot2
Loading required package: scales
    year month         rai
1   1950     1 -1.95848481
2   1950     2 -2.59905224
3   1950     3 -2.33808032
4   1950     4  1.22881292
5   1950     5  1.09750581
6   1950     6  1.47683747
7   1950     7 -1.74496233
8   1950     8 -2.43297920
9   1950     9  0.20753536
10  1950    10 -2.78884999
11  1950    11 -0.70107466
12  1950    12 -2.31435560
13  1951     1 -1.10439490
14  1951     2 -1.22301850
15  1951     3  0.12729213
16  1951     4  0.52121347
17  1951     5  0.35343216
18  1951     6  0.71087930
19  1951     7 -1.10439490
20  1951     8  2.31574404
21  1951     9 -0.77224882
22  1951    10  0.63063606
23  1951    11 -0.29775443
24  1951    12 -1.43654097
25  1952     1 -3.04982191
26  1952     2 -1.46026569
27  1952     3  0.60145671
28  1952     4  1.06103161
29  1952     5  1.28717164
30  1952     6 -2.78884999
31  1952     7 -0.55872634
32  1952     8  0.08352309
33  1952     9 -1.79241177
34  1952    10 -2.64650168
35  1952    11  0.01057469
36  1952    12 -2.62277696
37  1953     1 -2.14828256
38  1953     2  0.06893341
39  1953     3 -0.34520387
40  1953     4 -0.01305779
41  1953     5  0.99537805
42  1953     6  0.11999729
43  1953     7  0.49932895
44  1953     8 -0.10795667
45  1953     9 -2.59905224
46  1953    10 -2.02965896
47  1953    11 -0.70107466
48  1953    12 -0.65362522
49  1954     1 -2.52787808
50  1954     2 -2.97864775
51  1954     3 -1.91103537
52  1954     4 -0.98577130
53  1954     5 -1.65006345
54  1954     6 -1.50771513
55  1954     7  0.50662379
56  1954     8 -1.86358593
57  1954     9 -1.24674322
58  1954    10 -2.93119831
59  1954    11 -1.72123761
60  1954    12 -1.38909153
61  1955     1 -2.52787808
62  1955     2 -1.05694546
63  1955     3 -0.36892859
64  1955     4 -1.93476009
65  1955     5  0.85677610
66  1955     6  0.06893341
67  1955     7  1.23610776
68  1955     8  0.81300706
69  1955     9  1.03914709
70  1955    10 -1.50771513
71  1955    11 -1.74496233
72  1955    12 -2.71767584
73  1956     1 -2.14828256
74  1956     2 -1.24674322
75  1956     3 -0.96204658
76  1956     4 -1.36536681
77  1956     5  0.77653286
78  1956     6 -2.02965896
79  1956     7  2.09689884
80  1956     8  0.38990635
81  1956     9 -3.04982191
82  1956    10 -2.43297920
83  1956    11 -0.10795667
84  1956    12 -1.60261401
85  1957     1 -2.31435560
86  1957     2 -1.34164209
87  1957     3 -0.48755219
88  1957     4  2.06771949
89  1957     5  4.38747851
90  1957     6 -0.48755219
91  1957     7 -0.01305779
92  1957     8  0.53580315
93  1957     9 -2.07710840
94  1957    10  0.96619869
95  1957    11 -1.91103537
96  1957    12 -2.93119831
97  1958     1 -1.34164209
98  1958     2 -0.70107466
99  1958     3  0.13458697
100 1958     4  0.31695796
101 1958     5  2.30844920
102 1958     6  0.12729213
103 1958     7  1.60814458
104 1958     8 -0.29775443
105 1958     9  0.15647148
106 1958    10 -2.19573200
107 1958    11 -1.31791737
108 1958    12 -1.55516457
109 1959     1 -0.13168139
110 1959     2  0.01057469
111 1959     3  1.13398000
112 1959     4  0.03975405
113 1959     5  1.48413231
114 1959     6 -2.02965896
115 1959     7 -1.10439490
116 1959     8 -2.48042864
117 1959     9  0.38261151
118 1959    10  0.84948126
119 1959    11 -2.12455784
120 1959    12 -2.45670392
121 1960     1 -1.24674322
122 1960     2  0.26589408
123 1960     3 -0.96204658
124 1960     4  0.92242965
125 1960     5  0.71087930
126 1960     6 -1.57888929
127 1960     7  0.01057469
128 1960     8 -2.93119831
129 1960     9 -2.17200728
130 1960    10  0.84948126
131 1960    11 -1.91103537
132 1960    12  0.14917664
133 1961     1 -2.90747359
134 1961     2 -1.50771513
135 1961     3  0.88595545
136 1961     4 -0.55872634
137 1961     5  2.06042465
138 1961     6 -0.44010275
139 1961     7  0.22212504
140 1961     8 -0.20285555
141 1961     9  2.46164083
142 1961    10 -1.24674322
143 1961    11 -0.86714770
144 1961    12 -2.36180504
145 1962     1  0.02516437
146 1962     2 -0.58245106
147 1962     3 -1.83986121
148 1962     4 -0.46382747
149 1962     5 -1.08067018
150 1962     6  0.16376632
151 1962     7 -1.79241177
152 1962     8 -1.98220953
153 1962     9 -2.62277696
154 1962    10 -2.95492303
155 1962    11 -1.46026569
156 1962    12 -2.67022640
157 1963     1 -1.38909153
158 1963     2 -2.57532752
159 1963     3  0.09081793
160 1963     4 -3.00237247
161 1963     5 -1.46026569
162 1963     6  1.67379814
163 1963     7 -1.76868705
164 1963     8  0.89325029
165 1963     9 -0.10795667
166 1963    10 -2.33808032
167 1963    11 -2.00593425
168 1963    12 -1.86358593
169 1964     1 -2.45670392
170 1964     2 -0.60617578
171 1964     3  0.06163857
172 1964     4 -0.10795667
173 1964     5  0.90054513
174 1964     6 -1.12811962
175 1964     7 -1.36536681
176 1964     8 -2.43297920
177 1964     9 -2.10083312
178 1964    10 -2.64650168
179 1964    11 -0.98577130
180 1964    12 -2.12455784
181 1965     1 -0.70107466
182 1965     2 -0.06050723
183 1965     3 -0.22658027
184 1965     4 -0.58245106
185 1965     5  0.38261151
186 1965     6  2.07501433
187 1965     7  3.73094294
188 1965     8 -0.55872634
189 1965     9  0.93701933
190 1965    10 -2.00593425
191 1965    11 -2.21945672
192 1965    12 -1.81613649
193 1966     1 -2.36180504
194 1966     2 -0.03678251
195 1966     3 -2.31435560
196 1966     4  0.11999729
197 1966     5 -2.26690616
198 1966     6  0.08352309
199 1966     7 -0.60617578
200 1966     8  0.55768767
201 1966     9 -0.34520387
202 1966    10 -0.79597354
203 1966    11 -2.31435560
204 1966    12 -2.67022640
205 1967     1 -1.08067018
206 1967     2 -2.14828256
207 1967     3 -1.19929378
208 1967     4  1.93641237
209 1967     5  2.53458923
210 1967     6  2.47623051
211 1967     7  1.42577359
212 1967     8 -1.10439490
213 1967     9 -1.65006345
214 1967    10 -0.39265331
215 1967    11 -0.67734994
216 1967    12 -0.55872634
217 1968     1 -1.86358593
218 1968     2 -1.31791737
219 1968     3 -1.05694546
220 1968     4  0.79841738
221 1968     5 -1.38909153
222 1968     6 -1.88731065
223 1968     7  0.03245921
224 1968     8  0.90054513
225 1968     9 -1.67378817
226 1968    10 -1.29419265
227 1968    11 -1.38909153
228 1968    12 -1.86358593
229 1969     1 -2.67022640
230 1969     2 -2.05338368
231 1969     3 -0.46382747
232 1969     4  0.02516437
233 1969     5  3.51939259
234 1969     6  1.23610776
235 1969     7  0.37531668
236 1969     8 -1.19929378
237 1969     9  0.27318892
238 1969    10  2.09689884
239 1969    11 -1.60261401
240 1969    12 -2.31435560
241 1970     1 -2.83629943
242 1970     2 -3.04982191
243 1970     3  0.03245921
244 1970     4 -0.77224882
245 1970     5 -1.55516457
246 1970     6  1.84887430
247 1970     7  0.27318892
248 1970     8 -1.79241177
249 1970     9  0.85677610
250 1970    10 -0.98577130
251 1970    11 -0.25030499
252 1970    12 -2.86002415
253 1971     1 -2.24318144
254 1971     2 -1.22301850
255 1971     3 -1.81613649
256 1971     4  0.49932895
257 1971     5  0.03245921
258 1971     6 -2.52787808
259 1971     7 -0.22658027
260 1971     8 -1.05694546
261 1971     9  1.13398000
262 1971    10 -2.02965896
263 1971    11 -2.69395112
264 1971    12 -2.48042864
265 1972     1 -2.21945672
266 1972     2 -2.02965896
267 1972     3 -1.88731065
268 1972     4  1.62273426
269 1972     5 -1.91103537
270 1972     6  1.19963356
271 1972     7 -1.57888929
272 1972     8  1.03185225
273 1972     9  0.56498251
274 1972    10 -1.12811962
275 1972    11  0.28777860
276 1972    12 -1.41281625
277 1973     1  0.01057469
278 1973     2 -2.69395112
279 1973     3  0.33884248
280 1973     4  1.77592590
281 1973     5  2.74613958
282 1973     6 -2.59905224
283 1973     7  0.85677610
284 1973     8 -0.03678251
285 1973     9  1.13398000
286 1973    10 -1.95848481
287 1973    11 -1.10439490
288 1973    12  1.12668516
289 1974     1 -0.62990050
290 1974     2 -1.12811962
291 1974     3  0.01786953
292 1974     4  0.71817414
293 1974     5 -2.93119831
294 1974     6  0.52121347
295 1974     7  0.76194318
296 1974     8 -2.69395112
297 1974     9 -0.74852410
298 1974    10  0.28048376
299 1974    11 -0.55872634
300 1974    12 -2.38552976
301 1975     1 -2.52787808
302 1975     2 -2.19573200
303 1975     3 -0.25030499
304 1975     4 -0.36892859
305 1975     5  1.09750581
306 1975     6  0.59416187
307 1975     7  1.08291613
308 1975     8  0.51391863
309 1975     9 -2.50415336
310 1975    10 -2.36180504
311 1975    11  0.42638055
312 1975    12 -1.95848481
313 1976     1 -2.62277696
314 1976     2 -1.79241177
315 1976     3  0.03245921
316 1976     4 -0.06050723
317 1976     5  0.03245921
318 1976     6 -1.57888929
319 1976     7  0.74005866
320 1976     8  0.87866061
321 1976     9  0.42638055
322 1976    10 -0.86714770
323 1976    11 -2.31435560
324 1976    12 -2.69395112
325 1977     1 -2.69395112
326 1977     2 -2.43297920
327 1977     3 -0.13168139
328 1977     4  0.60875155
329 1977     5 -2.26690616
330 1977     6 -0.65362522
331 1977     7  1.22881292
332 1977     8 -0.70107466
333 1977     9 -2.83629943
334 1977    10 -1.93476009
335 1977    11 -1.67378817
336 1977    12 -3.00237247
337 1978     1 -2.43297920
338 1978     2 -2.43297920
339 1978     3 -0.53500162
340 1978     4  0.38261151
341 1978     5  1.57896523
342 1978     6 -0.29775443
343 1978     7 -1.79241177
344 1978     8 -2.45670392
345 1978     9 -2.90747359
346 1978    10  0.11270245
347 1978    11 -1.88731065
348 1978    12 -1.12811962
349 1979     1 -2.26690616
350 1979     2 -2.07710840
351 1979     3 -0.10795667
352 1979     4  0.08352309
353 1979     5  1.63002910
354 1979     6  0.79841738
355 1979     7 -1.15184434
356 1979     8  3.32243191
357 1979     9 -2.21945672
358 1979    10 -0.03678251
359 1979    11  0.26589408
360 1979    12 -0.55872634
361 1980     1 -1.55516457
362 1980     2 -2.00593425
363 1980     3 -0.34520387
364 1980     4  0.90783997
365 1980     5  1.04644193
366 1980     6 -2.86002415
367 1980     7  1.19233872
368 1980     8  0.25859924
369 1980     9 -1.57888929
370 1980    10 -2.83629943
371 1980    11 -1.50771513
372 1980    12 -2.83629943
373 1981     1 -2.38552976
374 1981     2 -2.24318144
375 1981     3  0.71087930
376 1981     4 -0.67734994
377 1981     5  1.79781042
378 1981     6 -1.57888929
379 1981     7 -0.93832186
380 1981     8 -0.32147915
381 1981     9 -2.24318144
382 1981    10 -1.19929378
383 1981    11 -2.07710840
384 1981    12 -1.50771513
385 1982     1 -2.31435560
386 1982     2 -2.86002415
387 1982     3 -2.64650168
388 1982     4 -2.26690616
389 1982     5  1.59355491
390 1982     6  0.70358446
391 1982     7 -0.89087242
392 1982     8 -0.32147915
393 1982     9  0.06163857
394 1982    10  0.15647148
395 1982    11 -1.95848481
396 1982    12  0.76194318
397 1983     1 -2.71767584
398 1983     2 -2.90747359
399 1983     3  2.38139759
400 1983     4  0.58686703
401 1983     5  1.69568266
402 1983     6  0.98808321
403 1983     7  0.33154764
404 1983     8  0.15647148
405 1983     9 -2.76512528
406 1983    10 -2.14828256
407 1983    11  0.97349353
408 1983    12 -1.57888929
409 1984     1 -2.64650168
410 1984     2 -1.15184434
411 1984     3 -0.25030499
412 1984     4  0.82030190
413 1984     5 -1.53143985
414 1984     6 -0.08423195
415 1984     7  0.59416187
416 1984     8  1.38929939
417 1984     9 -1.95848481
418 1984    10  1.58626007
419 1984    11 -2.43297920
420 1984    12 -1.98220953
421 1985     1 -1.46026569
422 1985     2 -1.67378817
423 1985     3 -1.43654097
424 1985     4  0.95890385
425 1985     5  0.02516437
426 1985     6  0.11999729
427 1985     7  1.76133622
428 1985     8 -2.40925448
429 1985     9  0.75464834
430 1985    10 -1.24674322
431 1985    11 -0.22658027
432 1985    12 -1.50771513
433 1986     1 -2.55160280
434 1986     2 -1.53143985
435 1986     3 -2.05338368
436 1986     4  0.94431417
437 1986     5  0.00327985
438 1986     6 -0.53500162
439 1986     7  0.28777860
440 1986     8 -1.81613649
441 1986     9 -2.05338368
442 1986    10  0.36802184
443 1986    11 -0.53500162
444 1986    12 -2.33808032
445 1987     1 -1.43654097
446 1987     2 -0.20285555
447 1987     3  0.03245921
448 1987     4 -0.62990050
449 1987     5  2.43975631
450 1987     6  1.60814458
451 1987     7 -1.27046793
452 1987     8  0.51391863
453 1987     9 -1.41281625
454 1987    10 -0.13168139
455 1987    11  0.23671472
456 1987    12  0.00327985
457 1988     1 -2.12455784
458 1988     2 -1.65006345
459 1988     3 -0.03678251
460 1988     4 -1.53143985
461 1988     5  2.16255240
462 1988     6 -0.03678251
463 1988     7  0.65252058
464 1988     8  0.38990635
465 1988     9 -0.93832186
466 1988    10 -2.93119831
467 1988    11 -1.95848481
468 1988    12 -0.60617578
469 1989     1 -0.36892859
470 1989     2 -1.50771513
471 1989     3 -1.74496233
472 1989     4 -0.70107466
473 1989     5  1.84887430
474 1989     6  0.54309799
475 1989     7  0.25130440
476 1989     8 -0.03678251
477 1989     9  0.18565084
478 1989    10 -1.15184434
479 1989    11 -2.71767584
480 1989    12 -1.15184434
481 1990     1 -1.31791737
482 1990     2 -1.76868705
483 1990     3  1.31635100
484 1990     4 -0.67734994
485 1990     5  0.15647148
486 1990     6 -2.57532752
487 1990     7  1.65920846
488 1990     8  0.48473927
489 1990     9  0.11999729
490 1990    10 -0.62990050
491 1990    11 -0.03678251
492 1990    12 -2.43297920
493 1991     1 -1.27046793
494 1991     2 -2.88374887
495 1991     3 -1.27046793
496 1991     4  0.47014959
497 1991     5  0.82759674
498 1991     6  0.65981542
499 1991     7  2.05312981
500 1991     8  1.74674654
501 1991     9 -1.19929378
502 1991    10 -1.41281625
503 1991    11  1.00267289
504 1991    12 -2.62277696
505 1992     1 -0.25030499
506 1992     2 -2.86002415
507 1992     3  1.60814458
508 1992     4 -1.81613649
509 1992     5 -0.39265331
510 1992     6  0.52850831
511 1992     7  0.68169994
512 1992     8  0.75464834
513 1992     9 -3.04982191
514 1992    10 -1.86358593
515 1992    11  0.11999729
516 1992    12 -1.46026569

precintcon documentation built on May 30, 2017, 6:29 a.m.