Learn R Programming

⚠️There's a newer version (0.47) of this package.Take me there.

solaR

DOI

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.

It 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.

Software

The stable version of solaR is hosted at CRAN. The development version is available at GitHub.

Install the stable version with:

install.packages('solaR')

You can install the development version with the remotes package:

remotes::install_github('oscarperpinan/solar')

or with devtools:

devtools::install_github('oscarperpinan/solar')

Documentation

The best place to learn how to use the package is the companion paper published by the Journal of Statistical Software: http://www.jstatsoft.org/v50/i09/

This book (in Spanish) contains detailed information about solar radiation and photovoltaic systems. In my articles I frequently use solaR. Besides, I publish news and examples about solaR at my blog.

Citation

If you use solaR, please cite it in any publication reporting results obtained with this software:

Oscar Perpiñán (2012). solaR: Solar Radiation and Photovoltaic
Systems with R, Journal of Statistical Software, 50(9), 1-32. URL
	http://www.jstatsoft.org/v50/i09/.

A BibTeX entry for LaTeX users is:

@Article{,
    title = {{solaR}: Solar Radiation and Photovoltaic Systems with {R}},
    author = {Oscar Perpi{\~n}{\'a}n},
    journal = {Journal of Statistical Software},
    year = {2012},
    volume = {50},
    number = {9},
    pages = {1--32},
    url = {http://www.jstatsoft.org/v50/i09/},
  }

Copy Link

Version

Install

install.packages('solaR')

Monthly Downloads

317

Version

0.44

License

GPL-3

Maintainer

Oscar Perpinan Lamigueiro

Last Published

April 16th, 2016

Functions in solaR (0.44)

D_as.data.frameD-methods

Methods for Function as.data.frameD
D_indexRep-methods

Methods for Function indexRep
C_fSolD

Daily apparent movement of the Sun from the Earth
solaR-package

Solar Radiation and Photovoltaic Systems with R
D_mergesolaR-methods

Merge solaR objects
A8_readG0dm

Monthly mean values of global horizontal irradiation.
D_shadeplot-methods

Methods for Function shadeplot
D_compare-methods

Compare G0, Gef and ProdGCPV objects
C_fCompI

Calculation of solar irradiance on a horizontal surface
C_HQCurve

H-Q curves of a centrifugal pump
A1_calcSol

Apparent movement of the Sun from the Earth
D_indexD-methods

Methods for Function indexD
D_xyplot-methods

Methods for function xyplot in Package `solaR'
C_fTheta

Angle of incidence of solar irradiation on a inclined surface
E_solaR.theme

solaR theme
C_fPump

Performance of a centrifugal pump
B6_ProdPVPS-class

Class "ProdPVPS": performance of a PV pumping system.
D_as.zooI-methods

Methods for Function as.zooI
B4_Gef-class

Class "Gef": irradiation and irradiance on the generator plane.
B7_Shade-class

Class "Shade": shadows in a PV system.
B5_ProdGCPV-class

Class "ProdGCPV": performance of a grid connected PV system.
D_as.data.frameM-methods

Methods for Function as.data.frameM
E_helios

Daily irradiation and ambient temperature from the Helios-IES database
C_fInclin

Solar irradiance on an inclined surface
D_writeSolar-methods

Exporter of solaR results
E_pumpCoef

Coefficients of centrifugal pumps.
B1_Meteo-class

Class "Meteo"
A7_optimShd

Shadows calculation for a set of distances between elements of a PV grid connected plant.
D_as.zooD-methods

Methods for Function as.zooD
D_levelplot-methods

Methods for function levelplot.
D_as.zooM-methods

Methods for Function as.zooM
C_fSombra

Shadows on PV systems
C_NmgPVPS

Nomogram of a photovoltaic pumping system
C_local2Solar

Local time, mean solar time and UTC time zone.
D_Losses-methods

Losses of a GCPV system
C_fSolI

Instantaneous apparent movement of the Sun from the Earth
E_aguiar

Markov Transition Matrices for the Aguiar etal. procedure
C_fCompD

Components of daily global solar irradiation on a horizontal surface
A4_prodGCPV

Performance of a grid connected PV system.
C_fProd

Performance of a PV system
D_as.data.frameY-methods

Methods for Function as.data.frameY
A6_calcShd

Shadows on PV systems.
C_utils-time

Utilities for time indexes.
C_utils-angle

Conversion between angle units.
C_fBTd

Daily time base
C_sample2Diff

Small utilities for difftime objects.
A3_calcGef

Irradiation and irradiance on the generator plane.
D_as.zooY-methods

Methods for Function as.zooY
B2_Sol-class

Class "Sol": Apparent movement of the Sun from the Earth
D_getData-methods

Methods for function getData
solaR-defunct

Defunct functions in package ‘solaR’
B3_G0-class

Class "G0": irradiation and irradiance on the horizontal plane.
D_getLat-methods

Methods for Function getLat
A5_prodPVPS

Performance of a PV pumping system
D_window-methods

Methods for extracting a time window
D_as.data.frameI-methods

Methods for Function as.data.frameI
C_corrFdKt

Correlations between the fraction of diffuse irradiation and the clearness index.
C_fTemp

Intradaily evolution of ambient temperature
D_indexI-methods

Methods for Function indexI
A2_calcG0

Irradiation and irradiance on the horizontal plane.
D_getG0-methods

Methods for function getG0
E_prodEx

Productivity of a set of PV systems of a PV plant.
A8_readBD

Daily or intradaily values of global horizontal irradiation and ambient temperature from a local file or a data.frame.