pyrad.util.retrieve_mch_prod#
- pyrad.util.retrieve_mch_prod(folder_out, start_time, end_time, product_name, pattern=None, pattern_type='shell', sweeps=None)[source]#
Retrieves radar data from the CSCS repository for a specified time range, unzips them and places them in a specified folder
- Parameters:
folder_out (str) – directory where to store the unzipped files
start_time (datetime.datetime instance) – starting time of the time range
end_time (datetime.datetime instance) – end time of the time range
product_name (str) – name of the product, as stored on CSCS, e.g. RZC, CPCH, MZC, BZC…
pattern (str) – pattern constraint on file names, can be used for products which contain multiple filetypes, f.ex CPCH folders contain both rda and gif files, if only gifs are wanted : file_type = ‘*.gif’
pattern_type (either ‘shell’ or ‘regex’ (optional)) – use ‘shell’ for standard shell patterns, which use * as wildcard use ‘regex’ for more advanced regex patterns
sweeps (list of int (optional)) – For polar products, specifies which sweeps (elevations) must be retrieved, if not specified all available sweeps will be retrieved
- Returns:
A list containing all the filepaths of the retrieved files