scikit-downscale icon indicating copy to clipboard operation
scikit-downscale copied to clipboard

add time index check and corresponding error handling to PointWiseDownscaler _da_to_df function

Open dgergel opened this issue 5 years ago • 1 comments

Currently the PointWiseDownscaler seems to fail if the model data time dimension does not have a pandas Datetime Index, and it fails with KeyError: 'time' even when the time attribute is present. This occurs in the _da_to_df function when transposing the data array and extracting the time index for the resulting dataframe.

dgergel avatar Aug 07 '20 23:08 dgergel

Thanks for the report. Can you provide an example of the dataset you were using that triggered this error?

jhamman avatar Aug 10 '20 23:08 jhamman