ytwu-UCAS / fmask

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

Program stops at Read in TOA ref (plcloud_1.6.3sav) #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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]=pl
cloud_1_6sav(im,cldprob);

Error in autoFmask_1_6sav (line 56)
Fmask_1_6sav(norMTL.name,cldpix,sdpix,cldprob); % newest version 1.6.3sav

Original issue reported on code.google.com by SeGrif...@gmail.com on 9 Jun 2012 at 12:39

GoogleCodeExporter commented 8 years ago
Issue 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.

Original comment by SeGrif...@gmail.com on 9 Jun 2012 at 1:06

Attachments:

GoogleCodeExporter commented 8 years ago
thanks!

Original comment by zhu...@bu.edu on 14 Jun 2012 at 2:11