Inquire Zarr Store
Usage
inq_nz_source(z)
# S3 method for character
inq_nz_source(z)
# S3 method for NetCDF
inq_nz_source(z)
# S3 method for `NULL`
inq_nz_source(z)
# S3 method for ZarrGroup
inq_nz_source(z)
Arguments
- z
an open ZarrGroup as returned by open_nz
Value
list similar to that returned by file.inq.nc
Examples
z <- open_nz(z_demo())
inq_nz_source(z)
#> $ndims
#> [1] 3
#>
#> $nvars
#> [1] 5
#>
#> $ngatts
#> [1] 30
#>
#> $format
#> [1] "DirectoryStore"
#>
# equivalent data in NetCDF
if(requireNamespace("RNetCDF", quietly = TRUE)) {
nc <- z_demo(format = "netcdf")
(inq_nz_source(nc))
}
#> $ndims
#> [1] 3
#>
#> $nvars
#> [1] 5
#>
#> $ngatts
#> [1] 30
#>
#> $unlimdimid
#> [1] 2
#>
#> $format
#> [1] "classic"
#>
#> $libvers
#> [1] "4.9.2 of Mar 7 2024 22:39:28 $"
#>