Skip to content
Snippets Groups Projects
Commit a4e43462 authored by Christof Kaufmann's avatar Christof Kaufmann
Browse files

doc: Improve python installation instructions

parent 604f0ee6
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ For the documentation you need: ...@@ -34,7 +34,7 @@ For the documentation you need:
* LaTeX (currently used for formulas) * LaTeX (currently used for formulas)
* ghostscript (only on windows) * ghostscript (only on windows)
### Conda ### <a name="conda"></a>Conda
Independent of the platform, you can build and install imagefusion using conda-build. The dependencies are all available as conda packages on conda-forge and will be installed automatically. Independent of the platform, you can build and install imagefusion using conda-build. The dependencies are all available as conda packages on conda-forge and will be installed automatically.
...@@ -75,7 +75,7 @@ Or to reinstall: ...@@ -75,7 +75,7 @@ Or to reinstall:
Now everything is there; utilities like `starfm`, the library, a CMake file to import the library in a C++ project and, most importantly, the python interface. Try it! Let's import the python interface: Now everything is there; utilities like `starfm`, the library, a CMake file to import the library in a C++ project and, most importantly, the python interface. Try it! Let's import the python interface:
(imfu) $ cd ../examples # go to python/examples (imfu) $ cd ../examples # go to python/examples
(imfu) $ python starfm-example.py # or another example (imfu) $ python starfm-example.py # or execute another example
Or execute a binary utility: Or execute a binary utility:
...@@ -127,7 +127,7 @@ To build the documentation (open with `doc/doc.html` in the source directory, no ...@@ -127,7 +127,7 @@ To build the documentation (open with `doc/doc.html` in the source directory, no
#### Python interface #### Python interface
The `sudo make install` should also work, but with pip the requirements are easier to handle, because they are available as python packages. Assuming you have some kind of python 3 installed as well as pip: The `sudo make install` should already install the python interface in `/usr/local/lib/python3/dist-packages/imagefusion/`. With conda the requirements are easier to handle, because they are available as conda packages. For installing imagefusion with conda, see [conda build](#conda). You can also try pip:
cd imagefusion # make sure you are in the repository directory cd imagefusion # make sure you are in the repository directory
pip install . # or: pip3 if you use the pip version from the linux distribution pip install . # or: pip3 if you use the pip version from the linux distribution
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
First you need to install the python imagefusion module, so python can import it. In the root directory of this repository do: First you need to install the python imagefusion module, so python can import it. In the root directory of this repository do:
``` ```bash
pip install . # maybe use pip3 pip install . # maybe use pip3
#OR # OR:
cd python/conda.recipe cd python/conda.recipe
conda install conda-build conda install conda-build
conda build -c conda-forge . conda build -c conda-forge .
...@@ -14,13 +14,13 @@ conda activate imfu ...@@ -14,13 +14,13 @@ conda activate imfu
Install the prerequisites: Install the prerequisites:
``` ```bash
pip install pyment sphinx-rtd-theme autodocsumm # maybe pip3 pip install pyment sphinx-rtd-theme autodocsumm # maybe pip3
``` ```
Now, in `/python/doc/`, you can call Now go to `/python/doc/` and call
``` ```bash
make html make html
``` ```
......
...@@ -14,7 +14,7 @@ The files ...@@ -14,7 +14,7 @@ The files
1. sample_Landsat_t1 1. sample_Landsat_t1
2. sample_Landsat_t2 2. sample_Landsat_t2
3. sample_MODIS_t1 3. sample_MODIS_t1
4. sample_MODIS_t1 are smaple files provided with the STARFM C implementation 4. sample_MODIS_t1 are sample files provided with the STARFM C implementation
t1 and t2 corresponds to day 1 and 2. t1 and t2 corresponds to day 1 and 2.
The reflactance value for the circle in the center is the same in all files. The reflactance value for the circle in the center is the same in all files.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment