Sam Levang

Results 34 comments of Sam Levang

Following up, a workaround that seems effective is this: ```python da2 * xr.ones_like(da1) ``` `ones_like` dispatches to `dask.array.full`, so we get appropriate chunk structure and a trivial root task (instead...

If `new_lat` is really 1-dimensional, meaning it doesn't vary by lat/lon point, why can't it be calculated or defined prior to running anything through `apply_ufunc`, and then passed through as...

If `indices` is non-deterministic for every time `_help_downsample` is called for new `data`, doesn't that mean you want a unique vector of indices at all non-core input dims? You're calling...

If the `time` vectors are all the same length, you can just store as a multi-dimensional coordinate: ```python ds = xr.DataArray( z, dims=["channel", "t_idx"], coords={"time": (("channel", "t_idx"), ts)} ) ```

> That might be just minor, but the PR links are pointing now to the xarray repo unrelated PR's. Not sure we can do anything about. Could these links (eg....

Yep, there is a `--replace-text` option which handles file contents in addition to `--replace-message`. https://htmlpreview.github.io/?https://github.com/newren/git-filter-repo/blob/docs/html/git-filter-repo.html

I can't think of a sensible way to keep these in sync. Archiving `datatree` as soon as the merge happens would force future development into `xarray`. The `datatree` repo would...

Awesome, thanks for the info! I imagine (1) would require reimplementing a good chunk of `xarray`'s `ZarrStore` and other backend objects here in a way that avoids as many of...

In the meantime, this is plenty fast for the small data case: ```python def to_zarr(dt, path): with TemporaryDirectory() as tmp_path: dt.to_zarr(tmp_path) fs.put(tmp_path, path, recursive=True) ``` Takes 1s on my example...

Yep, agree with all that. Fine to leave the default alone, and I was thinking around the same place in the preprocessors to check the rank. Just a question then...