issues: 2004250796
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2004250796 | I_kwDOAMm_X853dnCs | 8473 | Regular (linspace) Coordinates/Index | 35689176 | open | 0 | 9 | 2023-11-21T13:08:08Z | 2024-04-18T22:11:39Z | NONE | Is your feature request related to a problem?Most of my dimension coordinates fall into three categories:
- Categorical coordinates
- Pandas multiindex
- Regular coordinates, that is of the form I feel the way the latter is currently handled in xarray is suboptimal (unless I'm misusing this great library) as it has the following drawbacks:
- Visually: It is not obvious that the coordinate is a linear space: when printing the dataset/array we see some of the values.
- Computation Usage: applying scipy functions that require a regular sampling (for example scipy spectrogram is very annoying as one has to extract the fs and check that the coordinate is indeed regularly sampled. I currently use Note: It is not obvious for me from the documentation whether this is more of a "coordinate" enhancement or an "index" enhancement (index being to my knowledge discussed only in this part of the documentation ). Describe the solution you'd likeA new type of index/coordinate where only the "start" and "fs" are stored. The _repr_inline may look like "RegularIndex(start, end, step=1/fs)".
Perhaps another more generic possibility would be a type of coordinate system that is expressed as a transform from Describe alternatives you've consideredI have tried writing an Index subclass but I struggle on the There may be many other problems as I have just quickly tried. Should this be a viable approach I may be open to writing a version myself and post it for review. However, I am relatively new to xarray and I would appreciate to first know if I am on the right track. Additional contextNo response |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/8473/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |