question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Terminology for the various coordinates

See original GitHub issue

Picking up a thread about the repr (https://github.com/pydata/xarray/issues/1199#issuecomment-272824929), I think it would be good to give a name to the two different types of coordinates in xarray.

Currently the doc says:

One dimensional coordinates with a name equal to their sole dimension (marked by * when printing a dataset or data array) take on a special meaning in xarray. They are used for label based indexing and alignment, like the index found on a pandas DataFrame or Series. Indeed, these “dimension” coordinates use a pandas.Index internally to store their values.

Other than for indexing, xarray does not make any direct use of the values associated with coordinates. Coordinates with names not matching a dimension are not used for alignment or indexing, nor are they required to match when doing arithmetic (see Coordinates).

The use of quotation marks in “dimension” coordinates makes the term imprecise. Should we simply call the former dimension coordinates and the latter optional coordinates?

This would also help to uniformize error reporting (e.g. https://github.com/pydata/xarray/pull/1291#discussion_r104261803)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rabernatcommented, Mar 6, 2017

I don’t feel very strongly about this…just pointing out that CF conventions do define terminology relevant to this discussion.

I’m fine with departing from CF convention terminology where we think it is unnecessarily confusing. But we should try to explain how and why we depart in the docs. @shoyer’s comment above would in fact be a useful addition to the docs.

0reactions
shoyercommented, Mar 6, 2017

I agree that “auxiliary coordinate” is a better name, but I think “non-dimension coordinate” is clearer for the rare cases where we want to refer to these coordinates, given that we don’t have any name for these coordinates in the xarray data model itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Coordinate system - Wikipedia
In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine the position of the...
Read more >
Coordinate Definitions for Land Surveyors - Learn CST
Geocentric (or terrestrial) coordinates can be either Cartesian (x, y, z) or spherical (latitude, longitude, and radial distance); geocentric coordinate system ...
Read more >
Coordinates Definition (Illustrated Mathematics Dictionary)
A set of values that show an exact position. On graphs it is usually a pair of numbers: the first number shows the...
Read more >
coordinate term - Wiktionary
(semantics) A term (word or noun phrase) that shares a hypernym (or hypernymic noun phrase) with another. The words oak, maple, spruce, and...
Read more >
What is a Coordinate System - Caliper Corporation
However, there are hundreds of other coordinate systems used in different places around the world to identify locations on the earth. All of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found