lvhengani / fmask

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

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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]=pl
cloud_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.

Original issue reported on code.google.com by dennis.d...@glel.carleton.ca on 25 Apr 2012 at 8:21

Attachments:

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

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