|
| brief |
|
| description |
|
string | regionAttrOnODM = '_RegionID' |
|
| files_in_directory = os.listdir(self.tempdir) |
|
list | filtered_files = [file for file in files_in_directory if file.endswith(".mat")] |
|
| path_to_file = os.path.join(self.tempdir, file) |
|
list | output_acc = [""] |
|
| ref_odm = pyDM.Datamanager.load(ref_odm_fn, True, False) |
|
string | id_fmt = '%s%1d' |
|
| regionAttr_indx = ref_odm.getAddInfoStatistics().layout().index(self.regionAttrOnODM) |
|
| result_odm_fn = os.path.join(self.tempdir, 'absAcc_overview.odm') |
|
| result_odm = pyDM.Datamanager.create(result_odm_fn) |
|
| lf = pyDM.AddInfoLayoutFactory() |
|
| result_layout = lf.getLayout() |
|
list | list_failed_regions = [] |
|
list | list_failed_regions_redpoi = [] |
|
| region_id = int(geo.getAddInfo().get(regionAttr_indx)) |
|
string | fn_id_suffix = id_fmt % ('region_', region_id) |
|
| win = pyDM.GeometricAlgorithms.getBoundingBox(geo) |
|
list | BBox |
|
tuple | meanRef_Z = (win.zmax + win.zmin)/2 |
|
string | temp = 'BBox' |
|
list | log_output = [f"Region\t{temp:^40}"] |
|
| screenLogLevel |
|
| inFile |
|
| als_merg_file = os.path.join(self.tempdir, fn_id_suffix + '_als.odm') |
|
| outFile |
|
| filter |
|
| als_merg_cog_x = int((win.xmax + win.xmin)/2) |
|
| als_merg_cog_y = int((win.ymax + win.ymin)/2) |
|
int | pdist = 1/math.sqrt(pyDM.Datamanager.getHeaderODM(str(imp.outFile)).estimatedPointDensity()) |
|
| cellSize |
|
| limit |
|
| attribute |
|
| ref_odm_file = os.path.join(self.tempdir, fn_id_suffix + '_ref.odm') |
|
| icp = ICP.ICP() |
|
| maxIter |
|
| maxAngleDev |
|
| searchRadius |
|
| samplingDist |
|
| trafoType |
|
| outDirectory |
|
| tempDirectory |
|
| transformData |
|
| scope |
|
| cfgFile |
|
| redPoint |
|
| stats = icp.outTrafPars[1] |
|
| trfo = stats.getTrafPars() |
|
| qxx = stats.getQxx() |
|
| trafo_pars = np.zeros((8, 2)) |
|
float | ro = 57.2957795130823 |
|
| shift_3d = math.sqrt(trafo_pars[3][0]**2 + trafo_pars[4][0]**2 + trafo_pars[5][0]**2) |
|
| shift_3d_std = math.sqrt(trafo_pars[3][1]**2 + trafo_pars[4][1]**2 + trafo_pars[5][1]**2) |
|
| pt = pyDM.Point(result_layout) |
|
| x |
|
| y |
|
| z |
|
| results_fn = os.path.join(self.outfile, "absAcc_overview.txt") |
|
| results_fid = open(results_fn, 'w') |
|
| formatFile_fn = os.path.join(self.tempdir, "referenceRegionsStatistics.xml") |
|
| formatFile_fid = open(formatFile_fn, 'w') |
|
string | regionAttrOnShape = self.regionAttrOnODM |
|
| oFormat |
|