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

Problem with ROI in XY coordinates in sits_regularize

gilbertocamara opened this issue · comments

Describe the bug
sits_regularize()does not currently work with ROI in XY coordinates

To Reproduce

tile_LLQ <- sits_cube(
        source = "MPC",
        collection = "SENTINEL-2-L2A",
        tiles = "20LLQ",
        bands = "B8A",
        start_date = "2021-06-01",
        end_date = "2021-10-01"
)
reg_LLQ <- sits_regularize(
        cube = tile_LLQ,
        period = "P16D",
        res = 20,
        output_dir = "~/tmp/20LLQ/",
        roi = c(xmin = 330000., xmax = 360000., ymin = 8920240., ymax = 8950240.)
)

Please allow ROI with XY coordinates to use the current EPSG of the cube as default.