act.qc.print_dqr#
- act.qc.print_dqr(datastream, start_date, end_date, variable=None, assessment='incorrect,suspect', pretty_print=True)[source]#
Function to query the ARM DQR web service for reports and print the information out in a “pretty” format or in a format conducive for pasting into a spreadsheet.
Information about the DQR web-service avaible at https://adc.arm.gov/dqrws/
- Parameters:
datastream (string) – Datastream name to query the API for. Example: sgpmetE13.b1
start_date (string) – Start date for querying DQR start dates in YYYYMMDD format. Example: 20240101
end_date (string) – End date for querying DQR start dates in YYYYMMDD format. Example: 20240101
variable (string) – Variable to query DQRs for. Will only print out DQRs with similar matches.
assessment (string) – assessment type to get DQRs. Current options include ‘missing’, ‘suspect’, ‘incorrect’ or any combination separated by a comma.
pretty_print (boolean) – Set to print out in a “pretty” format that is easy to read as default. Set to False will print DQR information out in a format that can be pasted into a spreadsheet and converted to columns with a comma delimiter
- Returns:
dqr_results (dict) – Dictionary of DQR information