Replace end-of-interval default with start-of-period to match pandas as default
I maintainer di solito rispondono entro 11 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start with atlite's documented ERA5 time-series convention and trace the resampling entry points that produce its outputs. Compare their interval labels and closure with pandas' default resampling behavior. Done means the default convention matches pandas and the documented one-hour shift is eliminated when outputs are combined with ordinary pandas or xarray series.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version Checks (indicate both or one)
-
I have confirmed this bug exists on the lastest release of atlite.
-
I have confirmed this bug exists on the current
masterbranch of atlite.
Issue Description
atlite uses an end-of-interval convention for ERA5-derived time series: a value at 12:00 represents the averaging period from 11:00 to 12:00: https://atlite.readthedocs.io/en/master/conventions.html
This is opposite to the default convention used by pandas when resampling time series. For example:
s.resample("1h").mean()
uses label="left" and closed="left" by default, so the value labelled 12:00 corresponds to the interval
[12:00, 13:00)
whereas in atlite it corresponds to
(11:00, 12:00]
This difference can easily introduce an unnoticed one-hour shift when atlite output is combined with ordinary pandas/xarray time series, or data from similar data sources such as renewables ninja (see bottom of the page).
Expected Behavior
Matching pandas default behaviour would be safer for users and enable atlite to be combined more easily.
Installed Versions
0.6
- Lingua principale
- Python
- Stelle
- 409
- Fork
- 135
- Merge medio
- 11g 22h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PyPSA/atlite
-
Support dataset `Global climate and energy indicators from 1950 to present derived from reanalysis`Forse già presa @jome1 l’ha presa 28 giorni fa. Apertastatus: needs classification type: enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
PyPSA/atlite#531 · 3 commenti ·
I maintainer di solito rispondono entro 11 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
PyPSA/atlite#522 · 5 commenti ·
I maintainer di solito rispondono entro 11 giorni
-
type: enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 11 giorni
-
type: bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
PyPSA/atlite#515 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 11 giorni
-
type: bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 11 giorni
Tutte le issue di PyPSA/atlite
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bytedance/agentkit-samples#277 ·
-
ai-driven-fuzzing bug claude Minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 2 giorni
-
Edit: TVS Encarnacion [PY]Apertachannels:edit check:passed
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] The blue-green mitigation strategy lists catalog names and views before the source tablesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
aws-samples/sample-aws-genai-db-modernizer#2097 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno