sensortoolkit.reference._load_ref_data.import_ref_dataframe

import_ref_dataframe(df, path, year, month, suffix=None)[source]

Import reference data for the specified monthly period and parameter classification.

Parameters
  • df (pandas dataframe) – Constructor dataframe containing reference data (FRM/FEM) at 1-hour averaged intervals. Data loaded by this module are appended to the constructor dataframe and returned.

  • path (str) – Full path to reference data directory where files are located.

  • year (str) – The year (YYYY) for which data will be loaded.

  • month (str) – The month (MM) for which data will be loaded.

  • suffix (str) – The parameter classification (‘PM’, ‘Gases’, or ‘Met’) indicating the type of reference data to be imported.

Returns

Modified dataframe with imported data appended to the passed dataset. Contains reference data (FRM/FEM) at 1-hour averaged intervals.

Return type

df (pandas dataframe)