Exemple #1
0
    def displayRecurrence(self):
        """Update recurrence FMD display for one selected fault zone
        in fault zone layer."""

        if not utils.check_only_one_feature_selected(self.fault_source_layer):
            return

        selected_feature = self.fault_source_layer.selectedFeatures()[0]
        
        self.feature_data_fault_source['recurrence_fig'] = fmd.plotRecurrence(
            self, selected_feature, 
            self.feature_data_fault_source)
Exemple #2
0
    def computeASZ(self):
        """Compute attributes for selected feature in ASZ layer. Only one
        feature can be selected."""

        if not utils.check_only_one_feature_selected(self.area_source_layer):
            return

        (mindepth, maxdepth) = eqcatalog.getMinMaxDepth(self)
        
        engine.computeASZ(self.area_source_layer, self.catalog, mindepth, 
            maxdepth, ui_mode=True)
            
        self.showASZ()
Exemple #3
0
    def computeFBZ(self):
        """Compute attributes for selected feature in FBZ layer. Only one
        feature can be selected."""

        if not utils.check_only_one_feature_selected(
            self.fault_background_layer):
            return

        (mindepth, maxdepth) = eqcatalog.getMinMaxDepth(self)
        
        engine.computeFBZ(self.fault_background_layer, self.catalog, mindepth,
            maxdepth, ui_mode=True)
            
        self.showFBZ()
Exemple #4
0
    def computeFSZ(self):
        """Compute attributes for selected feature in FSZ layer. Only one
        feature can be selected."""

        if not utils.check_only_one_feature_selected(self.fault_source_layer):
            return

        (mindepth, maxdepth) = eqcatalog.getMinMaxDepth(self)
        
        engine.computeFSZ(self.fault_source_layer, 
            self.fault_background_layer, self.background_zone_layer, 
            self.catalog, self.catalog_time_span[0],
            m_threshold=self.spinboxFBZMThres.value(), mindepth=mindepth,
            maxdepth=maxdepth, ui_mode=True)
            
        self.showFSZ()