wrf_get: Access the "Historical and Projected Dynamically Downscaled...

Description Usage Arguments Examples

View source: R/wrf_get.R

Description

Access the "Historical and Projected Dynamically Downscaled Climate Data for the State of Alaska and surrounding regions" datasets produced by SNAP

Usage

1
2
wrf_get(nc_fns, coords, shift = NULL, rc = FALSE, use_par = FALSE,
  cores = NULL)

Arguments

nc_fns

A netcdf file name (path) containing the downscaled data, or vector of such filenames

coords

A two-variable data.frame of WGS84 coordinates (columns lon, lat)

shift

A vector of horizontal (1st element) and vertical (2nd element) grid cell positions to shift before querying WRF output

rc

A logical arg indicating whether supplied coords are row/column values

use_par

Logical indicating parallel::mclapply should be used internally

cores

Number of cores ot use if use_par = TRUE

Examples

1
2
3
4
5
6
#
# coordinates for Nome, AK
#
nome <- ak_coords[1, ]
fn <- "t2min_daily_wrf_GFDL-CM3_historical_1979.nc"
wrf_get(fn, "t2min", nome)

kmeanskyle/snaptools documentation built on Dec. 27, 2019, 2:24 a.m.