Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to create time series raster layers with self-produced rasters #80

Open
myidream opened this issue Jan 3, 2018 · 1 comment
Open

Comments

@myidream
Copy link

myidream commented Jan 3, 2018

Hi guys! I am a new user of “bfastSpatial” R package to detect the breakpoint of vegetation gross primary productivity (GPP) of China during the past 15 years based the monthly spatial GPP data that we produced using VPM model with MODIS images. I meet the problem in the step to create time series GPP data using the timeStack() command. I am not sure whether the “bfastSpatial” package can be applied in raster layers that not from Landsat or MODIS. Any reponse would be helpful.

@loicdtx
Copy link
Owner

loicdtx commented Jan 3, 2018

That's right, timeStack() is specific to Landsat and MODIS land data so that it won't work on data that follow other naming conventions.
The good thing is that timeStack() is really just a thin wrapper around raster::stack() + raster::setZ(), so that it should be easy to adapt or bypass. See the code here.
The key in your case will be to get a vector of dates corresponding to each layer that will compose your stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants