Code: downloader
Downloads various ESM components from repositories
Provides pythonic interfaces to download models from git, svn, ect…
-
pyesm.core.downloader.
download_from_git
(GitAddress, DestPath, ModelName, ModelType)[source]
Downloads a git repository to a specific path.
Parameters: |
- GitAddress (str) – The full location to the repo you want to clone
- DestPath (str) – The full location of the destination where the repo should go
- ModelName (str) – The name of the model, for printing output
- ModelType (str) – What kind of model is being downloaded (atmoshpere, land, ocean, etc…)
|
Example
>>> download_from_git("https://gitlab.dkrz.de/modular_esm/echam6.git", "echam6", "ECHAM6", "Atmoshpere")