svir package¶
Subpackages¶
- svir.calculations package
- svir.dialogs package
- Submodules
- svir.dialogs.attribute_selection_dialog module
- svir.dialogs.download_layer_dialog module
- svir.dialogs.projects_manager_dialog module
- svir.dialogs.select_input_layers_dialog module
- svir.dialogs.select_sv_variables_dialog module
- svir.dialogs.settings_dialog module
- svir.dialogs.transformation_dialog module
- svir.dialogs.upload_dialog module
- svir.dialogs.upload_settings_dialog module
- svir.dialogs.weight_data_dialog module
- Module contents
- svir.metadata package
- svir.test package
- Submodules
- svir.test.qgis_interface module
- svir.test.test_attribute_selection_dialog module
- svir.test.test_calculate_indices module
- svir.test.test_import_loss_from_csv module
- svir.test.test_init module
- svir.test.test_irmt module
- svir.test.test_loss_aggreagation module
- svir.test.test_metadata_utilities module
- svir.test.test_process_layer module
- svir.test.test_qgis_environment module
- svir.test.test_transformations module
- svir.test.test_translations module
- svir.test.utilities module
- Module contents
- svir.thread_worker package
- svir.ui package
- Submodules
- svir.ui.list_multiselect_widget module
- svir.ui.ui_attribute_selection module
- svir.ui.ui_calculate_iri module
- svir.ui.ui_download_layer module
- svir.ui.ui_projects_manager_dialog module
- svir.ui.ui_select_input_layers module
- svir.ui.ui_select_sv_variables module
- svir.ui.ui_settings module
- svir.ui.ui_transformation module
- svir.ui.ui_upload_metadata module
- svir.ui.ui_upload_settings module
- svir.ui.ui_weight_data module
- Module contents
- svir.utilities package
Submodules¶
svir.irmt module¶
-
class
svir.irmt.
Irmt
(iface)[source]¶ Add an item to the IRMT menu
Parameters: - icon_path – path of the icon associated to the action
- label – name of the action, visible to the user
- corresponding_method – method called when the action is triggered
-
aggregate_losses
()[source]¶ Open a modal dialog to select a layer containing zonal data for social vulnerability and a layer containing loss data points.
After data are loaded, calculate_zonal_stats() is automatically called, in order to aggregate loss points with respect to the same geometries defined for the socioeconomic data, and to compute zonal statistics (point count, loss sum, and average for each zone)
-
download_layer
()[source]¶ Open dialog to select one of the integrated risk projects available on the OQ-Platform and download it as a qgis project
-
import_sv_variables
()[source]¶ Open a modal dialog to select socioeconomic variables to download from the openquake platform
-
is_iri_computable
(proj_def)[source]¶ Check if is it possible to compute the integrated risk index, depending on the current project definition structure.
-
is_iri_renderable
(proj_def)[source]¶ Check if is it possible to render the integrated risk index, depending on the current project definition structure.
-
is_ri_computable
(proj_def)[source]¶ Check if is it possible to compute the risk index, depending on the current project definition structure.
-
is_ri_renderable
(proj_def)[source]¶ Check if is it possible to render the risk index, depending on the current project definition structure.
-
is_svi_computable
(proj_def)[source]¶ Check if is it possible to compute the social vulnerability index, depending on the current project definition structure.
-
is_svi_renderable
(proj_def)[source]¶ Check if is it possible to render the social vulnerability index, depending on the current project definition structure.
-
notify_added_attrs_and_discarded_feats
(added_attrs_ids, discarded_feats)[source]¶ Notify through the message bar that new attributes have been added to the layer and specify if missing or invalid values were found.
-
project_definitions_manager
()[source]¶ Open a dialog to manage one or multiple project definitions for the selected layer.
-
redraw_ir_layer
(data)[source]¶ If the user has explicitly selected a field to use for styling, use it, otherwise attempt to show the IRI, or the SVI, or the RI
-
show_settings
()[source]¶ Open a dialog to specify the connection settings used to interact with the OpenQuake Platform
-
transform_attributes
()[source]¶ A modal dialog is displayed to the user, enabling to transform one or more attributes of the active layer, using one of the available algorithms and variants