jeffreyevans/spatialEco

spatialEco time-series data

Opened this issue · 3 comments

Hi Jeffrey,

Currently, I am working on time-series data. I have created raster stack with LST as dependent variable (each band corresponds to acquisition date) and raster stack with 2 explanatory variables (NDVI and DEM saved as raster stack in list) for every date as well. Now, I am trying to use loop to downscale my time-series images.

However, after iteration of 75 layers (I have 225 dates) I get the error: ''Error in seq_len(p) : argument must be coercible to non-negative integer''. The problem is strange because when I try to downscale the image (as 76th layer) separately I don't have problem with downscaling.

I would be grateful for help.

Best,
Paulina

As an attachment I am sending my script. In every approach I am using loop to get raster stacks in list.
Thank you very much for help.

Best,
Paulina
SpatialEco.zip