rdtools.normalization.irradiance_rescale

rdtools.normalization.irradiance_rescale(irrad, irrad_sim, max_iterations=100, method='iterative', convergence_threshold=1e-06)

Attempt to rescale modeled irradiance to match measured irradiance on clear days.

Parameters:
  • irrad (pandas.Series) -- measured irradiance time series

  • irrad_sim (pandas.Series) -- modeled/simulated irradiance time series

  • max_iterations (int, default 100) -- The maximum number of times to attempt rescale optimization. Ignored if method = 'single_opt'

  • method (str, default 'iterative') -- The calculation method to use. 'single_opt' implements the irradiance_rescale of rdtools v1.1.3 and earlier. 'iterative' implements a more stable calculation that may yield different results from the single_opt method.

  • convergence_threshold (float, default 1e-6) -- The acceptable iteration-to-iteration scaling factor difference to determine convergence. If the threshold is not reached after max_iterations, raise rdtools.normalization.ConvergenceError. Must be greater than zero. Only used if method=='iterative'.

Returns:

Rescaled modeled irradiance time series

Return type:

pandas.Series