Open juliettelavoie opened 9 months ago
Hum. haha what was I thinking ? Maybe its a typo and I actually meant calendar != 'default'
?
Because "default" is the name xclim (and only xclim) gives to the numpy datetime calendar.
On the other hand, if all datasets are using noleap
and you are not getting a noleap
calendar output, than that's an issue of catalog.to_dask
think. Strange!
calendar != 'default'
fixes my problem, I'll make the change in my partition PR.
Setup Information
Description
I am trying to use
create_ensemble_on
into_dataset
. I want to convert calendars tonoleap
. I get an error to use cftime, but that arg is not available throughto_dataset
. It is fixed tocalendar == "default"
. Why is cftime only acceptable with default ? Is there a problem with adding ause_cftime_for_calendar
arg toto_dataset
?https://github.com/Ouranosinc/xscen/blob/db7c976c4557c154a815cc2eae7f7d48490f6e3c/xscen/catalog.py#L493
Steps To Reproduce
gives:
Additional context
Note that technically these two sources are already noleap in cftime. When I use
to_dataset
without converting to a calendar, the time axis becomes a numpy datetime (but february 29th are still missing.) This seems like a weird behavior to me. It leads to issue, becausexr.infer_freq
doesn't work anymore (outputsNone
). This means that default xclim checks on indicators fail.Contribution