Package ‘solaR’

Package `solaR'

October 14, 2022

Type Package Title Radiation and Photovoltaic Systems Version 0.46 Encoding UTF-8 Description Calculation methods of solar radiation and performance of photovoltaic sys-

tems from daily and intradaily irradiation data sources.

URL

BugReports License GPL-3 LazyData yes Depends R (>= 2.10), zoo, lattice, latticeExtra Imports RColorBrewer, graphics, grDevices, stats, methods Suggests sp, raster, rasterVis, tdr, meteoForecast NeedsCompilation no Author Oscar Perpi??n Lamigueiro [cre, aut]

() Maintainer Oscar Perpi??n Lamigueiro Repository CRAN Date/Publication 2021-10-19 05:30:02 UTC

R topics documented:

solaR-package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 A1_calcSol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 A2_calcG0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 A3_calcGef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 A4_prodGCPV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 A5_prodPVPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 A6_calcShd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 A7_optimShd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

1

2

R topics documented:

A8_readBD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 A8_readG0dm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 B1_Meteo-class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 B2_Sol-class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 B3_G0-class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 B4_Gef-class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 B5_ProdGCPV-class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 B6_ProdPVPS-class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 B7_Shade-class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 C_corrFdKt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 C_fBTd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 C_fCompD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 C_fCompI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 C_fInclin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 C_fProd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 C_fPump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 C_fSolD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 C_fSolI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 C_fSombra . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 C_fTemp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 C_fTheta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 C_HQCurve . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 C_local2Solar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 C_NmgPVPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 C_sample2Diff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 C_utils-angle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 C_utils-time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 D_as.data.frameD-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 D_as.data.frameI-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 D_as.data.frameM-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 D_as.data.frameY-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 D_as.zooD-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 D_as.zooI-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 D_as.zooM-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 D_as.zooY-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 D_compare-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 D_getData-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 D_getG0-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 D_getLat-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 D_indexD-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 D_indexI-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 D_indexRep-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 D_levelplot-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 D_Losses-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 D_mergesolaR-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 D_shadeplot-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 D_window-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 D_writeSolar-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

solaR-package

3

D_xyplot-methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 E_aguiar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 E_helios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 E_prodEx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 E_pumpCoef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 E_solaR.theme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 solaR-defunct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

Index

89

solaR-package

Solar Radiation and Photovoltaic Systems with R

Description

The solaR package allows for reproducible research both for photovoltaics (PV) systems performance and solar radiation. It includes a set of classes, methods and functions to calculate the sun geometry and the solar radiation incident on a photovoltaic generator and to simulate the performance of several applications of the photovoltaic energy. This package performs the whole calculation procedure from both daily and intradaily global horizontal irradiation to the final productivity of grid-connected PV systems and water pumping PV systems.

Details

solaR is designed using a set of S4 classes whose core is a group of slots with multivariate time series. The classes share a variety of methods to access the information and several visualization methods. In addition, the package provides a tool for the visual statistical analysis of the performance of a large PV plant composed of several systems. Although solaR is primarily designed for time series associated to a location defined by its latitude/longitude values and the temperature and irradiation conditions, it can be easily combined with spatial packages for space-time analysis.

The best place to learn how to use the package is the companion paper published by the Journal of Statistical Software:

Perpi??n Lamigueiro, O. (2012). solaR: Solar Radiation and Photovoltaic Systems with R. Journal of Statistical Software, 50(9), 1?32. Please note that this package needs to set the timezone to UTC. Every `zoo' object created by the package will have an index with this time zone as a synonym of mean solar time.. You can check it after loading solaR with: Sys.getenv( TZ )

If you need to change it, use: Sys.setenv(TZ = YourTimeZone )

Index of functions and classes:

4

G0-class

Gef-class

HQCurve Meteo-class NmgPVPS ProdGCPV-class

ProdPVPS-class

Shade-class Sol-class

aguiar

as.data.frameD as.data.frameI as.data.frameM as.data.frameY as.zooD as.zooI-methods as.zooM as.zooY calcG0

calcGef

calcShd calcSol compare compareLosses corrFdKt

d2r diff2Hours fBTd fCompD

fCompI

fInclin fProd fPump fSolD

fSolI

solaR-package

Class "G0": irradiation and irradiance on the horizontal plane. Class "Gef": irradiation and irradiance on the generator plane. H-Q curves of a centrifugal pump Class "Meteo" Nomogram of a photovoltaic pumping system Class "ProdGCPV": performance of a grid connected PV system. Class "ProdPVPS": performance of a PV pumping system. Class "Shade": shadows in a PV system. Class "Sol": Apparent movement of the Sun from the Earth Markov Transition Matrices for the Aguiar etal. procedure Methods for Function as.data.frameD Methods for Function as.data.frameI Methods for Function as.data.frameM Methods for Function as.data.frameY Methods for Function as.zooD Methods for Function as.zooI Methods for Function as.zooM Methods for Function as.zooY Irradiation and irradiance on the horizontal plane. Irradiation and irradiance on the generator plane. Shadows on PV systems. Apparent movement of the Sun from the Earth Compare G0, Gef and ProdGCPV objects Losses of a GCPV system Correlations between the fraction of diffuse irradiation and the clearness index. Conversion between angle units. Small utilities for difftime objects. Daily time base Components of daily global solar irradiation on a horizontal surface Calculation of solar irradiance on a horizontal surface Solar irradiance on an inclined surface Performance of a PV system Performance of a centrifugal pump Daily apparent movement of the Sun from the Earth Instantaneous apparent movement of the Sun from the Earth

A1_calcSol

5

fSombra fTemp fTheta

getData getG0 getLat helios

hour indexD indexI indexRep-methods levelplot-methods local2Solar mergesolaR optimShd

prodEx

prodGCPV prodPVPS pumpCoef readBD

readG0dm

shadeplot solaR.theme window writeSolar xyplot-methods

Shadows on PV systems Intradaily evolution of ambient temperature Angle of incidence of solar irradiation on a inclined surface Methods for function getData Methods for function getG0 Methods for Function getLat Daily irradiation and ambient temperature from the Helios-IES database Utilities for time indexes. Methods for Function indexD Methods for Function indexI Methods for Function indexRep Methods for function levelplot. Local time, mean solar time and UTC time zone. Merge solaR objects Shadows calculation for a set of distances between elements of a PV grid connected plant. Productivity of a set of PV systems of a PV plant. Performance of a grid connected PV system. Performance of a PV pumping system Coefficients of centrifugal pumps. Daily or intradaily values of global horizontal irradiation and ambient temperature from a local file or a data.frame. Monthly mean values of global horizontal irradiation. Methods for Function shadeplot solaR theme Methods for extracting a time window Exporter of solaR results Methods for function xyplot in Package solaR

Author(s) Oscar Perpi??n Lamigueiro Maintainer: Oscar Perpi??n Lamigueiro

A1_calcSol

Apparent movement of the Sun from the Earth

Description Compute the apparent movement of the Sun from the Earth with the functions fSolD and fSolI.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download