selecting a discrete set of years from a timeseries

Aperta
#974 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
151
Fork
23
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NCAS-CMS/cf-python

Tutte le issue di NCAS-CMS/cf-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.