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/4300#issuecomment-673593388,https://api.github.com/repos/pydata/xarray/issues/4300,673593388,MDEyOklzc3VlQ29tbWVudDY3MzU5MzM4OA==,56925856,2020-08-13T16:59:30Z,2020-08-13T16:59:30Z,CONTRIBUTOR,"cheers @TomNicholas , that's helpful. :) I've started messing with the idea in [this Gist](https://gist.github.com/AndrewWilliams3142/6ea8b4f4287e0d0290f52b2fcd50a662) if you want to have a look. It's pretty hacky at the moment, but might be helpful as a testbed. (And a way of getting my head around how `apply_ufunc` would work in this context)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,671609109 https://github.com/pydata/xarray/issues/4300#issuecomment-672084619,https://api.github.com/repos/pydata/xarray/issues/4300,672084619,MDEyOklzc3VlQ29tbWVudDY3MjA4NDYxOQ==,56925856,2020-08-11T16:49:00Z,2020-08-11T16:49:29Z,CONTRIBUTOR,"@TomNicholas I'm a bit confused about how the `fit_along` argument would work actually. If you had 2D data and wanted to fit a 1D function to one of the dimensions, wouldn't you have to either take a `mean` (or `slice`?) across the other dimension? Edit: It's been a hot day here, so apologies if this turns out to be a dumb q haha","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,671609109 https://github.com/pydata/xarray/issues/4300#issuecomment-671442450,https://api.github.com/repos/pydata/xarray/issues/4300,671442450,MDEyOklzc3VlQ29tbWVudDY3MTQ0MjQ1MA==,56925856,2020-08-10T16:01:06Z,2020-08-10T16:01:06Z,CONTRIBUTOR,"This sounds very cool! :) I'm not sure that I have much to add, but given @aulemahal 's good point about the complexity of rewriting `curve_fit` from scratch, it seems that maybe a good first step would just be to wrap the existing `scipy` functionality? Alternatively, given that `xr.apply_ufunc` can already do this (though it's probably complicated), perhaps it would be good to just have an example in the documentation? ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,671609109