Open-EO / FuseTS

Time series Fusion toolbox integrated with openEO
https://open-eo.github.io/FuseTS/
Other
22 stars 3 forks source link

Fix Bug in Whittaker when specifying a custom prediction_period #86

Closed mlubej closed 1 year ago

mlubej commented 1 year ago

The issue was that the xarray after the apply_ufunc step did not have the time dimension/coordinates set up properly. When the output xarray time dimension was of the same shape, the mapping was correctly done automatically, but otherwise not, so I simply set the new coordinates to the output_dates, whichever they may be. Additionally I simplified the function a bit.

I tested it and it now seems to work correctly.

Closes #85