nsrdb.tmy.utilities.drop_leap

drop_leap(arr, time_index)[source]

Make 365-day timeseries (TMY does not have leap days).

Parameters:
  • arr (np.ndarray) – Timeseries array (time, sites) for one variable.

  • time_index (pd.datetimeindex) – Datetime index corresponding to the rows in arr. May have leap days

Returns:

  • arr (np.ndarray) – Timeseries array (time, sites) for one variable, n_rows is a multiple of 8760.

  • time_index (pd.datetimeindex) – Datetime index corresponding to the rows in arr, without leap days.