Description Usage Arguments Details See Also Examples
Extract URLs from sh files. A txt file contaiing download urls will be written
into the same directory.
nc4
files are duplicated with nc
file. And they are removed.
1 | urls_CMIP5_ESGP(file, type = "aria2c", ...)
|
file |
The path of sh file retrieved from ESGP wget. |
type |
Downloading mode, one of |
... |
other parameters to |
For rcp
scenario, date_start
later than 2101-01-01
will be ignored.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
dir_proj <- "D:/Documents/OneDrive - mail2.sysu.edu.cn/CMIP5/CMIP5_aria2c/"
load(paste0(dir_proj, "data/filelist_CMIP5.rda"))
outdir <- paste0(dir_proj, "test/url_ftp")
l_url.ceda <- urls_CMIP5_ceda(df, info, "hur", "Amon", outdir = outdir)
l_url.ceda <- urls_CMIP5_ceda(df, info, "hfls", "Amon", outdir = outdir)
indir <- "D:/Documents/OneDrive - mail2.sysu.edu.cn/CMIP5/CMIP5_aria2c/test/url_html"
files_sh <- dir(indir, "*.sh$", full.names = TRUE)
files_txt <- gsub(".sh", ".txt", files_sh)
l_url.esgp <- llply(files_sh, urls_CMIP5_ESGP)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.