sft2d.calculate_dm

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

Calculates the axial dipole moment 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:

Axial dipole moment.

Return type:

float or np.ndarray