magali.dipole_bz_grid#
- magali.dipole_bz_grid(region, spacing, sensor_sample_distance, dipole_coordinates, dipole_moments)[source]#
Generate a grid of the vertical component of the magnetic field of a dipole.
- Parameters:
- region
tuple
of
float
The spatial region for the grid in micrometers (μm), defined as (x_min, x_max, y_min, y_max).
- spacing
float
Grid spacing in micrometers (μm).
- sensor_sample_distance
float
Distance of the sensor from the grid in micrometers (μm).
- dipole_coordinates
tuple
of
float
Dipole location coordinates in micrometers (μm).
- dipole_moments
tuple
of
float
Dipole moment components (Am²).
- region
- Returns:
- data
xarray.DataArray
Gridded dataset containing the vertical component of the magnetic field (Bz). The dataset includes: - “bz” : vertical magnetic field (nT) - “x” and “y” coordinates with units in micrometers (μm)
- data