issues: 449840662
This data as json
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
449840662 | MDU6SXNzdWU0NDk4NDA2NjI= | 2996 | Checking non-dimensional coordinates for equality | 1828519 | open | 0 | 3 | 2019-05-29T14:24:41Z | 2021-03-02T05:08:32Z | CONTRIBUTOR | Code Sample, a copy-pastable example if possibleI'm working on a proof-of-concept for the I'm having trouble deciding what the best place is for this CRS information so that it benefits the user; ```python from pyproj import CRS import xarray as xr import dask.array as da crs1 = CRS.from_string('+proj=lcc +datum=WGS84 +lon_0=-95 +lat_0=25 +lat_1=25') crs2 = CRS.from_string('+proj=lcc +datum=WGS84 +lon_0=-95 +lat_0=35 +lat_1=35') a = xr.DataArray(da.zeros((5, 5), chunks=2), dims=('y', 'x'), coords={'y': da.arange(1, 6, chunks=3), 'x': da.arange(2, 7, chunks=3), 'crs': crs1, 'test': 1, 'test2': 2}) b = xr.DataArray(da.zeros((5, 5), chunks=2), dims=('y', 'x'), coords={'y': da.arange(1, 6, chunks=3), 'x': da.arange(2, 7, chunks=3), 'crs': crs2, 'test': 2, 'test2': 2}) a + b Results in:<xarray.DataArray 'zeros-e5723e7f9121b7ac546f61c19dabe786' (y: 5, x: 5)>dask.array<shape=(5, 5), dtype=float64, chunksize=(2, 2)>Coordinates:* y (y) int64 1 2 3 4 5* x (x) int64 2 3 4 5 6test2 int64 2``` In the above code I was hoping that because the Any ideas for how I might be able to accomplish something like this? I'm not an expert on xarray/pandas indexes, but could this be another possible solution? Edit: |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2996/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |