Closed kuntalnr closed 3 years ago
Sorry for waiting.
The reason of this behaviour is that the default value of argument spatmeth
is "tiles"
, so values specified with arguments start_x
, end_x
, start_y
and end_y
(and, if not explicitly specified, their defaults) are used.
From the function documentation:
bbox numeric(4) Output bounding box (xmin, ymin, xmax, ymax) in out_proj coordinate system. Ignored if spatmeth == "tiles", Default: NULL
spatmeth character ["tiles" | "bbox" | "file"], indicates how the processing extent is retrieves. if "tiles", use the specified tiles (start_x....). If "file", retrieve extent from spatial file specifies in spafile. If "bbox", use the specified bounding box, Default: "tiles"
To use the china_bb
extent you have to:
spatmeth = "tiles"
;bbox = china_bb
to bbox = as.vector(china_bb)
Moreover, there was a bug (fixed with c22cc9672c8deb156a1a34d4165f4a1f80cda46a) affecting your case. You should also reinstall the package from GitHub:
remotes::install_github("ropensci/MODIStsp")
Issue description
Reproducible example
Expected and actual behavior
System information
Additional context
Scientific publication