oggm.utils.copy_to_basedir#

oggm.utils.copy_to_basedir(gdir, base_dir=None, setup='run')[source]#

Copies the glacier directories and their content to a new location.

This utility function allows to select certain files only, thus saving time at copy.

Parameters
gdiroggm.GlacierDirectory

the glacier directory to copy

base_dirstr

path to the new base directory (should end with “per_glacier” most of the time)

setupstr

set up you want the copied directory to be useful for. Currently supported are ‘all’ (copy the entire directory), ‘inversion’ (copy the necessary files for the inversion AND the run) , ‘run’ (copy the necessary files for a dynamical run) or ‘run/spinup’ (copy the necessary files and all already conducted model runs, e.g. from a dynamic spinup).

Returns
New glacier directories from the copied folders

Notes

Files written to the glacier directory: