geoana.utils.ndgrid#

geoana.utils.ndgrid(*args, **kwargs)#

Form tensorial grid for 1, 2, or 3 dimensions.

Returns as column vectors by default.

To return as matrix input:

ndgrid(…, vector=False)

The inputs can be a list or separate arguments.

e.g.:

a = np.array([1, 2, 3])
b = np.array([1, 2])

XY = ndgrid(a, b)
    > [[1 1]
       [2 1]
       [3 1]
       [1 2]
       [2 2]
       [3 2]]

X, Y = ndgrid(a, b, vector=False)
    > X = [[1 1]
           [2 2]
           [3 3]]
    > Y = [[1 2]
           [1 2]
           [1 2]]

Galleries and Tutorials using geoana.utils.ndgrid#

Magnetostatic Vector Potentials: Dipole and Loop Sources

Magnetostatic Vector Potentials: Dipole and Loop Sources

Magnetostatic Vector Potentials: Dipole and Loop Sources
Total magnetic fields: Dipole and Pole sources

Total magnetic fields: Dipole and Pole sources

Total magnetic fields: Dipole and Pole sources
Electric Dipole in a Whole Space: Frequency Domain

Electric Dipole in a Whole Space: Frequency Domain

Electric Dipole in a Whole Space: Frequency Domain