solposx.tools.calc_error

Contents

solposx.tools.calc_error#

solposx.tools.calc_error(zenith_1, azimuth_1, zenith_2, azimuth_2)#

Calculate angular difference metrics between two sets of solar positions.

Parameters:
  • zenith_1 (array-like) – Zenith angles for the two sets of solar positions. [degrees]

  • zenith_2 (array-like) – Zenith angles for the two sets of solar positions. [degrees]

  • azimuth_1 (array-like) – Azimuth angles for the two sets of solar positions. [degrees]

  • azimuth_2 (array-like) – Azimuth angles for the two sets of solar positions. [degrees]

Returns:

out – Dict with keys:

  • zenith_bias, azimuth_bias: average (signed) difference in zenith/azimuth

  • zenith_mad, azimuth_mad: mean absolute difference in zenith/azimuth

  • zenith_rmsd, azimuth_rmsd: root-mean-squared difference in zenith/azimuth

  • combined_rmse: total angular root-mean-squared difference in position

Return type:

dict