Giter Site home page Giter Site logo

fmask's People

Contributors

prs021 avatar tylere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fmask's Issues

Fmask Windows Executable

What steps will reproduce the problem?
1. Not intially running Windows command (cmd.exe) as an adminstrator

What is the expected output? What do you see instead?
Command window will state:
"Could not find version 7.17 of the MCR.
Attempting to load mclmcrrt7_17.dll.
Please install the correct version of the MCR.
Contact your vendor if you do not have an installer for the MCR."

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

Version 1, Fmask.exe

Please provide any additional information below.

Navigate to cmd.exe, typically loacted at C:\Windows\System32\cmd.exe.
Right-click on cmd.exe and choose "Run As Administrator"

Original issue reported on code.google.com by [email protected] on 14 Jun 2012 at 5:27

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

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 [email protected] on 25 Apr 2012 at 8:21

Attachments:

Invalid MEX-file

What steps will reproduce the problem?
1. unzipped the  Fmask_pkg.exe file
2. installed MCR.exe
3. placed Fmask.exe file in C:\Tools

What is the expected output? What do you see instead?
I expect Fmask to complete the process, but when it gets to the line "From Dn's 
to Toa ref & BT" I keep getting an error : invalid MEX-file and points me to 
error at line 119. (please see attachment)

What version of the product are you using? On what operating system?
I believe is the latest 3 3 0 22.5. I use Windows 7

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 19 Nov 2014 at 9:26

Attachments:

downloading stand alone fmask

would you please tell me how to download the windows executable which does not 
require matlab or R to run and can be run in command line. I did it once before 
but now no luck. The Fmask_pkg_exe can't be obtained from this link below:
FTP directory /geog-grad/zhuzhe/Fmask_Windows_exe/ at crsos.bu.edu
Thank you


Original issue reported on code.google.com by [email protected] on 6 Jul 2014 at 12:23

Fmask 4 from command line

Hi,

First of all, thanks a lot for this nice tool. I have a code implemented to process Landast scenes (https://github.com/LAST-EBD/Protocolo/blob/master/Protocolo.py -Line 184), in which one the first steps is to run Fmask. The process is done (in python) by calling os.system("pathtoFmask parameters"). But now, with the new version I am not able to run it. When I try to lunch the app from the Commnad Line the only thing I get is the new interface.

Can someone give me a clue about how to do something like os.system() with the new version?

Thanks and best regards.

TWO DIFFERENT RESULTS FOR 2 DIFFERENT SEASON DATA, LESS ACCURACY IN PRE MONSOON SEASON AS COMPARE TO MONSOON SEASON.

What steps will reproduce the problem?
1.
2.
3.

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


What version of the product are you using? On what operating system?
version 3.2 and windows 8 64 bit.

Please provide any additional information below.

Hello Sir,

I have used fmask for Landsat 8 OLI data and my study area is in Punjab, India. 
I have observed two different things in fmask results as my study include two 
season data, Pre Monsoon (May month) and Monsoon (August month). Both season 
data were covered with cloud and shadow and for May month (Pre monsoon season) 
data only 60 % accuracy reported, even cloud free pixels also mapped as cloud 
which include waterbodies, crop land and vegetation. But for august month 
(monsoon season) the accuracy were around 90%, means it worked correctly for 
this season. I don't know why it happened, is there any seasonal affect on 
cloud condition. How can I achieve more accuracy for May month data. I have 
used same command (default as suggested in tutor) for both season data to run 
fmask.
My other question is related to DN and TOA. Why it requires to convert DN to 
TOA for further data processing, what difference it make as compare to DN in 
results ?

Original issue reported on code.google.com by [email protected] on 5 Feb 2015 at 3:57

Fmask Windows version applied on Landsat 5 TM fails

What steps will reproduce the problem?
1. apply ledaps on the example data provided at 
http://fmask.googlecode.com/files/FTP%20directory%20-geog-grad-zhuzhe-Fmask_Wind
ows_exe-%20at%20crsos_bu_edu.htm
2. apply Fmask Windows version on the ledaps output

What is the expected output? What do you see instead?
expected: provided example output
instead:
Error using readtif>parse_args (line 109)
Unknown parameter 'b6clouds200.temp.file'.

Error in readtif (line 35)



Error in imread (line 435)



Error in nd2toar (line 49)



Error in plcloud_1_6sav (line 22)



Error in Fmask_1_6sav (line 7)



Error in autoFmask_1_6sav (line 56)



MATLAB:imagesci:readtif:unknownParam

What version of the product are you using? On what operating system? Version 1, 
Fmask.exe

Please provide any additional information below.
fmask runs without problems for ETM+ SLC-off as well as SLC-on but fails for 
Landsat 5 TM

Original issue reported on code.google.com by [email protected] on 16 Aug 2012 at 11:56

Fmask 3.2.1 windows version not accepting changes to default via commandline

What steps will reproduce the problem?
1. Attempting to run non defaults fmask 4 4 0 20.3

What is the expected output? What do you see instead?
Cloud/cloud shadow/snow dialated by 4/4/0
I see
Cloud/cloud shadow/snow dialated by 52/52/48

cloud prob threshold of 20.3
I see
Cloud prob threshold of 50.0
Cloud prob threshold of 48.0
Cloud prob threshold of 46.0
Cloud prob threshold of 51.0

It eventually errors and says Matrix dimensions must agree.

What version of the product are you using? On what operating system?
3.2.1 on Windows 7 Pro 64bit

Please provide any additional information below.
Fresh install of matlab 8.1.  I copied fmask.exe to the folder my landsat 
tar.gz is in.  I extracted the tar.gz to the folder and ran fmask.  Running 
with defaults works fine but attempting to change them via command line isn't 
working.

Original issue reported on code.google.com by [email protected] on 9 Mar 2015 at 8:55

Error at the first compile !

Errors showing : 

Read in header information and TIF images
??? Index exceeds matrix dimensions.

Error in ==> lndhdrread at 119
doy=str2double(char_doy(15:17));

Error in ==> nd2toar at 22
[Lmax,Lmin,Qcalmax,Qcalmin,ijdim_ref,ijdim_thm,reso_ref,...

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

Error in ==> Fmask_2_0sav at 7
[zen,azi,ptm,Temp,t_templ,t_temph,Water,Snow,plcloud,shadow,dim,ul,resolu,zc]=pl
cloud_2_0sav(im,cldprob);

Error in ==> autoFmask_2_0sav at 63
Fmask_2_0sav(norMTL.name,cldpix,sdpix,cldprob); % newest version
2.0sav




I have copied all the Fmask_2_0sav files to my Landsat Images folder and am 
trying to run the autoFmask_2_0sav. These are the errors I am encountering. Can 
any1 help me please ? 

Original issue reported on code.google.com by [email protected] on 11 Oct 2012 at 7:24

fmask stand alone for sentinel-2 data

As I understood, there is only a matlab version for sentinel-2 data cloud masking. The other versions show the "No L*MTL.txt" file error when startin on S-2 data.
Is there a windows stand-alone version for cloud masking S-2 data? Or do I have to compile the matlab code somehow?
Thanks

Using fmask with Landsat 8 scenes

Landsat 8 channels are slightly different than Landsat 7:
http://landsat.usgs.gov/L8_band_combos.php

Looks like you have to change fmask significally to make it work with Landsat 
8, will you support it?

Or maybe you will improve algorithm for even better results (2 new channels 
were added in Landsat 8).

Original issue reported on code.google.com by [email protected] on 28 Feb 2013 at 5:01

Typo in output ENVI header

Output header contains a typo "descirption":

ENVI
descirption = {Landsat Scientific Data}
...

Should be:
ENVI
description = {Landsat Scientific Data}
...


Original issue reported on code.google.com by [email protected] on 7 Aug 2014 at 12:01

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

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 [email protected] on 9 Jun 2012 at 12:39

Fmask stand alone Windows executable Fmask 1.6.3 version applied to ETM+ fails

Hi there, 

First of all tank you for providing the software. Let's see if I can get some 
help with my situation here! 

What steps will reproduce the problem?
1. Add .MTL and all bands files into directory
2. Run Fmask 1_6_3sav

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

expected: output mask
instead:

F:\FMASK-Program>Read in header information and TIF images 
Index exceeds matrix dimensions.

Error in lndhdrread <line 119>


Error in nd2toar <line 21>


Error in plcloud <line 22>


Error in Fmask_1_6sav <line 7>


Error in autoFmask_1_6sav <line 56>


MATLAB:badsubscript



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

stand alone Windows executable Fmask 1.6.3 version

Please provide any additional information below.

I tested on some Landsat 5 TM images and had fair results (for some reason it 
didn't recognise the small clouds and thin clouds) in relation to the results I 
saw in your paper!

I attached the .MTL of one image that I am working with!



Thank you so much for your attention!





Original issue reported on code.google.com by [email protected] on 18 Sep 2012 at 1:51

Attachments:

Using Fmask with Landsat8 and showed output by ENVI error

What steps will reproduce the problem?
1. the output inshow by ENVI
2.
3.

What is the expected output? What do you see instead?
when imshow the output by ENVI,the picture is black,have nothing.see attach file

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


Please provide any additional information below.



Original issue reported on code.google.com by [email protected] on 7 Jan 2015 at 3:14

Unrecognized Parameter Name

What steps will reproduce the problem?
1. cd to where landsat 8 files is located
2. Type C:\Tools\Fmask
3. Press Enter

What is the expected output? What do you see instead?
Expected outcome is an image I can use to mask clouds/shadows in landsat data.  
Instead I just get an error message that reads "Unrecognized parameter name."

What version of the product are you using? On what operating system?
3.2 version on Windows 7

Please provide any additional information below.
I'm very new to working with this program.  I've attached an image of the 
command prompt window, the error, and the properties of the B2 file.  I noticed 
that file was set to open in MS Excel so I changed it to Notepad like the other 
and still got the same error message.

Thank you!

Original issue reported on code.google.com by [email protected] on 28 Oct 2014 at 10:27

Attachments:

Landsat 8 error

What steps will reproduce the problem?
1. Executing fmask in cmd
2.
3.

What is the expected output? What do you see instead?
c:\lucene>cd c:\lucene\LO81830282013168LGN00

c:\lucene\LO81830282013168LGN00>c:\lucene\Fmask

c:\lucene\LO81830282013168LGN00>Fmask 3.2.1 beta version start ...
Cloud, cloud shadow, and snow detection for Landsat 8 images
Cloud/cloud shadow/snow dilated by 3/3/0 pixels (default)
Cloud probability threshold of 22.50% (default)
Read in header information & TIF images
Error using imread>parse_inputs (line 451)
Too few input arguments.

Error in imread (line 317)



Error in nd2toarbt (line 550)



Error in plcloud (line 35)



Error in Fmask (line 7)



Error in autoFmask (line 119)



MATLAB:imagesci:imread:inputParsing

What version of the product are you using? On what operating system?
Fmask 3.2.1 beta on Win7 x64

Please provide any additional information below.
This is the image that I am trying to process: LO81830282013168LGN00

Original issue reported on code.google.com by [email protected] on 29 May 2014 at 12:03

choose own Parameters

If I try to change the Parameters by myselfe, like it is described (I did: \Fmask\Fmask_3_2 5 5 1 25) the shell gives me back that it coud not be found or is misspelled...

Error in processing "Fmask.m" file

kindly help me in rectifying the following errors shown below.




>> autoFmask_2_0sav
Read in header information and TIF images
Error using fscanf
Invalid file identifier.  Use fopen to generate a valid file identifier.

Error in lndhdrread (line 28)
geo_char=fscanf(fid_in,'%c',inf);

Error in nd2toar (line 22)
[Lmax,Lmin,Qcalmax,Qcalmin,ijdim_ref,ijdim_thm,reso_ref,...

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

Error in Fmask_2_0sav (line 7)
[zen,azi,ptm,Temp,t_templ,t_temph,Water,Snow,plcloud,shadow,dim,ul,resolu,zc]=pl
cloud_2_0sav(im,cldprob);

Error in autoFmask_2_0sav (line 63)
Fmask_2_0sav(norMTL.name,cldpix,sdpix,cldprob); % newest version 2.0sav

>> 

Original issue reported on code.google.com by [email protected] on 6 May 2014 at 7:24

Fmask running error


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 [email protected] on 10 Dec 2012 at 6:21

Fmask 3.2.1 windows executable gives error if fmask.exe and landsat files located in different drives

What steps will reproduce the problem?
1. locate fmask.exe in drive C:\
2. locate landsat file in drive F:\
3. run command:
cd "F:\LC81500182013289LGN00" & "C:\fmask\Fmask"

Gives error:

Fmask 3.2.1 beta version start ...

No L*MTL.txt header in the current folder!

Error in <a href="matlab:helpUtils.errorDocCallback('autoFmask', 
'C:\Users\...~1\AppData\Local\Temp\...\mcrCache8.1\Fmask_0\Users\zhuzhe\Document
s\FmaskStandAloneWindows\autoFmask.m', 65)" 
style="font-weight:bold">autoFmask</a>

(<a href="matlab: 
opentoline('C:\Users\...~1\AppData\Local\Temp\...\mcrCache8.1\Fmask_0\Users\zhuz
he\Documents\FmaskStandAloneWindows\autoFmask.m',65,0)">line 65</a>)


Output argument "clr_pct" (and maybe others) not assigned during call to 
"C:\Users\...~1\AppData\Local\Temp\...\mcrCache8.1\Fmask_0\Users\zhuzhe\Document
s\FmaskStandAloneWindows\autoFmask.m>autoFmask".


MATLAB:unassignedOutputs

Original issue reported on code.google.com by [email protected] on 13 Feb 2014 at 3:41

Running fmask in a folder with other files including B1, ..., B7 in the filename

This issue is low priority since I already found a fix for it, but I felt it 
had to be brought to your attention. Thank you for releasing this software, btw.

What steps will reproduce the problem?
1. Run fmask in a folder containing original Landsat TIF files, plus other 
files with filenames containing the string 'BX', with X in {1, ..., 7} (these 
files can come from other processing software for example)

What is the expected output? What do you see instead?
The program should run correctly since all the files are there, but some extra 
files mess up the bandname retrieval routine in nd2toar.m. Instead we get : 
"Error using readtif>parse_args (line 110)
Unrecognized parameter name '......' " (<- name of the first file mistaken for 
the actual input file in Matlab dir command)
A quick fix tentative solution is provided at the end of this report, that will 
make the bandname retrieval a bit more robust. It could still fail if there 
would be other '*BX*.TIF' (X in {1,...,7}) files in the same directory.

What version of the product are you using? On what operating system?
autoFmask_2_1sav.m on Windows 7 64-bit, Matlab R2012b

Please provide any additional information below.
HOW TO FIX THIS ISSUE :
- Edit nd2toar.m
- In the first 60 lines, search and replace n_BX=dir('*BX*') with 
n_BX=dir('*BX*.TIF'), for X=1 to 7 (also n_B6=dir('*B6*1*'))

Original issue reported on code.google.com by [email protected] on 15 Jan 2013 at 2:48

Error Message using Fmask with small Sentinel-2 Tile

Hi all,

I'm having issues using fmask with a small Sentinel-2 Tile.
The Scene I'm using is S2A_OPER_PRD_MSIL1C_PDMC_20151207T203757_R108_V20151207T104805_20151207T104805.SAFE
and the Tile I'm experiencing issues with is S2A_OPER_MSI_L1C_TL_SGS__20151207T175140_A002393_T30RXN_N02.00

I get the following error
s2_error

Fmask worked fine for all the other tiles of this scene. But I wanted to use fmask in a batch process, which now doesn't work anymore because the Messagebox pops up and the user has to click the "OK" button.

Could you please fix this? Thank you!

Cheers
Carolin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.