pyrad.io.make_filename#
- pyrad.io.make_filename(prdtype, dstype, dsname, ext_list, prdcfginfo=None, timeinfo=None, timeformat='%Y%m%d%H%M%S', runinfo=None)[source]#
creates a product file name
- Parameters:
timeinfo (datetime) – time info to generate the date directory
prdtype (str) – product type, i.e. ‘ppi’, etc.
dstype (str) – data set type, i.e. ‘raw’, etc.
dsname (str) – data set name
ext_list (list of str) – file name extensions, i.e. ‘png’
prdcfginfo (str) – Optional. string to add product configuration information, i.e. ‘el0.4’
timeformat (str) – Optional. The time format
runinfo (str) – Optional. Additional information about the test (e.g. ‘RUN01’, ‘TS011’)
- Returns:
fname_list (list of str) – list of file names (as many as extensions)