Skip to content

setchunk

Synopsis

xcdo -setchunk[,**chunks] inputs output

Description

Set the chunk size of a dataset.

Use xarray's chunk method to set the chunk size of a dataset. Refer to xarray's documentation for more information: https://docs.xarray.dev/en/stable/generated/xarray.Dataset.chunk.html

Keyword Arguments

Name Type Required Description
chunks INT Optional Chunk size for each dimension, e.g. -setchunk,time=10,lon=20

Examples

xcdo -setchunk,time=10 infile.nc outfile.nc
xcdo -setchunk,time=10,lon=20,lat=10 infile.nc outfile.nc