Conversion of G_#.TAG
files to vts/vti files¶
Potential extrapolation¶
- class magic.potExtra.ExtraPot(rcmb, brcmb, minc, ratio_out=2.0, nrout=32, cutCMB=False, deminc=True)[source]¶
This class is used to compute the potential field extrapolation of the magnetic field in an arbitrary outer spherical shell domain. It takes as an input the magnetic field at the CMB.
- __init__(rcmb, brcmb, minc, ratio_out=2.0, nrout=32, cutCMB=False, deminc=True)[source]¶
- Parameters:
bcmb (numpy.ndarary) – the surface radial field, array of dimension [np, nt]
rcmb (float) – the value of the radius at the surface
minc (int) – azimuthal symmetry
ratio_out (float) – the ratio of the outer sphere radius to the surface radius
nrout (int) – the number of radial point (linearly spaced) of the extrapolated field in the outer spherical domain
cutCMB (bool) – a logical if one wants to remove the first grid point (useful if one then wants to merge the graphic file with the extrapolation)
deminc (bool) – a logical to indicate if one wants do get rid of the possible azimuthal symmetry
- __weakref__¶
list of weak references to the object
- avg(field='br', levels=12, cm='RdYlBu_r', normed=True, vmax=None, vmin=None)[source]¶
A small routine to plot the azimuthal averages of the extrapolated fields.
- Parameters:
field (str) – the quantity you want to plot: ‘br’ or ‘bp’
levels (int) – the number of contour levels
cm (str) – the name of the colormap
vmax (float) – maximum value of the contour levels
vmin (float) – minimum value of the contour levels
normed (bool) – when set to True, the colormap is centered around zero. Default is True, except for entropy/temperature plots.