diku-dk / bfast

GPU Implementation for BFAST
GNU General Public License v3.0
37 stars 17 forks source link

import bug fix in the documentation #22

Closed 12rambau closed 3 years ago

12rambau commented 3 years ago

I tried to use the bfast documentation and it seems that is it sno longer up to date. To crop the data you suggested to use :

from bfast.utils import crop_data_dates
start_hist = datetime(2002, 1, 1)
start_monitor = datetime(2010, 1, 1)
end_monitor = datetime(2018, 1, 1)
data, dates = crop_data_dates(data_orig, dates, start_hist, end_monitor)
print("First date: {}".format(dates[0]))
print("Last date: {}".format(dates[-1]))
print("Shape of data array: {}".format(data.shape))

But utils is not part of bfast anymore. I created a PR to correct the documentation, feel free to accept it or change the __init__.pyof the bfast module to integrate utils in it.

mortvest commented 3 years ago

This has been fixed on develop branch. It is getting added to master soon

mortvest commented 3 years ago

fixed with 0.7