My name is Uday and I would like to use fmask for Landsat 5 data. I am using your Fmask R script for automated cloud detection and I am getting some error but I do not know how to fix it. I can run code until # For each full image, subset and save it, if(length(dir (DATA_DIR_IMAGE_SUB))==0){ for(i in 1:length (DATA_PATH_RAW)){ L7CLIP(DATA_PATH_RAW_FULL[i],DATA_PATH_RAW[i],BBOX.VAL) print (i) } }
but at this point I get an error
{Error in function (classes, fdef, mtable) : unable to find an inherited method for function "extent", for signature "NULL" In addition: Warning message: In intersect(extent(x), extent(y)) : Objects do not overlap }
DATA_PATH_RAW_FULL[1] is Band 1 DATA_PATH_RAW[1] is no band BBOX.VAL get the dimensions
I think there is some issues with selecting extent , my study is in Central part of Thailand. So could somebody please tell me how to fix this problem.
I am using 120424_run_functions.r script on windows 7 professional with 8 GB RAM.
Comment #1
Posted on Dec 13, 2012 by Swift HorseThe R script is provided from colleagues from Australia and I think that version is already out-of-dated and they are updating the new version in the near feature. Try the Matlab 2.1 version or windows stand lone 2.1 version.
Comment #2
Posted on Dec 14, 2012 by Helpful ElephantThank you for reply the windows stand lone version 2.1 works fine. Is there any option we can use for batch processing ?
Comment #3
Posted on Dec 25, 2012 by Swift HorseActually, you can code it in cshell or Matlab M-file for batch processing.
Status: New
Labels:
Type-Defect
Priority-Medium