issues: 280899335
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
280899335 | MDU6SXNzdWUyODA4OTkzMzU= | 1773 | Use of Xarray instead of np.meshgrid | 11997114 | closed | 0 | 7 | 2017-12-11T05:37:02Z | 2017-12-14T01:58:50Z | 2017-12-14T01:58:50Z | NONE | Is there a way to have xarray do what This may also be an issue of the weather example just not working for me ``` import numpy as np DomainSpaceTimeSize=5 #using cartesian 4D SpaceTimeDensity=[100, 5] #100 divisions in space 5 in time xAxisDomian=np.linspace(-DomainSpaceTimeSize, +DomainSpaceTimeSize, SpaceTimeDensity[0]) yAxisDomian=np.linspace(-DomainSpaceTimeSize, +DomainSpaceTimeSize, SpaceTimeDensity[0]) zAxisDomian=np.linspace(-DomainSpaceTimeSize, +DomainSpaceTimeSize, SpaceTimeDensity[0]) tAxisDomian=np.linspace(0, +DomainSpaceTimeSize, SpaceTimeDensity[1]) DummyScalerFunction=lambda x, y, z, t: np.cos(1x+2y+3z-4t)
What I have to do with meshgrid
And this is why I want xarray do have the ability to do this, because if I want want to know what my scaler field values is at (x:0.0, y:1.0, z:0.0, t:3.0) well good luck trying to index the above.
But if this was in xarray I would be able to call up the value of this particular field at said location via something like |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1773/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |