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

Why single .grd NDVI file from processLandsatBatch #91

Open
sak-geo opened this issue Jun 11, 2019 · 1 comment
Open

Why single .grd NDVI file from processLandsatBatch #91

sak-geo opened this issue Jun 11, 2019 · 1 comment

Comments

@sak-geo
Copy link

sak-geo commented Jun 11, 2019

Hi there, I am very new to programming and time series analysis. On a pilot basis, I am running processLandsatBatch for 8 Landsat7 images acquired over different years with the following code:

processLandsatBatch(x=dir, pattern = glob2rx('*.zip'), outdir = dirout, srdir = srdir, delete=TRUE, vi='ndvi', mask='pixel_qa', keep=0, overwrite=TRUE)

and, it returns with a single file: ndvi.NA.grd
If I try overwrite=FALSE it returns the following error:

Error in .startRasterWriting(out, filename, format = filetype, ...) :
Pilot/ndvi.NA.grd exists. use 'overwrite=TRUE' if you want to overwrite it

And even the ndvi produced has NA values! Can anybody tell me what's wrong here?

@sak-geo
Copy link
Author

sak-geo commented Jun 17, 2019

@loicdtx can you help, please.

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

1 participant