html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/7504#issuecomment-1419511942,https://api.github.com/repos/pydata/xarray/issues/7504,1419511942,IC_kwDOAMm_X85UnAiG,33153877,2023-02-06T17:57:56Z,2023-02-06T17:57:56Z,NONE,"Ok, great! Thanks for the tip.
On Mon, Feb 6, 2023 at 13:51, Spencer Clark ***@***.***> wrote:
> Indeed currently we do not support indexing a CFTimeIndex-backed array using a list of strings, but that's something I think we would be happy to change (e.g. we do accept a list of strings to interp for CFTimeIndex-backed arrays).
>
> For the time being you should be able to use cftime.DatetimeAllLeap values themselves:
>
> ds
>
> .
>
> sel
>
> (
>
> time
>
> =
>
> [
>
> cftime
>
> .
>
> DatetimeAllLeap
>
> (
>
> 2023
>
> ,
>
> 1
>
> ,
>
> 1
>
> ),
>
> cftime
>
> .
>
> DatetimeAllLeap
>
> (
>
> 2023
>
> ,
>
> 1
>
> ,
>
> 2
>
> )])
>
> —
> Reply to this email directly, [view it on GitHub](https://github.com/pydata/xarray/issues/7504#issuecomment-1419032191), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AH46GVN2PYM755NWNKTGLJTWWDXWNANCNFSM6AAAAAAUSSUZUI).
> You are receiving this because you authored the thread.Message ID: ***@***.***>","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1572434353