.. _masking_bands_tab: ****************************** Masking bands ****************************** .. contents:: :depth: 2 :local: .. |registry_save| image:: _static/registry_save.png :width: 20pt .. |project_save| image:: _static/project_save.png :width: 20pt .. |optional| image:: _static/optional.png :width: 20pt .. |input_list| image:: _static/input_list.jpg :width: 20pt .. |input_text| image:: _static/input_text.jpg :width: 20pt .. |input_date| image:: _static/input_date.jpg :width: 20pt .. |input_number| image:: _static/input_number.jpg :width: 20pt .. |input_table| image:: _static/input_table.jpg :width: 20pt .. |open_file| image:: _static/semiautomaticclassificationplugin_open_file.png :width: 20pt .. |new_file| image:: _static/semiautomaticclassificationplugin_new_file.png :width: 20pt .. |open_dir| image:: _static/semiautomaticclassificationplugin_open_dir.png :width: 20pt .. |remove| image:: _static/semiautomaticclassificationplugin_remove.png :width: 20pt .. |add| image:: _static/semiautomaticclassificationplugin_add.png :width: 20pt .. |reset| image:: _static/semiautomaticclassificationplugin_reset.png :width: 20pt .. |bandset_tool| image:: _static/semiautomaticclassificationplugin_bandset_tool.png :width: 20pt .. |download| image:: _static/semiautomaticclassificationplugin_download_arrow.png :width: 20pt .. |sign_plot| image:: _static/semiautomaticclassificationplugin_sign_tool.png :width: 20pt .. |tools| image:: _static/semiautomaticclassificationplugin_roi_tool.png :width: 20pt .. |preprocessing| image:: _static/semiautomaticclassificationplugin_class_tool.png :width: 20pt .. |band_processing| image:: _static/semiautomaticclassificationplugin_band_processing.png :width: 20pt .. |postprocessing| image:: _static/semiautomaticclassificationplugin_post_process.png :width: 20pt .. |bandcalc| image:: _static/semiautomaticclassificationplugin_bandcalc_tool.png :width: 20pt .. |settings| image:: _static/semiautomaticclassificationplugin_settings_tool.png :width: 20pt .. |script_tool| image:: _static/semiautomaticclassificationplugin_script.png :width: 20pt .. |save_roi| image:: _static/semiautomaticclassificationplugin_save_roi.png :width: 20pt .. |delete_signature| image:: _static/semiautomaticclassificationplugin_delete_signature.png :width: 20pt .. |accuracy_tool| image:: _static/semiautomaticclassificationplugin_accuracy_tool.png :width: 20pt .. |enter| image:: _static/semiautomaticclassificationplugin_enter.png :width: 20pt .. |zoom_to_ROI| image:: _static/semiautomaticclassificationplugin_zoom_to_ROI.png :width: 20pt .. |check| image:: _static/semiautomaticclassificationplugin_batch_check.png :width: 20pt .. |select_all| image:: _static/semiautomaticclassificationplugin_select_all.png :width: 20pt .. |docks| image:: _static/semiautomaticclassificationplugin_docks.png :width: 20pt .. |add_sign_tool| image:: _static/semiautomaticclassificationplugin_add_sign_tool.png :width: 20pt .. |scatter_plot| image:: _static/semiautomaticclassificationplugin_scatter_tool.png :width: 20pt .. |merge_sign| image:: _static/semiautomaticclassificationplugin_merge_sign_tool.png :width: 20pt .. |guide| image:: _static/guide.png :width: 20pt .. |help| image:: _static/help.png :width: 20pt .. |reload| image:: _static/semiautomaticclassificationplugin_reload.png :width: 20pt .. |checkbox| image:: _static/checkbox.png :width: 18pt .. |run| image:: _static/semiautomaticclassificationplugin_run.png :width: 24pt .. |radiobutton| image:: _static/radiobutton.png :width: 18pt .. |masking_bands_tool| image:: _static/semiautomaticclassificationplugin_cloud_masking_tool.png :width: 18pt .. figure:: _static/interface/masking_bands_tab.png :align: center :width: 100% :guilabel:`Masking bands` This tool allows for masking bands, based on the values of a raster mask, creating an output masked band for each band of the :ref:`band_set_tab`. ``NoData`` is set in all the bands of the :ref:`band_set_tab` for pixels corresponding to the mask. .. tip:: Information about APIs of this tool in Remotior Sensus at this `link `_ . .. _mask_of_bandsets: Mask of band set ^^^^^^^^^^^^^^^^^^^^^^ .. list-table:: :widths: auto :header-rows: 1 * - Tool symbol and name - Description * - :guilabel:`Select input band set` |input_number| - select the input :ref:`band_set_tab` to be masked * - :guilabel:`Select the classification` |input_list| - select a classification raster (already loaded in QGIS) which contains a mask class * - |reload| - refresh layer list * - :guilabel:`Mask class values` |input_text| - set the class values to be masked; class values must be separated by ``,`` and ``-`` can be used to define a range of values (e.g. ``1, 3-5, 8`` will select classes 1, 3, 4, 5, 8); if the text is red then the expression contains errors * - |checkbox| :guilabel:`Use buffer of pixel size` |input_number| - if checked, a buffer is created for masked area, corresponding to the defined number of pixels; this can be useful to dilate masked area * - :guilabel:`Output NoData value` |input_number| - set the value of ``NoData`` pixels corresponding to the mask * - :guilabel:`Output name prefix` |input_text| - set the prefix for output file names (default is ``mask_``) * - :guilabel:`Script` |script_tool| - add this function to the :ref:`script_tab` * - :guilabel:`RUN` |run| - run this function