e-sensing / sits

Satellite image time series in R

Home Page:https://e-sensing.github.io/sitsbook/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve `sits_merge()` function to accept cubes with small differences in timelines

OldLipe opened this issue · comments

Describe the requested improvement
Allow regular cubes with differences in timelines less than time interval of each cube to be merged. When the user requests a sits_merge operation for two regular cubes with the same number of time intervals but with timelines that are not equal the system issues a warning and asks the user to provide a tolerance parameter which will be used in the merging operation. The temporal tolerance parameter should be less than the time interval between two images of both cubes. In this case the second cube will have its timeline and the image file names changed to match the timeline of the first cube.

Associated sits API function
sits_merge.raster_cube()

Additional context
Only works for regular cubes.