lvhengani / fmask

Automatically exported from code.google.com/p/fmask
0 stars 0 forks source link

Fmask running error #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

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. 

Original issue reported on code.google.com by upim...@gmail.com on 10 Dec 2012 at 6:21

GoogleCodeExporter commented 9 years ago
The 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.

Original comment by zhu...@bu.edu on 13 Dec 2012 at 6:12

GoogleCodeExporter commented 9 years ago
Thank you for reply
the windows stand lone version 2.1 works fine.
Is there any option we can use for batch processing ?

Original comment by upim...@gmail.com on 14 Dec 2012 at 7:15

GoogleCodeExporter commented 9 years ago
Actually, you can code it in cshell or Matlab M-file for batch processing.

Original comment by zhu...@bu.edu on 25 Dec 2012 at 3:51