Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fmask 4 from command line #25

Open
Digdgeo opened this issue Apr 13, 2018 · 1 comment
Open

Fmask 4 from command line #25

Digdgeo opened this issue Apr 13, 2018 · 1 comment

Comments

@Digdgeo
Copy link

Digdgeo commented Apr 13, 2018

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.

@csarille
Copy link

csarille commented Jun 2, 2018

If you are on windows, you have to download the Fmask_4_0 file in the download page.
The cmd and the desktop versions are actually different software.

Then, add Fmask application folder to the system path as described in the documentation.
Once you have done it, from python just call os.system(path_to_the_imagery\Fmask_4_0)
I'm doing something similar. I'm not sure if it's going to work that way (writing the path to imagery in the fmask call).
If it doesn't work, you should change the system folder to the imagery folder with os.chdir(path) before running os.system('Fmask_4_0'), as described here

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants