sensortoolkit.deploy._create_deploy_dict.construct_deploy_dict
- construct_deploy_dict(deploy_df, full_df_list, hourly_df_list, daily_df_list, sensor_name, **kwargs)[source]
Create the deployment dictionary, initialize with sensor group info, time period of deployment, testing agency and location, and library version and time at which the dictionary were constructed.
Determines which sensors match the beginning and end dates for deployment (provided a timedelta padding window of 1 day around the begin and end timestamps). Sensors measuring concurrently are grouped together as a deployment group. Sensors with beginning and end deployment dates that differ from the identified deployment group are assigned
True
for thedeploy_dict
sensor unit entrydeploy_issues
.- Parameters
deploy_df (pandas dataframe) – A data frame containing the start time (Begin), end time (End), and total duration of evaluation period for each sensor in a deployment group.
full_df_list (list) – List of sensor data frames of length N (where N is the number of sensor units in a testing group). Data frames indexed by at recorded sampling frequency.
hourly_df_list (list) – List of sensor data frames of length N (where N is the number of sensor units in a testing group). Data frames indexed by DateTime at 1-hour averaged sampling frequency.
daily_df_list (list) – List of sensor data frames of length N (where N is the number of sensor units in a testing group). Data frames indexed by DateTime at 24-hour averaged sampling frequency.
sensor_name (str) – The make and model of the sensor being evaluated.
Keyword Arguments
- Parameters
testing_org (dict) – A dictionary containing the information about the testing organization.
testing_loc (dict) – A dictionary containing information about the testing site. If the site is part of U.S. EPA’s Air Quality System (AQS), the AQS Site ID should be specified.
- Returns
Dictionary containing separate deployment group start and end times (based on the latest (max) start timestamp and earliest (min) end timestamp in group), deployment duration, and sensor serial IDs for devices within each deployment group.
- Return type
deploy_dict (dict)