NAMcast_x_y_lev_time: Retrieve a variable based upon [x,y,lev,time] as a matrix

Description Usage Arguments Value

View source: R/NAMcast.R

Description

Retrieve a variable based upon [x,y,lev,time] as a matrix

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
NAMcast_x_y_lev_time(
  X,
  name,
  lev = 1000,
  time_index = 1,
  xy = list(start = c(1, 1), count = c(-1, -1)),
  n_tries = 3,
  sleep = 10,
  ...
)

Arguments

X

NAMcastRefClass object

name

character variable name

lev

numeric the level to extract

time_index

the default is to get just the first time index if there is

xy

a two element list providing start and count values

n_tries

numeric, the number attempts to make before failing

sleep

numeric, the number of seconds to wait after a fail

...

further arguments for ncvar_get

Value

numeric matrix or try-error


BigelowLab/namanl documentation built on Nov. 15, 2021, 3:11 p.m.