NAM218_x_y_something_time: Retrieve a variable based upon [x,y,something,time] as a...

Description Usage Arguments Value

View source: R/NAM218.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
NAM218_x_y_something_time(
  X,
  name,
  dimname = "isobaric",
  value = 1000,
  xy = list(start = c(1, 1), count = c(-1, -1)),
  time_index = 1,
  n_tries = 3,
  sleep = 10,
  ...
)

Arguments

X

NAM218RefClass object

name

character variable name

dimname

the dimension name (isobaric, isobaric1, "depth_below_surface", etc...)

value

numeric the value to retrieve (we take the closest match)

xy

a two element list providing start and count values

time_index

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

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.