rdtools.filtering.hour_angle_filter

rdtools.filtering.hour_angle_filter(series, lat, lon, min_hour_angle=-30, max_hour_angle=30)

Creates a filter based on the hour angle of the sun (15 degrees per hour)

Parameters:
  • series (pandas.Series) -- Pandas time series to be filtered

  • lat (float) -- location latitude

  • lon (float) -- location longitude

  • min_hour_angle (float) -- minimum hour angle to include

  • max_hour_angle (float) -- maximum hour angle to include

Returns:

Boolean Series excluding points outside the specified hour angle range

Return type:

pandas.Series