I want to fill some missing pixels (due to eliminating cloud pixels). I tried the linear interpolation as follows:
eopatch=EOPatch.load('./Newest/eopatch_13')
# TASK FOR LINEAR INTERPOLATION
# linear interpolation of full time-series and date resampling
resampled_range = ('2019-01-01', '2019-12-31', 15)
linear_interp = LinearInterpolation( #KrigingInterpolation
'BANDS', # name of field to interpolate
mask_feature=(FeatureType.MASK, 'VALID_DATA'), # mask to be used in interpolation
copy_features=[(FeatureType.MASK_TIMELESS, 'LULC'), (FeatureType.DATA, 'NDVI'), (FeatureType.DATA, 'NORM'), (FeatureType.DATA, 'NDWI'), (FeatureType.DATA_TIMELESS, 'ARGMAX_B4'), (FeatureType.DATA_TIMELESS, 'ARGMAX_NDVI'), (FeatureType.DATA_TIMELESS, 'ARGMAX_NDVI_SLOPE'),(FeatureType.DATA_TIMELESS, 'ARGMIN_NDVI'), (FeatureType.DATA_TIMELESS, 'ARGMIN_B4'), (FeatureType.DATA_TIMELESS, 'ARGMIN_NDVI_SLOPE')], # features to keep
resample_range=resampled_range, # set the resampling range
bounds_error=False # extrapolate with NaN's
)
linear_interp=linear_interp.execute(eopatch)
# TASK FOR SAVING TO OUTPUT
save3 = SaveTask('Interpolated_images/eopatch_13',overwrite_permission=OverwritePermission.OVERWRITE_PATCH)
linear_interp=save3.execute(linear_interp)
but I keep getting fully nan filled ‘BANDS’ as output