selecting a discrete set of years from a timeseries

Abierto
#974 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

Start by reading the subspace and year APIs and their tests to see how time selections are parsed and applied. Check whether cf.year accepts a list and how subspace handles the resulting selection. Done means selecting cf.year(vyears) returns the requested annual values in the expected order and existing time selection tests still pass.

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

Descripción

question

I have a annual timeseries tso and a list of years vyears from which I would like the values, for a statistical test. I can a list of these values with

[tso.subspace(T=cf.year(y)).data.array[0] for y in vyears]

but I would prefer something like

tso.subspace(T=cf.year(vyears)).data.array

which is more compact and seems more logical to me. Is there a way to do that?

Thanks, Jonathan

Lenguaje dominante
Python
Estrellas
151
Forks
23
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

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 NCAS-CMS/cf-python

Todos los issues de NCAS-CMS/cf-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.