R/GetVarLists4CMIP5.R

Defines functions GetVarLists4CMIP5

GetVarLists4CMIP5 <- function(cmip5dir, coln) {


  srchstr = "*.nc"
  flist = list.files(cmip5dir, pattern = glob2rx(srchstr), full.names = F)
  varnm = sapply(strsplit(flist, "_"), function(x) x[[coln]])
  varnm = unique(varnm)

  return(varnm)

}

Try the rSQM package in your browser

Any scripts or data that you put into this service are public.

rSQM documentation built on May 2, 2019, 4:14 a.m.