Learn R Programming

solaR2

The solaR2 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, as well as to simulate the performance of various photovoltaic energy applications. This package performs the entire 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 that handle multivariate time series efficiently and are optimized for high-performance data manipulation. The classes share a variety of methods to access the information and several visualization methods. Additionally, the package provides tools for the visual statistical analysis of the performance of large PV plants composed of multiple systems.

Although solaR2 is primarily designed for time series associated with a location defined by its latitude/longitude values and 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('solaR2')

Citation

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

Delgado López, Francisco y Perpiñán Lamigueiro, Oscar (2024).
solaR2: Radiation and Photovoltaic Systems with R version 2.
R package version 0.10.
Disponible en: https://solarization.github.io/solaR2/

A BibTeX entry for LaTeX users is

@Manual{,
  title     = {solaR2: Radiation and Photovoltaic Systems with R version 2},
  author    = {Francisco Delgado L{\'o}pez and Oscar Perpi{\~n}{\'a}n Lamigueiro},
  year      = {2024},
  url       = {https://solarization.github.io/solaR2/},
  note      = {R package version 0.10},
}

Copy Link

Version

Install

install.packages('solaR2')

Monthly Downloads

203

Version

0.11

License

GPL-3

Maintainer

Francisco Delgado-López

Last Published

January 16th, 2025

Functions in solaR2 (0.11)

D_as.data.tableM-methods

Methods for Function as.data.tableM
A3_calcGef

Irradiation and irradiance on the generator plane.
A2_calcG0

Irradiation and irradiance on the horizontal plane.
D_as.data.tableD-methods

Methods for Function as.data.tableD
A6_calcShd

Shadows on PV systems.
E_aguiar

Markov Transition Matrices for the Aguiar etal. procedure
D_as.data.tableI-methods

Methods for Function as.data.tableI
B2_Sol-class

Class "Sol": Apparent movement of the Sun from the Earth
D_as.data.tableY-methods

Methods for Function as.data.tableY
A1_calcSol

Apparent movement of the Sun from the Earth
D_compare-methods

Compare G0, Gef and ProdGCPV objects
C_fBTi

Intra-daily time base
C_corrFdKt

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

Components of daily global solar irradiation on a horizontal surface
C_fCompI

Calculation of solar irradiance on a horizontal surface
C_fPump

Performance of a centrifugal pump
C_fInclin

Solar irradiance on an inclined surface
C_fProd

Performance of a PV system
D_Losses-methods

Losses of a GCPV system
D_getG0-methods

Methods for function getG0
C_fBTd

Daily time base
C_fSolD

Daily apparent movement of the Sun from the Earth
C_fSolI

Instantaneous apparent movement of the Sun from the Earth
E_helios

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

Angle of incidence of solar irradiation on a inclined surface
D_indexD-methods

Methods for Function indexD
C_fTemp

Intradaily evolution of ambient temperature
C_fSombra

Shadows on PV systems
D_getLat-methods

Methods for Function getLat
D_getData-methods

Methods for function getData
E_prodEx

Productivity of a set of PV systems of a PV plant.
D_indexI-methods

Methods for Function indexI
A4_prodGCPV

Performance of a grid connected PV system.
D_shadeplot-methods

Methods for Function shadeplot
E_pumpCoef

Coefficients of centrifugal pumps.
A7_optimShd

Shadows calculation for a set of distances between elements of a PV grid connected plant.
A5_prodPVPS

Performance of a PV pumping system
D_levelplot-methods

Methods for function levelplot.
D_mergesolaR-methods

Merge solaR objects
C_local2Solar

Local time, mean solar time and UTC time zone.
E_solaR.theme

solaR theme
C_utils-angle

Conversion between angle units.
D_window-methods

Methods for extracting a time window
solaR2-package

Solar Radiation and Photovoltaic Systems with R version 2
C_solarAngles

Solar angles
A8_readG0dm

Monthly mean values of global horizontal irradiation.
A8_readBD

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

Exporter of solaR results
A8_readSIAR

Meteorological data from the SIAR network.
C_utils-time

Utilities for time indexes.
C_sample2Diff

Small utilities for difftime objects.
D_xyplot-methods

Methods for function xyplot in Package `solaR'
A8_Meteo2Meteo

Transformation of intradaily meteorological data into daily and daily into monthly data.
C_NmgPVPS

Nomogram of a photovoltaic pumping system
C_HQCurve

H-Q curves of a centrifugal pump
E_SIAR

Data on the stations that make up the SIAR network
B1_Meteo-class

Class "Meteo"
B3_G0-class

Class "G0": irradiation and irradiance on the horizontal plane.
B7_Shade-class

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

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

Class "ProdGCPV": performance of a grid connected PV system.
B6_ProdPVPS-class

Class "ProdPVPS": performance of a PV pumping system.