The Semi-Automatic Classification Plugin requires Remotior Sensus, GDAL, NumPy and SciPy for most functionalities.
QGIS and the dependencies can be installed in a Conda environment using Mamba, which is a cross-platform package manager (if you don't know Mamba please read https://mamba.readthedocs.io).
First, install Miniforge to create a Conda environment. Once installed, open the terminal and run the following commands to create a new environment:
$ mamba create -c conda-forge --name environment python=3.10
Proceed ([y]/n)? y
$ mamba activate environment
Now install QGIS and the dependencies (it could take some time):
$ mamba install -c conda-forge qgis gdal remotior-sensus scikit-learn pytorch
Now, QGIS is installed. To launch it run in the terminal:
$ mamba activate environment
$ qgis
- Run QGIS;
- From the main menu, select
Plugins
>Manage and Install Plugins
;
- From the menu
All
, select the Semi-Automatic Classification Plugin and click the buttonInstall plugin
;
- The SCP should be automatically activated; however, be sure that the
Semi-Automatic Classification Plugin is checked in the menu
Installed
(the restart of QGIS could be necessary to complete the SCP installation);
Now, the Semi-Automatic Classification Plugin is installed and a dock and a toolbar should be added to QGIS. Also, a SCP menu is available in the Menu Bar of QGIS. It is possible to move the toolbar and the dock according to your needs, as in the following image.
The configuration of available RAM is recommended in order to reduce
the processing time.
From the :ref:`SCP_menu` select Settings > Processing
.
In the :ref:`settings_tab`, set the Available RAM (MB)
to a value that
should be half of the system RAM.
For instance, if your system has 2GB of RAM, set the value to 1024MB.
The dependency Remotior Sensus is frequently updated. The Semi-Automatic Classification Plugin can check automatically if a new version is available, and display a message in the :ref:`scp_dock`.
It is recommended to close QGIS and update Remotior Sensus using activating the conda environment and running the command:
$ conda update -c conda-forge remotior-sensus