Skip to content
Merged
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Start the EnMAP-Box

* Launch QGIS and click the |enmapbox| icon in the toolbar to open the EnMAP-Box. The EnMAP-Box GUI comprises a **Menu** and a **Toolbar**, panels for **Data Sources** and **Data Views**, and the **QGIS Processing Toolbox**, which includes the **EnMAP-Box Processing Algorithms**.

.. figure:: img/01_enmapbox_surface.png
.. figure:: img/speclib_6.1.1.png

The EnMAP-Box main GUI.

Expand All @@ -31,7 +31,7 @@ For this introduction the Example Data of the EnMAP-Box will be used.
to download the data.
* After clicking **yes** the example data will be saved into the plugin installation folder.

.. figure:: img/02_add_expldt.gif
.. figure:: img/speclib_6.1.2.gif

Loading the EnMAP-Box example data.

Expand All @@ -48,7 +48,7 @@ backend for a spectral library.

* Open the spectral library :file:`EnMAP Spectral Response Function (224 Bands)` from the Example Data, using drag and drop:

.. figure:: img/03_load_spec_lib.gif
.. figure:: img/speclib_6.1.3.gif

Opening a spectral library with EnMAP spectral response functions.

Expand All @@ -60,7 +60,7 @@ Basic Visualization Steps

* The spectral library viewer should look like this:

.. figure:: img/04_spec_lib_window_explained.png
.. figure:: img/speclib_6.1.4.png

Overview Spectral Library Viewer.

Expand All @@ -85,7 +85,7 @@ Basic Visualization Steps
* These are the tools you already know from the QGIS attribute table (`here is a link to the website <https://docs.qgis.org/3.34/en/docs/user_manual/working_with_vector/attribute_table.html>`_)
* Some functions of the toolbar are shown below. There are multiple possibilities, to organize and edit the different profiles in the **Attribute Table**:

.. figure:: img/07_functions_speclib_toolbar.gif
.. figure:: img/speclib_6.1.5.gif

Selecting spectral profiles from attribute table.

Expand Down Expand Up @@ -115,7 +115,7 @@ Let's open a spectral library that provides coordinates for each spectral profil
* Use the context menu **Open Spectral Library Viewer** to visualize the spectral profiles.
* Use the **Map View** context menu to add the speclib_potsdam vector layer

.. figure:: img/load_speclib_potsdam_with_map.gif
.. figure:: img/speclib_6.2.1.gif

Opening the speclib_potsdam.gpkg library in a Spectral Library View and a Map View.

Expand Down Expand Up @@ -143,7 +143,7 @@ In this introduction we like to collect additional profiles for the following cl

* In order to collect profiles from the EnMAP image only, select :file:`enmap_potsdam` as profile source .

.. figure:: img/spec_prof_to_enmap.gif
.. figure:: img/speclib_6.2.2.gif

Collecting spectral profiles from an EnMAP image.

Expand All @@ -152,15 +152,15 @@ In this introduction we like to collect additional profiles for the following cl

* To see the EnMAP pixel size underneath, open the Map View context menu, then click on **Crosshair**, **Pixel Grid** and select :file:`enmap_potsdam`.

.. figure:: img/crosshair.gif
.. figure:: img/speclib_6.2.3.gif

Showing underneath pixel borders.

* So far, collected profiles are stored temporarily only. We can call them *profile candidates*. By clicking on |plus_green_icon| you can add them to the spectral library.
* When you select a location, a profile candidate is added to the spectral library vector layer. However, this entry is temporary. If you select a new location without clicking the Add button |plus_green_icon|, the current candidate will be automatically deleted and replaced by the new selection. To permanently keep a profile in the library, you must click |plus_green_icon|.

* With |profile_add_auto| the new spectral profiles candidates are added automatically.

.. figure:: img/add_profiles_automatically.gif
.. figure:: img/speclib_6.2.4.gif

Automatic profile collection.

Expand All @@ -173,7 +173,7 @@ In this introduction we like to collect additional profiles for the following cl
* For a clearer organization you can add columns |mActionNewAttribute| to add information.
Insert a column name and select a type (e.g. integer or string).

.. figure:: img/add_profiles.gif
.. figure:: img/speclib_6.2.5.gif

Collecting and describing spectral profiles from image data.

Expand All @@ -184,7 +184,7 @@ Spectral Profile Source Panel
* If you select |select_location| and |profile| without having a Spectral Library View opened, the **Spectral Profiles Source** panel will open one automatically when you click on a pixel in the map for the first time.
* To open the **Spectral Profiles Source** panel manually, click on **View** in the menu, select **Panels**, and then choose **Spectral Profiles Source**.

.. figure:: img/spec_profiles_source_panel.png
.. figure:: img/speclib_6.2.6.png

The Spectral Profile Source panel (right) specifies how profiles are collected, described
and displayed when overlaid in a linked Spectral Library View.
Expand All @@ -193,16 +193,16 @@ Spectral Profile Source Panel

First, let's focus on the definition of how spectral profiles are collected:

.. image:: img/spec_prof_pan_prof.gif
.. image:: img/speclib_source.png

* **Profiles** specifies how the profiles are stored in the Profiles field in the spectral library attribute table.
* You can specify the raster source from which the profile is sampled. Choose :file:`enmap_potsdam`.

.. image:: img/spec_prof_pan_col.gif
.. image:: img/speclib_style.png

* **Style** lets you specify how the sampled profiles are displayed when overlaid in the Spectral Library view.

.. image:: img/spec_prof_pan_sampling.gif
.. image:: img/speclib_sampling.png

* **Sampling** can be used to define how the profiles are sampled around the mouse coordinate.

Expand All @@ -216,44 +216,44 @@ We like to generate a profile name automatically.
* With the **Expression Builder** you can create expressions that dynamically generate attributes.
* Write ``'' + format('Px %1,%2', @px_x, @px_y)`` to generate a string that includes the pixel position, as in ``Px 23, 24``.

.. image:: img/Expression_Builder.png
.. image:: img/speclib_profilesourceExpression_Builder.png


Changing Profile Styles
=======================

The *profile visualization settings* allow you to change profile color, line- and symbole styles.
The *profile visualization settings* allow you to change profile color, line and symbol styles.

* by default, *profiles in the spectral library* use the ``@symbol_color`` that is used in the map visualization.
* By default, *profiles in the spectral library* use the ``@symbol_color`` that is used in the map visualization.
* In that case you can use the layer legend to show or hide groups of profiles. Changing the layer rendering in the map will change the profile colors too.
* You can define your own colors and even use the expression builder to generate colors based profile attributes
* *temporarily profile candidates* use the style that is defined in the *Spectra Profile Source Panel*.
* *Temporarily profile candidates* use the style that is defined in the *Spectra Profile Source Panel*.

.. figure:: img/profile_vis_speclib_legend.gif
.. figure:: img/speclib_6.2.7.gif

Profile visualization

* Go to the **Layer Properties** of your spectral library in the **Data Views** panel. With **Symbology** you can set the colors.

.. figure:: img/colors_symbology.gif
.. figure:: img/speclib_6.2.8.gif

The vector layer symbology panel defines the feature symbols...

* Choose **Categorized**, for **Value**, select the column according to which the classes are to be differentiated. Click **Classify**.
* You can change the colors by double-clicking on the color you want to change.
* Click **OK**. Now your spectra have different colors and your graph is more clear.

.. figure:: img/graph_col.png
.. figure:: img/speclib_6.2.9.png

... whose colors can be used as profile color.

* Click the "+" button to create a new profile visualization.
This way you can differentiate profiles by other means than the vector layer map symbology.
* Create a group for *vegetation* that uses the filter expression `"name" = 'vegetation'`. Double click on entries in the *Value* column to edit the visualization name or define filter expressions.
* Create a group for *Other* profiles with filter expression `"name" != 'vegetation'`
* Style both groups differently, e.g. by showing none-vegetation in dotted lines
* Style both groups differently, e.g. by showing non-vegetation in dotted lines

.. figure:: img/profile_vis_groups.png
.. figure:: img/speclib_6.2.10.png

Using multiple visualization groups allows for fine-tuned profiles styles

Expand Down Expand Up @@ -299,18 +299,11 @@ Geopackage
we can add spectral profiles to.
* Click on |speclib_add| to open the **Import Spectral Profiles** window.

.. figure:: img/import_a_speclib.gif
.. figure:: img/speclib_6.4.1.gif

The dialog to import spectral profiles into a spectral library.

* Choose **Geopackage** and set the path to the downloaded ``speclib_potsdam.gpkg`` filename.
* The *Field Value Import* table specifies which attribute we like to import into our speclib.
* Use the *Copy missing source fields* dialog to create a new *notes* field in our in-memory speclib

.. figure:: img/import_gpkg.png

Import of profiles from a GeoPackage library.

* Click **OK**


Expand All @@ -327,7 +320,7 @@ ASD Field Spectrometer
* Click **OK**
* Select some of the new imported features in the attribute table and zoom to.

.. figure:: img/import_asd_files.gif
.. figure:: img/speclib_6.4.3.gif

Importing spectral profiles (White Reference + Target) from an ASD Field Spectrometer into an empty Spectral Library.

Expand All @@ -349,7 +342,7 @@ Raster Layer
* To import the columns of your choice, click on |mSourceFields| and select the columns.
* Click **OK**

.. figure:: img/import_rasterprofiles.gif
.. figure:: img/speclib_6.4.4.gif

Importing spectral profiles from a raster layer and a vector layer that specifies the profile locations.

Expand Down Expand Up @@ -405,7 +398,7 @@ GeoPackage / GeoJSON

* Click on the |speclib_save| symbol. The **Export Spectral Library** window will open.

.. figure:: img/08_export_speclib_gpkg.png
.. figure:: img/speclib_6.5.1.png

Dialog to export spectral profiles into a new GeoPackage file.

Expand All @@ -419,23 +412,36 @@ GeoPackage / GeoJSON
ENVI Spectral Library
=====================

* Now export the spectral library |speclib_save| a *ENVI Spectral Library* ``*.sli``.
* Now export the spectral library |speclib_save| as a *ENVI Spectral Library* ``*.sli``.
Choose a field from which to export the profiles and a field that contains the profile names.


.. figure:: img/exported_gpkg_qml.png
.. figure:: img/speclib_6.5.2.gif

Dialog to export spectral profiles as ENVI Spectral Library.
Export spectral profiles as ENVI Spectral Library.

* The new ENVI Spectral Library (``*.sli``) is accompanied by a ``.csv`` file that lists additional values from, like the point coordinates in WKT notation.

.. image:: img/exported_envi_files.png
.. image:: img/speclib_envi.png

.. note::

Our spectral library could contain profiles from different sensors in the same field, but
the ENVI spectral library format does not allow to save profiles with a differing number of bands. In that case the EnMAP-Box will create multiple ``*.sli`` file, one for each set of profiles that are similar in the number of bands and wavelengths.

EcoSIS Spectral Library
=======================

* Now export the spectral library |speclib_save| as a *EcoSIS Spectral Library* ``*.csv``.
Choose a field from which to export the profiles and for names you can choose the field that contains names or you can also use a profile name expression to generate names.


.. figure:: img/speclib_6.5.3.gif

Export spectral profiles as EcoSIS Spectral Library.

.. image:: img/speclib_ecosis.png


.. AUTOGENERATED SUBSTITUTIONS - DO NOT EDIT PAST THIS LINE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Tile EnMAP L2A product into given tiling scheme.

:guilabel:`Detector overlap region` [enum]
Different options for handling the detector overlap region from 900 to 1000 nanometers. For the Moving average filter, a kernel size of 3 is used.
Default: *4*
Default: *3*

:guilabel:`Output basename` [string]
`Output <https://enmap-box.readthedocs.io/en/latest/general/glossary.html#term-output>`_ basename. If not specified, the original basename is used.
Expand Down Expand Up @@ -106,14 +106,13 @@ Tile EnMAP L2A product into given tiling scheme.
- field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
- expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
detectorOverlap: Detector overlap region
Default value: 4
Default value: 3
Argument type: enum
Available values:
- 0: Order by detector (VNIR, SWIR)
- 1: Order by wavelength (default order)
- 2: Moving average filter
- 3: VNIR only
- 4: SWIR only
- 2: VNIR only
- 3: SWIR only
Acceptable values:
- Number of selected option, e.g. '1'
- Comma separated list of options, e.g. '1,3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,17 @@ Usage:

**Parameters**

:guilabel:`Metadata file` [file]
The metadata XML file associated with the product.
:guilabel:`Metadata file or ZIP file` [file]
The metadata XML file or the ZIP file associated with the product.
Instead of executing this algorithm, you may drag&drop the metadata XML file directly from your system file browser a\) onto the EnMAP-Box map view area, or b\) onto the Sensor Product Import panel.

:guilabel:`Set bad bands` [boolean]
Whether to mark no data `bands <https://enmap-box.readthedocs.io/en/latest/general/glossary.html#term-band>`_ as `bad bands <https://enmap-box.readthedocs.io/en/latest/general/glossary.html#term-bad-band>`_.
Default: *True*

:guilabel:`Exclude bad bands` [boolean]
Whether to exclude `bands <https://enmap-box.readthedocs.io/en/latest/general/glossary.html#term-band>`_.
:guilabel:`Exclude no data bands` [boolean]
Whether to exclude no data `bands <https://enmap-box.readthedocs.io/en/latest/general/glossary.html#term-band>`_.
Default: *True*

:guilabel:`Detector overlap region` [enum]
Different options for handling the detector overlap region from 900 to 1000 nanometers. For the Moving average filter, a kernel size of 3 is used.
Default: *4*
Default: *3*

**Outputs**

Expand All @@ -70,19 +66,11 @@ Usage:
Arguments
----------------

file: Metadata file
file: Metadata file or ZIP file
Argument type: file
Acceptable values:
- Path to a file
setBadBands: Set bad bands (optional)
Default value: true
Argument type: boolean
Acceptable values:
- 1 for true/yes
- 0 for false/no
- field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
- expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
excludeBadBands: Exclude bad bands (optional)
excludeNoDataBands: Exclude no data bands (optional)
Default value: true
Argument type: boolean
Acceptable values:
Expand All @@ -91,14 +79,13 @@ Usage:
- field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
- expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
detectorOverlap: Detector overlap region
Default value: 4
Default value: 3
Argument type: enum
Available values:
- 0: Order by detector (VNIR, SWIR)
- 1: Order by wavelength (default order)
- 2: Moving average filter
- 3: VNIR only
- 4: SWIR only
- 2: VNIR only
- 3: SWIR only
Acceptable values:
- Number of selected option, e.g. '1'
- Comma separated list of options, e.g. '1,3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Import Sentinel-2 L2A product
..
## AUTOGENERATED DESCRIPTION START

Prepare a `spectral raster layer <https://enmap-box.readthedocs.io/en/latest/general/glossary.html#term-spectral-raster-layer>`_ from the given product. `Wavelength <https://enmap-box.readthedocs.io/en/latest/general/glossary.html#term-wavelength>`_ information is set and data is scaled into the 0 to 10000 range.
Prepare a `spectral raster layer <https://enmap-box.readthedocs.io/en/latest/general/glossary.html#term-spectral-raster-layer>`_ from the given product. `Wavelength <https://enmap-box.readthedocs.io/en/latest/general/glossary.html#term-wavelength>`_ information is set and data is scaled into the 0 to 1 range.

..
## AUTOGENERATED DESCRIPTION END
Expand All @@ -35,8 +35,8 @@ Usage:

**Parameters**

:guilabel:`Metadata file` [file]
The MTD_MSIL2A.xml metadata file associated with the product.
:guilabel:`Metadata file or ZIP file` [file]
The MTD_MSIL2A.xml metadata file or the ZIP file associated with the product.
Instead of executing this algorithm, you may drag&drop the metadata file directly from your system file browser a\) onto the EnMAP-Box map view area, or b\) onto the Sensor Product Import panel.

:guilabel:`Band list` [enum]
Expand All @@ -62,7 +62,7 @@ Usage:
Arguments
----------------

file: Metadata file
file: Metadata file or ZIP file
Argument type: file
Acceptable values:
- Path to a file
Expand Down
Loading