downloader#

Implements download and post-processing based on pooch.

irdl.downloader.CACHE_DIR = PosixPath('/home/runner/.cache/irdl')#

The cache directory for storage of the temporary downloads. Defaults to the user cache directory.

irdl.downloader.pooch_from_doi(doi, path=PosixPath('/home/runner/.cache/irdl'))#

Create a Pooch instance from a DOI.

Parameters:
doistr

The DOI of the archive.

pathstr

Path to the directory where the data should be stored.

Returns:
puppooch.Pooch

The Pooch instance.

irdl.downloader.process(func)#

Decorator to process downloaded files.

The decorated function should take two arguments: the input file name and the output file name. The decorator checks if the output file already exists and is up to date. If so, it returns the output file name. Otherwise, it calls the decorated function to process the input file and create the output file.