Skip to contents

Data derived from: https://gdo-dcp.ucllnl.org/downscaled_cmip_projections/

Usage

z_demo(format = "zarr")

Arguments

format

character "netcdf" or "zarr"

Value

netcdf sample data or unzips and returns a demo Zarr store directory

Examples

list.files(z_demo(format = "zarr"), recursive = TRUE, all.files = TRUE)
#>  [1] ".zattrs"           ".zgroup"           ".zmetadata"       
#>  [4] "latitude/.zarray"  "latitude/.zattrs"  "latitude/0"       
#>  [7] "longitude/.zarray" "longitude/.zattrs" "longitude/0"      
#> [10] "pr/.zarray"        "pr/.zattrs"        "pr/0.0.0"         
#> [13] "tas/.zarray"       "tas/.zattrs"       "tas/0.0.0"        
#> [16] "time/.zarray"      "time/.zattrs"      "time/0"           

basename(z_demo(format = "netcdf"))
#> [1] "bcsd_obs_1999.nc"