Ouranosinc / figanos

Outils pour produire des graphiques informatifs sur les impacts des changements climatiques.
Apache License 2.0
1 stars 0 forks source link

Detect 'month' and 'season' for timeseries #201

Open RondeauG opened 6 months ago

RondeauG commented 6 months ago

Addressing a Problem?

A common type of graph is an annual cycle. If time is not in the dimensions, timeseries should try to detect if either month or season are there.

Potential Solution

No response

Additional context

No response

Contribution

aulemahal commented 6 months ago

I'd add dayofyear to the list!

EDIT : But also, is an annual cycle a timeseries ? The axis is not time.

RondeauG commented 6 months ago

But also, is an annual cycle a timeseries ? The axis is not time.

We could have a new function annual_cycle, maybe?

sarahclaude commented 6 months ago

But wouldn't the plotting function be the same for annual_cycle and timeseries, even if the names get confusing? If yes, maybe we could rename timeseries to curves?

aulemahal commented 6 months ago

I was simply raising a flag in case timeseries did things specific for a datetime x-axis. Even if it does, it might indeed be much easier to if-else around, rather than creating a whole new function.