You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A ZeroDivisionError appeared during creating a spatial grid.
The reason is that the grid size is bigger than the size of the study area covered by the images in at least one dimension.
Traceback (most recent call last):
File "/opt/pycharm-community-2024.1.4/plugins/python-ce/helpers/pydev/pydevd.py", line 1551, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/opt/pycharm-community-2024.1.4/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/piter/develop/sar4infra/sarvey_dev/sarvey/sarvey_mti.py", line 334, in <module>
main()
File "/home/piter/develop/sar4infra/sarvey_dev/sarvey/sarvey_mti.py", line 330, in main
run(config=config, args=args, logger=logger)
File "/home/piter/develop/sar4infra/sarvey_dev/sarvey/sarvey_mti.py", line 160, in run
proc_obj.runFiltering()
File "/home/piter/develop/sar4infra/sarvey_dev/sarvey/processing.py", line 595, in runFiltering
box_list, num_box = ut.createSpatialGrid(coord_utm_img=coord_utm_obj.coord_utm, length=point1_obj.length,
File "/home/piter/develop/sar4infra/sarvey_dev/sarvey/utils.py", line 538, in createSpatialGrid
box_list, num_box = splitImageIntoBoxesRngAz(length=length, width=width,
File "/home/piter/develop/sar4infra/sarvey_dev/sarvey/utils.py", line 391, in splitImageIntoBoxesRngAz
x_step = int(np.rint((width / num_box_az) / 10) * 10)
ZeroDivisionError: division by zero
ToDo:
Catch this error in createSpatialGrid
check if num_box_az or num_box_rng are zero
if yes, set num_box_az or num_box_rng to 1
Inform the user if the chosen grid size is too small for the given study area.
The text was updated successfully, but these errors were encountered:
Problem:
A ZeroDivisionError appeared during creating a spatial grid.
The reason is that the grid size is bigger than the size of the study area covered by the images in at least one dimension.
ToDo:
createSpatialGrid
num_box_az
ornum_box_rng
are zeronum_box_az
ornum_box_rng
to 1The text was updated successfully, but these errors were encountered: