pyrad.io.get_scan_files_to_merge#
- pyrad.io.get_scan_files_to_merge(basepath, scan_list, radar_name, radar_res, voltime, dataset_list, path_convention='ODIM', master_scan_time_tol=0, scan_period=0)[source]#
gets the list of files to merge into a single radar object
- Parameters:
basepath (str) – base path of radar data
scan_list (list) – list of scans
radar_name (str) – radar name
radar_res (str) – radar resolution type
voltime (datetime object) – reference time of the scan
datatype_list (list) – lists of data types to get
dataset_list (list) – list of datasets. Used to get path
path_convention (str) – The path convention to use. Can be LTE, MCH, ODIM, RADARV, RT
master_scan_time_tol (int) – time tolerance with respect to the master scan time. Can be 0 (No tolerance), 1 (time between master scan time and master scan time plus scan period), -1 (time between master scan time and master scan time minus scan period
scan_period (int) – scan period (minutes)
- Returns:
filelist (list of strings) – list of files to merge. If it could not find them returns an empty list
scan_list_aux (list of strings) – list of scans for which a file was found