act.discovery.download_arm_data_mod#
- act.discovery.download_arm_data_mod(username, token, file_list, variables=None, filetype='cdf', output=None)[source]#
This function allows for downloading ARM data from ARM’s data discovery mod API: https://adc.arm.gov/armlive/
This function will then provide a concatenated file of the file list in csv or cdf file format with all variables or user provided variables.
- Parameters:
username (str) – ARM username.
token (str) – ARM user token.
file_list (list) – A list of files by datetime of the same datastream to concatenate.
variables (list) – A list of desired variables that exist in the datastream. Default is None and will provide all variables.
file_type (str) – File type to download file as. Valid options are ‘csv’ and ‘cdf’. Default is ‘cdf’
output (str) – The output directory for the data. Set to None to make a folder in the current working directory with the same name as filename to place the files in.
- Returns:
filename (str) – Concatenated filename