grasp2alm.BeamGauss.write2thetaphigrid#
- BeamGauss.write2thetaphigrid(path: str, xs: float, ys: float, xe: float, ye: float, nx: int, ny: int)[source]#
Writes the formatted beam data to the specified path with the provided headers. Each cut contains vnum lines of data.
- Parameters:
path (str) – The path to write the beam data to.
xs (float) – The starting x-coordinate of the grid.
ys (float) – The starting y-coordinate of the grid.
xe (float) – The ending x-coordinate of the grid.
ye (float) – The ending y-coordinate of the grid.
nx (int) – The number of grid points in the x-direction.
ny (int) – The number of grid points in the y-direction.