grasp2alm.BeamCut

class grasp2alm.BeamCut(filepath)[source]

Class to hold the data from a beam cut file of GRASP.

Parameters:
  • header (str) – Record with identification text.

  • vini (float) – Initial value.

  • vinc (float) – Increment.

  • vnum (int) – Number of values in cut.

  • c (np.ndarray) – Constant.

  • icomp (int) – Polarization control parameter.

  • icut (int) – Control parameter of cut.

  • ncomp (int) – Number of field components.

  • ncut (int) – Number of cuts.

  • amp (np.ndarray) – Amplitude.

__init__(filepath)[source]

Initializes a BeamCut object.

Methods

__init__(filepath)

Initializes a BeamCut object.

plot([pol, color_resol, figsize, cmap, ...])

Plot the beam pattern.

to_polar([copol_axis])

Converts beam in "cut" format to Stokes parameters on a polar grid.