issue_comments: 771320891
This data as json
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/pull/4849#issuecomment-771320891 | https://api.github.com/repos/pydata/xarray/issues/4849 | 771320891 | MDEyOklzc3VlQ29tbWVudDc3MTMyMDg5MQ== | 39069044 | 2021-02-02T03:12:41Z | 2021-02-02T03:12:41Z | CONTRIBUTOR | Some more progress here.
The best way to specify the fitting coordinates is a bit tricky to figure out. My original use case for this was needing to fit a relationship between two time/lat/lon dataarrays with the fit done over all time. But probably a more common use would be to just fit a curve over one or two dimensions that already exist in your data. So it would be great to handle these possibilities seamlessly. What I've settled on for now is a Fit a 1d function in time, returns parameters with dims (x, y)da.curvefit(coords='time', ...) Fit a 2d function in space, returns parameters with dims (t)da.curvefit(coords=['x', 'y'], ...) Fit a 1d function with another 3d dataarray and aggregate over time, returns parameters with dims (x, y)da.curvefit(coords=da1, reduce_dim='time', ...)
Will eventually need to add tests and improve docs and examples. Tests especially I could use some help on. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
797302408 |