|
1 | 1 | module AO
|
2 | 2 |
|
3 | 3 | using DataDeps # For storage location of data
|
| 4 | +using Downloads |
4 | 5 |
|
5 | 6 | function fallback_download(remotepath, localdir)
|
6 | 7 | @assert(isdir(localdir))
|
7 | 8 | filename = basename(remotepath) # only works for URLs with filename as last part of name
|
8 | 9 | localpath = joinpath(localdir, filename)
|
9 |
| - Base.download(remotepath, localpath) |
| 10 | + Downloads.download(remotepath, localpath) |
10 | 11 | return localpath
|
11 | 12 | end
|
12 | 13 |
|
@@ -48,14 +49,14 @@ function download_and_unpack()
|
48 | 49 |
|
49 | 50 | (in shell mode) to check its contents.
|
50 | 51 |
|
51 |
| - Please check with Seth John ([email protected]) for references |
| 52 | + Please check with Seth John ([email protected]) for references |
52 | 53 | to cite if you use the other data contained in the AO files,
|
53 | 54 | e.g., GEOTRACES, WOA, Weber and John, and so on.
|
54 | 55 |
|
55 |
| - Also note that downloading files like this from GitHub is |
56 |
| - probably not very robust. However, some of the data files in |
| 56 | + Also note that downloading files like this from GitHub is |
| 57 | + probably not very robust. However, some of the data files in |
57 | 58 | the AO repository do not exist anywhere else officially,
|
58 |
| - therefore this seems like the best solution at this stage. |
| 59 | + therefore this seems like the best solution at this stage. |
59 | 60 | PRs welcome to improve this!
|
60 | 61 | """
|
61 | 62 | return AO_path
|
|
0 commit comments