Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download function for JAXA's AW3D30 DEM #734

Merged
merged 16 commits into from Apr 10, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Import robust_tar_extract inside of the function to break an import c…

…ircle
  • Loading branch information...
TimoRoth committed Apr 9, 2019
commit ee2e539e41ad10709d32b31a1fb7b70375c84297
@@ -45,7 +45,6 @@
DownloadVerificationFailedException,
DownloadCredentialsMissingException,
HttpDownloadError, HttpContentTooShortError)
from oggm.utils._workflow import robust_tar_extract

# Module logger
logger = logging.getLogger('.'.join(__name__.split('.')[:-1]))
@@ -872,6 +871,7 @@ def _download_aw3d30_file_unlocked(fullzone):
# ok we have to extract it

if not os.path.exists(demfile):
from oggm.utils import robust_tar_extract
dempath = os.path.dirname(demfile)
robust_tar_extract(dest_file, dempath)

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.