sft2d.calculate_usflx

sft2d.calculate_usflx(all_br_data, grid, time_duration)[source]

Calculates the total unsigned magnetic flux of the surface magnetic fields for a given time duration.

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].

Returns:

Total unsigned flux.

Return type:

float or np.ndarray