def interpolar_todas_as_imagens(self, paramIn): self.print_text(u"Lendo imagens e criando arquivos para a interpolação") resposta = self.function.executar(paramIn) if self.funcao_cancelada() : return CSVs = resposta["CSVs"] VRTs = resposta["VRTs"] self.print_text(u"Número de imagens identificadas para interpolar: " + str(len(CSVs))) self.function.progresso = 0.0 conf_algoritimo = TableData() conf_algoritimo["power"] = str(self.ui.txPower.value()) conf_algoritimo["radius"] = str(self.ui.txRadius.value()) conf_algoritimo["max_points"] = str(self.ui.txMaxPoint.value()) conf_algoritimo["min_points"] = str(self.ui.txMinPoint.value()) conf_img_out = RasterFile(file_full_path=str(self.ui.txImgReference.text())).getRasterInformation() self.console(u"Interpolando imagens...") for i in range(len(CSVs)): img_out = RasterFile(file_full_path=VRTs[i].file_full_path) img_out.file_ext = "tif" paramIn = TableData() paramIn["csv"] = CSVs[i] paramIn["vrt"] = VRTs[i] paramIn["img_out_config"] = conf_img_out paramIn["conf_algoritimo"] = conf_algoritimo paramIn["img_out"] = img_out self.function = IDW() self.function.setProgresso(i, len(CSVs)) self.function.data = paramIn imagem_interpolada = self.function.data self.print_text("Imagem interpolada: " + imagem_interpolada.file_name) if self.funcao_cancelada(): return return "tudo certo!"