svir package¶
Subpackages¶
- svir.calculations package
- svir.dialogs package
- Submodules
- svir.dialogs.attribute_selection_dialog module
- svir.dialogs.download_layer_dialog module
- svir.dialogs.drive_oq_engine_server_dialog module
- svir.dialogs.load_dmg_by_asset_as_layer_dialog module
- svir.dialogs.load_gmf_data_as_layer_dialog module
- svir.dialogs.load_hcurves_as_layer_dialog module
- svir.dialogs.load_hmaps_as_layer_dialog module
- svir.dialogs.load_losses_by_asset_as_layer_dialog module
- svir.dialogs.load_output_as_layer_dialog module
- svir.dialogs.load_ruptures_as_layer_dialog module
- svir.dialogs.load_uhs_as_layer_dialog module
- svir.dialogs.plot_from_npz_dialog module
- svir.dialogs.projects_manager_dialog module
- svir.dialogs.recovery_modeling_dialog module
- svir.dialogs.recovery_settings_dialog module
- svir.dialogs.select_input_layers_dialog module
- svir.dialogs.select_sv_variables_dialog module
- svir.dialogs.settings_dialog module
- svir.dialogs.show_console_dialog module
- svir.dialogs.show_full_report_dialog module
- svir.dialogs.show_params_dialog module
- svir.dialogs.transformation_dialog module
- svir.dialogs.upload_dialog module
- svir.dialogs.upload_settings_dialog module
- svir.dialogs.viewer_dock module
- svir.dialogs.weight_data_dialog module
- Module contents
- svir.metadata package
- svir.recovery_modeling package
- svir.test package
- Subpackages
- svir.test.integration package
- svir.test.unit package
- Submodules
- svir.test.unit.test_attribute_selection_dialog module
- svir.test.unit.test_calculate_indices module
- svir.test.unit.test_import_loss_from_csv module
- svir.test.unit.test_init module
- svir.test.unit.test_irmt module
- svir.test.unit.test_load_oq_engine_output_as_layer module
- svir.test.unit.test_loss_aggreagation module
- svir.test.unit.test_metadata_utilities module
- svir.test.unit.test_process_layer module
- svir.test.unit.test_qgis_environment module
- svir.test.unit.test_recovery_modeling module
- svir.test.unit.test_transformations module
- svir.test.unit.test_translations module
- Module contents
- Submodules
- svir.test.qgis_interface module
- svir.test.qgis_legend_interface module
- svir.test.utilities module
- Module contents
- Subpackages
- svir.thread_worker package
- svir.ui package
- svir.utilities package
Submodules¶
svir.irmt module¶
-
class
svir.irmt.
Irmt
(iface)[source]¶ Add an item to the IRMT menu and a corresponding toolbar icon
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