There may be more than one grid and one is always activated by default. A
grid may be activated by name in the form of 'D1,D0' where one or more
numbered dimensions indicates the grid. The grid definition names are printed
as part of the summary of in the tidync object and may be obtained directly
with hyper_grids()
on the tidync object.
Activation of a grid sets the context for downstream operations (slicing and
reading data) from NetCDF, and as there may be several grids in a single
source activation allows a different choice of available variables. By
default the largest grid is activated. Once activated, all downstream tasks
apply to the set of variables that exist on that grid.
If activate()
is called with a variable name, it puts the variable first.
The function active()
gets and sets the active grid. To restrict ultimate
read to particular variables use the select_var
argument to
hyper_filter()
, hyper_tibble()
and hyper_tbl_cube()
.
Scalar variables are not currently available to tidync, and it's not obvious
how activation would occur for scalars, but in future perhaps activate("S")
could be the right way forward.