urls.out <- CrawlModels(abbrev = "gfs_0p50", depth = 2)
levels <- c("2 m above ground", "800 mb")
variables <- c("TMP", "RH") #Temperature and relative humidity
grib.info <- GribGrab(urls.out[2], my.pred, levels, variables)
ReadGrib(grib.info[[1]]$file.name, variables = variables, levels = levels)
为什么ReadGrib
返回空列表?这个例子非常接近文档ReadGrib
的用法:https ://cran.r-project.org/web/packages/rNOMADS/rNOMADS.pdf