nsrdb.gap_fill.irradiance_fill.make_fill_flag
- make_fill_flag(irrad, cs_irrad, cloud_type, missing_cld_props, cloud_fill_flag=None)[source]
Make a dataset indicating where to fill bad irradiance data.
- Parameters:
irrad (np.ndarray) – All-sky (cloudy + clear) irradiance data.
cs_irrad (np.ndarray) – Clearsky (REST) irradiance data.
cloud_type (np.ndarray) – Array of numerical cloud types.
missing_cld_props (np.ndarray) – Boolean array flagging timesteps with missing cloud properties.
cloud_fill_flag (None | np.ndarray) – Integer array of flags showing what data was previously filled and why. None will create a new fill flag initialized as all zeros. An array input will be interpreted as flags showing which cloud properties have already been filled.
- Returns:
fill_flag (np.ndarray) – Array of integers signifying whether to fill the irradiance data and the reason why.