Closed mdsumner closed 5 years ago
This is actually hard because this is used in quite a lot of places.
Can shortcut now with a function like this scheme, and pick off the variables from top to bottom.
nc_axes(f) %>% dplyr::inner_join(nc_dims(f), c("dimension" = "id")) %>% dplyr::inner_join(nc_vars(f), c("variable" = "name")) %>% arrange(type == "NC_CHAR", -ndims)
Now trying nesting column "variables" within nc_grids
, so the output is normal but we can simply unnest to list every grid with every variable. It also works along with the change in priority-choice of the default variable/grid.
Looking good. b433604
From @mdsumner on February 13, 2019 7:29
nc_grids
should have distinct grids, andnc_vars
should list the grid it's inBoth should have
ndims
, nc_grids also nvarsFollowing on from https://github.com/hypertidy/tidync/issues/77 pain, this will help the default variable or grid selection:
Copied from original issue: hypertidy/tidync#78