magali.dipole_bz_grid

Contents

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:
regiontuple of float

The spatial region for the grid in micrometers (μm), defined as (x_min, x_max, y_min, y_max).

spacingfloat

Grid spacing in micrometers (μm).

sensor_sample_distancefloat

Distance of the sensor from the grid in micrometers (μm).

dipole_coordinatestuple of float

Dipole location coordinates in micrometers (μm).

dipole_momentstuple of float

Dipole moment components (Am²).

Returns:
dataxarray.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)