html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/4412#issuecomment-1542465745,https://api.github.com/repos/pydata/xarray/issues/4412,1542465745,IC_kwDOAMm_X85b8CjR,2448579,2023-05-10T16:06:26Z,2023-05-10T16:06:54Z,MEMBER,"Related request for `to_zarr(..., encode_cf=False)`: https://github.com/pydata/xarray/issues/5405
This came up in the discussion today.
cc @tom-white @kmuehlbauer ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,696047530
https://github.com/pydata/xarray/issues/4412#issuecomment-689046158,https://api.github.com/repos/pydata/xarray/issues/4412,689046158,MDEyOklzc3VlQ29tbWVudDY4OTA0NjE1OA==,6130352,2020-09-08T18:06:23Z,2020-09-08T18:06:23Z,NONE,Ok thanks @dcherian! I'll try that (feel free to close this).,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,696047530
https://github.com/pydata/xarray/issues/4412#issuecomment-689034023,https://api.github.com/repos/pydata/xarray/issues/4412,689034023,MDEyOklzc3VlQ29tbWVudDY4OTAzNDAyMw==,2448579,2020-09-08T17:42:41Z,2020-09-08T17:42:41Z,MEMBER,"Not at the moment.
I think we should add an `xr.encode_cf` that wraps `conventions.cf_encoder` (this may have already come up in the ""flexible backends"" discussions). This would parallel `xr.decode_cf`
https://github.com/pydata/xarray/blob/66259d1853b85590bfbf6640fdfb868843812312/xarray/conventions.py#L740-L793
It'll also need to wrap this logic: https://github.com/pydata/xarray/blob/66259d1853b85590bfbf6640fdfb868843812312/xarray/backends/api.py#L1113-L1127
For simple use cases, you could write a small wrapper for `.cf_encoder` that takes datasets and returns datasets and it should work just fine (Look at `conventions.decode_cf`).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,696047530