nsrdb.utilities.extract_surfrad.filter_measurement_df
- filter_measurement_df(df, var_list=('dhi', 'dni', 'ghi', 'sza'))[source]
Filter the measurement dataframe.
- Parameters:
df (pd.DataFrame) – Ground measurement dataframe containing variables in var_list.
var_list (list | tuple) – Variables to preserve (typically irradiance and sza).
- Returns:
df (pd.DataFrame) – Filtered data with zero or negative irradiance replaced with missing flag.