pangeo-data/climpred

HindcastEnsemble.verify() fails when valid_time of different object time than time

zmli-666 opened this issue · 3 comments

QQ截图20220628164611
QQ截图20220628164631
climpred_example.zip
Hi, I have a problem with using the HindcastEnsemble.verify() , and i don't where is wrong. Attached are the data files and code. I hope you could tell where is wrong.Thanks!

Thanks for code and data. I am currently on vacation without a computer and will report back to you in august.

The problem might arise from valid_time being datetime and init and time being objects/cftime. Does valid_time already exist in the xr dataset before using climpred? If so, drop it please HindcastEnsemble(ds.drop("valid_time")).verify(...)

The problem might arise from valid_time being datetime and init and time being objects/cftime. Does valid_time already exist in the xr dataset before using climpred? If so, drop it please HindcastEnsemble(ds.drop("valid_time")).verify(...)

Thanks! The problem has been solved.