pyrad.io.get_save_dir#

pyrad.io.get_save_dir(basepath, procname, dsname, prdname, timeinfo=None, timeformat='%Y-%m-%d', create_dir=True)[source]#

obtains the path to a product directory and eventually creates it

Parameters:
  • basepath (str) – product base path

  • procname (str) – name of processing space

  • dsname (str) – data set name

  • prdname (str) – product name

  • timeinfo (datetime) – time info to generate the date directory. If None there is no time format in the path

  • timeformat (str) – Optional. The time format.

  • create_dir (boolean) – If True creates the directory

Returns:

savedir (str) – path to product