sft2d.initialize_field
- sft2d.initialize_field(grid, field_type='dipole')[source]
Creates initial condition based on user choice (Dipole/Read from fits file).
- Parameters:
grid (dict) – Dictionary containing grid information (‘theta’, ‘phi’, and their spacings).
field_type – Choice for setting the initial field as global dipole or read data from Carrington Rotation fits file.
- Returns:
Initial magnetic field.
- Return type:
np.ndarray