Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Different recognized coordinates when calling variable by standard name

Abierto
#357 13 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python
Área
data

Línea de trabajo

No file, test, or entry point is named. Start by reducing the two reported access expressions to a minimal dataset that reproduces the difference, then trace how cf-xarray resolves coordinates for a variable name versus its standard name. Done means both access paths consistently recognize the longitude coordinate, with a regression test covering the case.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

documentation

I know this isn't good form, but I am going to describe my problem to see if anyone has an idea of a direction to go, without a good example to start. I am using several libraries together and making an example case seems difficult.

Here is the base question though:
ds['zeta'].cf['longitude'] worked but ds.cf['sea_surface_height_above_mean_sea_level'].cf['longitude'] did not

in other words, when I used the variable name to access a variable in my dataset, cf-xarray knew the mapping for longitude. But, when I referred to the variable by its standard name that cf-xarray recognized, cf-xarray did not then know the mapping for longitude. This seems weird right? Any ideas of what could be wrong?

Lenguaje dominante
Python
Estrellas
181
Forks
51
Merge medio
6 h 39 min
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de xarray-contrib/cf-xarray

Todos los issues de xarray-contrib/cf-xarray

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.