POA Irradiance Calculator Datum Filter¶
The POA Irradiance Calculator Datum Filter provides a way to inject a plane-of-array (POA) irradiance property based on a set of PV characteristics and a global horizontal irradiance (GHI) property value. This is useful when you have a pyranometer deployed with a PV system, but it only provides GHI measurements and you would like to model the expected performance of the PV system taking into consideration the PV array tilt, GPS coordinates, and so on. The filter supports fixed arrays, single-axis trackers, and bifacial modules.
To calculate the power a PV array is expected to generate, see the PV Expected Generation filter, which calculates the irradiance on the array the same way.
Info
This filter is provided by the pvlib Datum Filters plugin, which is provided by the
solarnode-app-datumfilters-pvlib
package in SolarNodeOS. It is a User Datum Filter,
listed as POA Irradiance Calculator (pvlib).
How it works¶
Configure the filter's Source ID to match the datum stream with the GHI readings, such as from a weather station. For each datum with a GHI Property value, the filter passes the PV characteristics and the GHI reading to the pvlib server on the node, which calculates the POA irradiance at the datum's date in these steps:
- Sun position: the position of the sun at the array's location.
- Decomposition: the GHI is split into its direct normal (DNI) and diffuse horizontal (DHI) parts with the Erbs model, within the limits of the Minimum cos(zenith) and Maximum Zenith settings.
- Transposition: the direct and diffuse irradiance are transposed onto the array plane with the Transposition Model, adding the irradiance reflected from the ground by the Albedo. With Tracking the array plane follows a single-axis tracker, and with Bifacial the irradiance on the rear of the array is added, from pvlib's infinite sheds model.
The filter then sets the POA Property, irradiance_poa by default, to the total irradiance on
the array, and evaluates any Expressions, which can use the values calculated along
the way.
A GHI reading below 0, such as a pyranometer's offset at night, is taken as 0. A GHI reading
above 2000 W/m2 is an error: the filter logs it and leaves the datum unchanged.
Settings¶

In addition to the Common Settings, the following general settings are available:
| Setting | Description |
|---|---|
| Metadata Service | The Service Name of the Metadata Service to obtain the PV characteristics from. See Metadata Parameters for more information. |
| Metadata Path | The metadata path that will resolve the PV characteristics from the configured Metadata Service or the datum metadata of the datum stream being filtered, for example /pm/pv-site. See Metadata Parameters for more information. |
| Alternate Metadata Path | An alternate metadata path that will resolve the PV characteristics from the configured Metadata Service or the datum metadata of the datum stream being filtered, for example /pm/pv-arrays/east. Its characteristics override those at the Metadata Path. See Metadata Parameters for more information. |
| Use Node Location | If enabled, then the location configured for this node in SolarNetwork will be used in preference to the Latitude, Longitude, and Altitude settings configured on this filter. |
| GHI Property | The name of the datum property to obtain the GHI irradiance reading from, in W/m2, to use in the POA Property calculation. Defaults to irradiance. |
| POA Property | The name of the datum property to populate with the calculated POA irradiance, in W/m2. Defaults to irradiance_poa. |
| Latitude | The decimal latitude of the PV system. |
| Longitude | The decimal longitude of the PV system. |
| Altitude | The altitude of the PV system, in meters above sea level. Defaults to 0. |
| Time Zone | The identifier of the time zone of the PV system, for example Pacific/Auckland. If not specified then the node's time zone will be used. |
| Azimuth | The angle of the PV array in degrees clockwise from true north that the PV system is facing. |
| Tilt | The angle of the PV array in degrees from horizontal, from 0 (facing directly upwards) to 90 (facing the horizon). |
| Minimum cos(zenith) | The minimum value of cos(zenith) to allow when calculating the global clearness index. Defaults to 0.065. |
| Maximum Zenith | The maximum zenith value to allow in DNI calculation. Defaults to 87. |
| Tracking | If enabled, model a single-axis tracker: the Tilt and Azimuth settings are ignored and the array orientation is calculated from the sun position and the tracker axis settings. |
| Axis Tilt | The tilt of the tracker axis in degrees from horizontal, from 0 to 90. Defaults to 0, which it must be when Bifacial is enabled. |
| Axis Azimuth | The angle of the tracker axis in degrees clockwise from true north, for example 0 for a north-south axis. Defaults to 0. |
| Maximum Angle | The maximum tracker rotation angle in degrees from horizontal. Defaults to 90. |
| Backtrack | If enabled, apply backtracking to avoid row-to-row shading, using the Ground Coverage Ratio. |
| Ground Coverage Ratio | The ratio of PV row width to row spacing, used when Backtrack or Bifacial is enabled. Defaults to 0.2857. Set a realistic value in bifacial mode, as the default overstates the rear-side gain. |
| Bifacial | If enabled, model bifacial modules in long rows on flat ground: the POA irradiance then includes the rear-side irradiance, weighted by the Bifaciality and loss factors. Not suitable for rooftop or canopy sites. |
| Bifaciality | The ratio of rear to front module efficiency, from 0 to 1, used when Bifacial is enabled. Defaults to 0.8. |
| Albedo | The fraction of irradiance reflected by the ground, from 0 to 1, for example 0.2 for grass or 0.8 for fresh snow. Defaults to 0.25. Applies with or without Bifacial. |
| Row Height | The height of the PV row center above the ground, in the same units as Row Pitch, greater than 0 up to 100, used when Bifacial is enabled. It must keep the lower edge of the modules above the ground at the Tilt, or at the Maximum Angle with Tracking. Defaults to 1.5. |
| Row Pitch | The distance between adjacent PV rows, in the same units as Row Height, greater than 0 up to 1000, used when Bifacial is enabled. Defaults to 5. |
| Shade Factor | The fractional rear-side irradiance loss from shading by the mounting structure, from -1 to 0, used when Bifacial is enabled. Defaults to -0.02. |
| Transmission Factor | The fractional rear-side irradiance loss from module features such as the junction box, from -1 to 0, used when Bifacial is enabled. Defaults to 0. |
| Transposition Model | The transposition model to determine diffuse irradiance from the sky on a tilted surface: Hay & Davies (the default) or Perez-Driesse. With Bifacial enabled, Hay & Davies is always used. |
| Server URL | The URL of the pvlib server to calculate with. Defaults to http://127.0.0.1:8099, the server SolarNodeOS runs on the node. Leave empty to run the Command instead. |
| Command | The external command to run when the Server URL is empty, where the parameters and readings will be passed as arguments and the calculation results are returned. Defaults to /var/lib/solarnode/bin/ghi-to-poa. See Command for more information. |
| Timeout | The maximum number of seconds to wait for the Server URL to connect and respond, or for the Command to finish, after which the request or command is stopped. Set to 0 to wait forever. Defaults to 60. |
| POA Result Key | The result key to extract for the POA Property. Defaults to poa_global. When Bifacial is enabled, poa_global includes the weighted rear-side irradiance; use poa_front for the front-side value, for example to compare with a POA sensor. |
| Expressions | A list of expression configurations that are evaluated to populate datum property values. All the calculation results are available to them by their result keys. See Expressions below. |
Metadata Parameters¶
This filter can look up the PV characteristics from SolarNetwork metadata, so that many filters can share them. If either Metadata Path or Alternate Metadata Path are configured, then the filter will look for a metadata object with properties as shown below, from any configured Metadata Service and from the datum metadata associated with the source ID of the datum being filtered.
For example, a Metadata Path of /pm/pv-site would work with metadata like this:
{
"pm": {
"pv-site": {
"lat": -36.8509,
"lon": 174.7645,
"zone": "Pacific/Auckland",
"pvArrayTilt": 15,
"pvArrayAzimuth": 90
}
}
}
The filter merges all possible PV characteristics from the settings on the filter itself and metadata, in the following order, with later sources overriding earlier sources:
- Filter settings
- Metadata from the configured Metadata Service, at the Metadata Path and then the Alternate Metadata Path
- Datum metadata associated with the source ID of the datum being filtered, at the Metadata Path and then the Alternate Metadata Path
- Latitude, longitude, and altitude from the location configured for the node in SolarNetwork, if Use Node Location is enabled
A metadata value outside a numeric range shown below, such as an albedo of 2, is logged and
ignored, so the value from an earlier source is used instead.
Tip
The PV Expected Generation filter uses the same metadata keys, so the two
filters can share the same metadata. This filter ignores the keys it does not need, such as
pdc0.
The supported metadata parameters are:
| Metadata Key | Description |
|---|---|
lat |
Latitude, in decimal degrees |
lon |
Longitude, in decimal degrees |
alt |
Altitude, in meters above sea level |
zone |
Time Zone identifier, for example Pacific/Auckland |
pvArrayAzimuth |
Azimuth of the PV array, in degrees clockwise from north |
pvArrayTilt |
Tilt of the PV array, in degrees from horizontal |
minCosZenith |
Minimum cos(zenith) |
maxZenith |
Maximum Zenith |
tracking |
Tracking, true or false |
pvAxisTilt |
Axis Tilt, in degrees from horizontal, from 0 to 90 |
pvAxisAzimuth |
Axis Azimuth, in degrees clockwise from north, from 0 to 360 |
maxAngle |
Maximum Angle, in degrees from horizontal, greater than 0 up to 180 |
backtrack |
Backtrack, true or false |
gcr |
Ground Coverage Ratio, greater than 0 up to 1 |
bifacial |
Bifacial, true or false |
bifaciality |
Bifaciality, from 0 to 1 |
albedo |
Albedo, from 0 to 1 |
pvRowHeight |
Row Height, greater than 0 up to 100 |
pvRowPitch |
Row Pitch, greater than 0 up to 1000 |
shadeFactor |
Shade Factor, from -1 to 0 |
transmissionFactor |
Transmission Factor, from -1 to 0 |
transpositionModel |
Transposition Model, haydavies or perez-driesse |
Expressions¶
Any number of expressions can be configured on the Expressions list. Expressions can reference datum properties as usual, including the POA Property, and additionally any of the calculation results by their result key. A datum property with the same name as a result key takes precedence over the result.
The available calculation results properties are:
| Result Key | Description |
|---|---|
poa_global |
The irradiance on the array, in W/m2. On a bifacial array this includes the weighted rear-side irradiance. |
poa_direct, poa_diffuse, poa_sky_diffuse, poa_ground_diffuse |
The components of the irradiance on the front of the array, in W/m2. |
poa_front, poa_back, shaded_fraction_front |
On a bifacial array, the front and rear-side irradiance, in W/m2, and the shaded fraction of the front. |
ghi, dni, dhi |
The global horizontal, direct normal, and diffuse horizontal irradiance, in W/m2. |
zenith, azimuth |
The sun's zenith and azimuth angles, in degrees. |
tracker_theta, aoi, surface_tilt, surface_azimuth |
With Tracking, the tracker rotation angle, the sun's angle of incidence on the array, and the array's tilt and azimuth, in degrees. |
date, zone, min_cos_zenith, max_zenith, albedo |
The date and time zone of the calculation, and the settings of the same name used, albedo only when set. |
bifaciality, gcr, height, pitch, shade_factor, transmission_factor, transposition_model |
On a bifacial array, the bifacial settings used. |
For example, the array in the metadata example, for a datum at 9am on 19 November 2026 with a GHI reading of 600 W/m2, has these results:
{
"date": "2026-11-19T09:00:00+13:00",
"zone": "Pacific/Auckland",
"ghi": 600.0,
"dni": 889.6671607054991,
"dhi": 102.74230868109538,
"zenith": 56.01847633648743,
"azimuth": 89.71062300559339,
"min_cos_zenith": 0.065,
"max_zenith": 87,
"poa_global": 798.7724065674765,
"poa_direct": 671.2496401256591,
"poa_diffuse": 127.52276644181742,
"poa_sky_diffuse": 124.96720341349754,
"poa_ground_diffuse": 2.5555630283198765
}
Some example expressions with these results are:
| Property | Property Type | Expression | Result | Comment |
|---|---|---|---|---|
irradiance_poa |
Instantaneous | roundDown(poa_global, 3) |
798.772 |
Replaces the POA Property value, rounded towards zero to at most 3 decimal places. |
irradiance_dni |
Instantaneous | round(dni, 1) |
889.7 |
Adds the direct normal irradiance. |
irradiance_dhi |
Instantaneous | round(dhi, 1) |
102.7 |
Adds the diffuse horizontal irradiance. |
zenith |
Instantaneous | round(zenith, 1) |
56.0 |
Adds the sun's zenith angle. |
pvlib server¶
SolarNodeOS runs a pvlib server on the node, installed with the
solarnode-app-datumfilters-pvlib package, which this filter
calls at the default Server URL of http://127.0.0.1:8099. The pvlib datum filters share the
server, which keeps pvlib loaded so that each calculation is quick.
The server starts when the first request arrives, so the first calculation takes longer, and stops after 30 minutes without a request. If the server cannot be reached, or returns an error, such as for an invalid reading, the filter logs the error and leaves the datum unchanged.
Command¶
With an empty Server URL, the filter runs the Command for each datum instead, by default
/var/lib/solarnode/bin/ghi-to-poa. The PV characteristics and the GHI reading are passed to the
command as arguments, and the command prints the calculation results as JSON. Each run starts
Python and loads pvlib afresh, which takes much longer than a request to the server, so the command
is best suited to testing. Its results agree with the server's for every plausible reading, but it
accepts some inputs the server rejects, such as a GHI reading above 2000 W/m2, and gives a
negative POA irradiance for a negative GHI reading. For example, to calculate the POA irradiance of
the array in the metadata example:
/var/lib/solarnode/bin/ghi-to-poa --latitude -36.8509 --longitude 174.7645 \
--zone Pacific/Auckland --array-tilt 15 --array-azimuth 90 \
--date 2026-11-19T09:00:00+13:00 --irradiance 600
Run the command with --help to see all its options.