NOTE: only functions on a root group thus far
Usage
inq_grp(z, group = "/")
# S3 method for character
inq_grp(z, group = "/")
# S3 method for NetCDF
inq_grp(z, group = "/")
# S3 method for ZarrGroup
inq_grp(z, group = "/")
# S3 method for `NULL`
inq_grp(z, group = "/")
Arguments
- z
an open ZarrGroup as returned by open_nz
- group
NOTUSED
Value
list similar to that returned by grp.inq.nc
Examples
z <- open_nz(z_demo())
inq_grp(z)
#> $grps
#> list()
#>
#> $name
#> [1] "/"
#>
#> $fullname
#> [1] "/"
#>
#> $dimids
#> [1] 0 1 2
#>
#> $varids
#> [1] 0 1 2 3 4
#>
#> $ngatts
#> [1] 30
#>
# equivalent data in NetCDF
if(requireNamespace("RNetCDF", quietly = TRUE)) {#'
inq_grp(z_demo(format = "netcdf"))
}
#> $self
#> [1] 65536
#> attr(,"handle_ptr")
#> <pointer: 0x00000285b8ef6350>
#> attr(,"class")
#> [1] "NetCDF"
#>
#> $grps
#> list()
#>
#> $name
#> [1] "/"
#>
#> $fullname
#> [1] "/"
#>
#> $dimids
#> [1] 0 1 2
#>
#> $unlimids
#> [1] 2
#>
#> $varids
#> [1] 0 1 2 3 4
#>
#> $typeids
#> integer(0)
#>
#> $ngatts
#> [1] 30
#>