pyrad.util.get_closest_solar_flux#

pyrad.util.get_closest_solar_flux(hit_datetime_list, flux_datetime_list, flux_value_list)[source]#

finds the solar flux measurement closest to the sun hit

Parameters:
  • hit_datetime_list (datetime array) – the date and time of the sun hit

  • flux_datetime_list (datetime array) – the date and time of the solar flux measurement

  • flux_value_list (ndarray 1D) – the solar flux values

Returns:

  • flux_datetime_closest_list (datetime array) – the date and time of the solar flux measurement closest to sun hit

  • flux_value_closest_list (ndarray 1D) – the solar flux values closest to the sun hit time