sft2d.plot_mag

sft2d.plot_mag(b_data, grid, bmax=30, save_path=None, show_plot=True)[source]

Plots the magnetic field strength at the solar surface.

Parameters:
  • b_data (np.ndarray) – 2D array containing the surface magnetic field strength data [latitude, longitude].

  • grid (dict) – Dictionary containing grid information (‘theta’, ‘phi’, and their spacings).

  • bmax (float, optional) – Maximum magnetic field strength for the colorbar.

  • save_path (str, optional) – Path to save the plot. If None, the plot is displayed interactively.

  • show_plot (bool, optional) – If True, the plot is displayed interactively.