fCompD: Components of daily global solar irradiation on a horizontal...

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

View source: R/fCompD.R

Description

Extract the diffuse and direct components from the daily global irradiation on a horizontal surface by means of regressions between the clearness index and the diffuse fraction parameters.

Usage

1
fCompD(sol, G0d, corr = "CPR",f)

Arguments

sol

A Sol object from calcSol or a zoo object from fSolD. Both of them include a component named Bo0d, which stands for the extra-atmospheric daily irradiation incident on a horizontalsurface

G0d

A Meteo object from readG0dm, readBD, readSIAR, or a zoo object containing daily global irradiation (Wh/m²) on a horizontal surface. See below for corr='none'.

corr

A character, the correlation between the the fraction of diffuse irradiation and the clearness index to be used.

With this version several options are available, as described in corrFdKt. For example, the FdKtPage is selected with corr='Page' and the FdKtCPR with corr='CPR'.

If corr='user' the use of a correlation defined by a function f is possible.

If corr='none' the G0d object should include information about global, diffuse and direct daily irradiation with columns named G0d, D0d and B0d, respectively.

f

A function defininig a correlation between the fraction of diffuse irradiation and the clearness index. It is only neccessary when corr='user'

Value

A zoo object which includes:

Fd

numeric, the diffuse fraction

Ktd

numeric, the clearness index

G0d

numeric, the global irradiation on a horizontal surface (Wh/m²)

D0d

numeric, the diffuse irradiation on a horizontal surface (Wh/m²)

B0d

numeric, the direct irradiation on a horizontal surface (Wh/m²)

Author(s)

Oscar Perpiñán Lamigueiro

References

See Also

fCompI

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
lat=37.2;
BTd=fBTd(mode='serie')

SolD<-fSolD(lat, BTd[100])

G0d=zoo(5000, index(SolD))
fCompD(SolD, G0d, corr = "Page")
fCompD(SolD, G0d, corr = "CPR")

#define a function fKtd with the correlation of CPR
fKTd=function(x){(0.99*(x<=0.17))+
                 (x>0.17)*(1.188-2.272*x+9.473*x^2-21.856*x^3+14.648*x^4)}
#The same as with corr="CPR"
fCompD(SolD,G0d, corr="user",f=fKTd)

lat=-37.2;
SolDs<-fSolD(lat, BTd[283])
G0d=zoo(5000, index(SolDs))
fCompD(SolDs, G0d, corr = "CPR")

lat=37.2;
G0dm=c(2.766,3.491,4.494,5.912,6.989,7.742,7.919,7.027,5.369,3.562,2.814,2.179)*1000;
Rad=readG0dm(G0dm, lat=lat)
solD<-fSolD(lat,fBTd(mode='prom'))
fCompD(solD, Rad, corr = 'Page')

Example output

Loading required package: zoo

Attaching package: 'zoo'

The following objects are masked from 'package:base':

    as.Date, as.Date.numeric

Loading required package: lattice
Loading required package: latticeExtra
Loading required package: RColorBrewer
Time Zone set to UTC.

                  Fd       Ktd  G0d      D0d      B0d
2020-04-09 0.4116669 0.5206488 5000 2058.334 2941.666
                  Fd       Ktd  G0d     D0d     B0d
2020-04-09 0.5646959 0.5206488 5000 2823.48 2176.52
                  Fd       Ktd  G0d     D0d     B0d
2020-04-09 0.5646959 0.5206488 5000 2823.48 2176.52
                  Fd       Ktd  G0d      D0d      B0d
2020-10-09 0.5489161 0.5288735 5000 2744.581 2255.419
                  Fd       Ktd  G0d       D0d      B0d
2020-01-17 0.3402933 0.5838112 2766  941.2513 1824.749
2020-02-14 0.3570439 0.5689877 3491 1246.4402 2244.560
2020-03-15 0.3718324 0.5559005 4494 1671.0148 2822.985
2020-04-15 0.3265293 0.5959917 5912 1930.4415 3981.559
2020-05-15 0.2894419 0.6288125 6989 2022.9094 4966.091
2020-06-10 0.2441063 0.6689325 7742 1889.8707 5852.129
2020-07-18 0.2051484 0.7034085 7919 1624.5700 6294.430
2020-08-18 0.2203634 0.6899439 7027 1548.4939 5478.506
2020-09-18 0.2871405 0.6308491 5369 1541.6574 3827.343
2020-10-19 0.3860671 0.5433034 3562 1375.1711 2186.829
2020-11-18 0.3579953 0.5681457 2814 1007.3989 1806.601
2020-12-13 0.4253341 0.5085539 2179  926.8030 1252.197

solaR documentation built on May 2, 2019, 6:07 p.m.

Related to fCompD in solaR...