ubarsc / python-fmask

A set of command line utilities and Python modules that implement the ‘fmask’ algorithm
https://www.pythonfmask.org
GNU General Public License v3.0
75 stars 21 forks source link

fmask installation and usage #27

Closed gillins closed 4 years ago

gillins commented 4 years ago

Original report by Chu Yaw Tai (Bitbucket: [Chuyaw Tai](https://bitbucket.org/Chuyaw Tai), ).


Hi, I have some issues for the FMask installation and usage in Window.
I did:
python setup.py build
python setup.py install

how to run and generate cloud.img?
fmask_sentinel2Stacked.py -o cloud.img --safedir <product>.SAFE

gillins commented 4 years ago

Original comment by Grigory Kiselev (Bitbucket: [Grigory Kiselev](https://bitbucket.org/Grigory Kiselev), ).


Hi, I have the same issue

gillins commented 4 years ago

Original comment by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).


I strongly recommend installing via conda-forge (see http://www.pythonfmask.org/en/latest/#downloads) as this ensures all required dependencies are available. It also provides a .exe wrapper for fmask_sentinel2Stacked.py so that works as expected under Windows.

Otherwise you will have to do something like:

> where fmask_sentinel2Stacked.py
> python c:\path\returned\above\fmask_sentinel2Stacked.py -o cloud.img --safedir <product>.SAFE

This all works much better under Linux and we don’t have much expertise for improving the Windows experience (apart from pointing people at Conda which does a much better job at creating a working install).

gillins commented 4 years ago

Original comment by Chu Yaw Tai (Bitbucket: [Chuyaw Tai](https://bitbucket.org/Chuyaw Tai), ).


Thanks, Sam. It is working perfectly.

python c:\path\returned\above\fmask_sentinel2Stacked.py-script.py -o cloud.img --safedir <product>.SAFE