Export to GitHub

fmask - issue #1

1.6.3 Stand Alone Version fails to run on Matlab 7.12.0 (R2011a)


Posted on Apr 25, 2012 by Happy Ox

Hi there,

I'm having some problems running your code. Eager to get this working.

What steps will reproduce the problem?

-attached MTL file of scene used (downloaded form GLCF) -ran code as outlined here: http://code.google.com/p/fmask/wiki/WikiFmask_1_6_3sav -appears to fail at the second stage of processing ("From DNs to TOA ref & BT")

What is the expected output? What do you see instead?

Output from Matlab console:

>> autoFmask_1_6sav Read in header information and TIF images From DNs to TOA ref & BT ??? Undefined function or method 'deg2rad' for input arguments of type 'double'.

Error in ==> nd2toar at 119 s_zen=deg2rad(zen);

Error in ==> plcloud_1_6sav at 22 [Temp,data,dim,ul,zen,azi,zc,satu_B1,satu_B2,satu_B3,resolu]=nd2toar(image);

Error in ==> Fmask_1_6sav at 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 at 56 Fmask_1_6sav(norMTL.name,cldpix,sdpix,cldprob); % newest version 1.6.3sav

What version of the product are you using? On what operating system?

1.6.3sav

Please provide any additional information below.

Attachments

Comment #1

Posted on Jun 14, 2012 by Swift Horse

I think you are missing some of the functions here, like deg2rad. You can download them in the "Functions" folder and put them in the Fmask folder that should solve your problem.

Status: New

Labels:
Type-Defect Priority-Medium