urls_CMIP5_ESGP: http urls of CMIP5 nc files from ESGP

Description Usage Arguments Details See Also Examples

Description

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.

Usage

1
urls_CMIP5_ESGP(file, type = "aria2c", ...)

Arguments

file

The path of sh file retrieved from ESGP wget.

type

Downloading mode, one of aria2c and wget.

...

other parameters to urls_filter()

Details

For rcp scenario, date_start later than 2101-01-01 will be ignored.

See Also

urls_CMIP5_ceda()

Examples

 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)

kongdd/CMIP5tools documentation built on Dec. 17, 2020, 11:03 a.m.