What steps will reproduce the problem?
Stand-alone version. Have not tried it with LEDAPS-derived TOA products
What is the expected output? What do you see instead?
Program stops. Missing functions added to Matlab but lutmajority variable undefined.
What version of the product are you using? On what operating system?
Matlab 2012a, autoFmask_1_6sav, Win7 64-bit
Please provide any additional information below.
>> autoFmask_1_6sav Read in header information and TIF images From DNs to TOA ref & BT Read in TOA ref (plcloud_1.6.3sav) Warning: Function IPTCHECKINPUT will be removed in the future. Use VALIDATEATTRIBUTES instead. Undefined function or variable 'lutmajority'.
Error in bwmorph>majority (line 356) lut = lutmajority;
Error in bwmorph (line 173) [c,lut] = feval(fcn, c);
Error in plcloud_1_6sav (line 163) Cloud=bwmorph(Cloud,'majority');% exclude <5/9
Error in Fmask_1_6sav (line 7) [zen,azi,ptm,Temp,t_templ,t_temph,Water,Snow,plcloud,shadow,dim,ul,resolu,zc]=plcloud_1_6sav(im,cldprob);
Error in autoFmask_1_6sav (line 56) Fmask_1_6sav(norMTL.name,cldpix,sdpix,cldprob); % newest version 1.6.3sav
Comment #1
Posted on Jun 9, 2012 by Happy DogIssue solved. The function lutmajority.m was in a private directory and was not being read. Copied it into the fmask function folder and everything worked.
- lutmajority.m 3.41KB
Comment #2
Posted on Jun 14, 2012 by Swift Horsethanks!
Status: New
Labels:
Type-Defect
Priority-Medium