grid_homogenize module

Create homogenized version of a CRTomo grid.

Examples

class grid_homogenize.grid_container(electrodes_file=None, boundaries_file=None, char_length_file=None)[source]

Bases: object

save_to_dir(directory)[source]
grid_homogenize.handle_cmd_options()[source]
grid_homogenize.homogenize_grid(grid_old, dx, dy)[source]
  1. fit line through electrodes

  2. rotate electrodes so that line lies in the horizontal plane

  3. translate z-coordinates so that all z-coordinates are negative

grid_homogenize.main()[source]
grid_homogenize.rotate_point(xorigin, yorigin, x, y, angle)[source]

Rotate the given point by angle