AI4S2S / s2spy

A high-level python package integrating expert knowledge and artificial intelligence to boost (sub) seasonal forecasting
https://ai4s2s.readthedocs.io/
Apache License 2.0
20 stars 7 forks source link

Align coords of trendline when passing data array #180

Open semvijverberg opened 7 months ago

semvijverberg commented 7 months ago

In previous implementation the input dataarray when calling get_trend_timeseries was always the same shape as the initial data to which the preprocessor was fitted to.

But it is likely that one wants to reconstruct the trendline timeseries only the data with the same shape (the same as input lat lon shape).

This is now fixed in sub-optimal solution. Preferably the linear trend line gets stored in the same manner as the polyfit coefficients.