reV.losses.utils.hourly_indices_for_months

hourly_indices_for_months(month_names)[source]

Convert month names into a list of hourly indices.

Given a list of month names, this function will return a list of indices such that any index value corresponds to an hour within the input months.

Parameters:

month_names (iter) – An iterable of month names for the desired starting indices. The month names must match the formatting in calendar.month_name (upper case, no extra whitespace), otherwise their hourly indices will not be included in the output.

Returns:

list – A list of hourly index values such that any index corresponds to an hour within the input months.