id,node_id,number,title,user,state,locked,assignee,milestone,comments,created_at,updated_at,closed_at,author_association,active_lock_reason,draft,pull_request,body,reactions,performed_via_github_app,state_reason,repo,type 1149368305,I_kwDOAMm_X85Egffx,6301,"da.extent_slice(), get a sliceable dict for a DataArray.extents (aka bounding box)",1228240,open,0,,,0,2022-02-24T14:39:10Z,2022-02-24T14:39:10Z,,NONE,,,,"### Is your feature request related to a problem? small feature suggestion. not sure if this already exists. if not maybe you could use it. ### Describe the solution you'd like ``` def extent_slice(da): ''' return a `da.sel`-slicable dictionary of coords for the extents of da Example -------- big_da.sel(extent_slice(small_da)) ''' coords = da.coords return {k:slice(coords[k].min().data,coords[k].max().data) for k in coords} ``` useful in conjunction with `interp_like`, `interp`, and `binary operations`. ### Describe alternatives you've considered see above ### Additional context _No response_","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/6301/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,,13221727,issue