docs on specifying chunks in to_zarr encoding arg (#6542)
docs on specifying chunks in to_zarr encoding arg (#6542)

* docs on specifying chunks in to_zarr encoding arg

The structure of the to_zarr encoding argument is particular to xarray (at least, it's not immediately obvious from the zarr docs how this argument gets parsed) and it took a bit of trial and error to figure out out the rules. Hoping this docs block is helpful to others!

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* clean-up prior write

* accept changes from @andersy005

* drop cleanup in io.zarr.writing_chunks

Co-authored-by: Anderson Banihirwe <0c15f46690042c72a06612509744e671841db432@ualr.edu>

Co-authored-by: pre-commit-ci[bot] <3ea08453efb076ca910552532a53973a6527df40@users.noreply.github.com>
Co-authored-by: Maximilian Roos <bc0056b51d36c529d53aa84f5b8180878b74123e@users.noreply.github.com>
Co-authored-by: Anderson Banihirwe <0c15f46690042c72a06612509744e671841db432@ualr.edu>
Co-authored-by: Illviljan <ae7d6feeeeda16e2fe885966273a27a64c0c2b0a@users.noreply.github.com>
pydata/xarray,markelg/xray,jhamman/xarray,pydata/xarray,pydata/xarray,jhamman/xarray,markelg/xray,jhamman/xarray,markelg/xray