CMIP5Files_info: summary CMIP5 files information

Description Usage Arguments Value Note See Also Examples

View source: R/CMIP5Files.R

Description

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
extract_ensemble(files)

extract_model(files)

CMIP5Files_info(files)

CMIP5Files_filter(
  files,
  duration = 200,
  period = NULL,
  check_dupli = TRUE,
  verbose = 1
)

CMIP5Files_summary(d)

Arguments

files

CMIP5 nc files, full name path.

duration

length of year.

period

starting and ending year, e.g. c(1850, 2005). If provided, duration will be overwritten. If duration and period are null at the same time, no filter applied.

check_dupli

Boolean. If true, duplicated date will be removed by check_dfile().

verbose
  • echo nc file missing info, if verbose >= 1

  • echo duplicated info, if verbose >= 2

d

An object returned by CMIP5Files_filter or CMIP5Files_info or a data.frame at least with the columns of 'model', 'year_start_adj', 'year_end', 'file'.

Value

d_files A data.table with colnames of 'Id', 'model', 'kind', 'start', 'end', 'year_start', 'year_start_adj', 'year_end', 'file'

Note

Only one scenario per time.

See Also

check_dfile(), rm_duplicate()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(CMIP5tools)
library(magrittr)
data(files_short)

ensemble <- extract_ensemble(files_short)
model <- extract_model(files_short)
CMIP5Files_info(files_short)

# filter CMIP5 files
CMIP5Files_filter(files_short, duration = 200)
# Get the summary infomation of CMIP5Files_filter or CMIP5Files_info
CMIP5Files_filter(files_short) %>% CMIP5Files_summary()

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