sft2d.calculate_polar_flux

sft2d.calculate_polar_flux(all_br_data, grid, time_duration, pol_cap_extent_deg=20, R_sun=69800000000.0)[source]

Compute the total polar flux in Maxwell (Mx) near the polar caps (20-degree extent).

Parameters:
  • all_br_data (np.ndarray) – 3D array containing the surface magnetic field data [time,latitude,longitude].

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

  • time_duration (int) – Number of time steps in the simulation. Set this to a range of days from 0 to the number of days as a touple, e.g. [0, 365].

  • R_sun (float) – Solar radius in cm.

Returns:

North and South polar flux in Maxwell.

Return type:

float or np.ndarray