MoonMag.plotting_funcs module

Contains functions for plotting topography and magnetic fields

from near-spherical conductors. Developed in Python 3.8 for “A perturbation method for evaluating the magnetic field induced from an arbitrary, asymmetric ocean world analytically” by Styczinski et al. DOI: 10.1016/j.icarus.2021.114840

Author: M. J. Styczinski, mjstyczi@uw.edu

MoonMag.plotting_funcs.SetMap(ax)
MoonMag.plotting_funcs.calcAndPlotTrajec(x, y, z, r, t, Binm, Benm, peak_omegas, nprm_max, n_max, nvals, mvals, R_body=None, difference=False, component=None, Binm_sph=None, net_field=False, bodyname=None, append='', fpath=None, lfig_dpi=None)
MoonMag.plotting_funcs.cformat(field)
MoonMag.plotting_funcs.con_formatter = <matplotlib.ticker.FuncFormatter object>

plotAsym() Calculates layer thicknesses gridded by lat,lon. Usage: plotAsym(recalc, do_large, index=-2, cmp_index=-1, r_bds=None, asym_shape=None,

pvals=None, qvals=None, fpath=None, bodyname=None, descrip=”Ice–ocean”, no_title=False)

Returns: None :param recalc: boolean. Whether to recalculate gridded values, or attempt to read them in. They are printed to disk if recalc’d.

All other inputs are optional, because if recalc=True most will not be needed.

Parameters:
  • do_large – boolean. Whether to print larger versions of labels and strip off the colorbar, to better display in presentation slides or side-by-side figures.

  • index – integer (-2). The boundary index to reference in asym_shape, corresponding to the perturbed boundary.

  • cmp_index – integer (-1). The boundary index against which to compare the primary boundary index above.

  • r_bds – float, shape(N) (None). Mean radius for each boundary in the conductivity model, in m.

  • asym_shape – float, shape(n_bds,2,p_max+1,p_max+1) (None). A list of boundary shape parameters chi_pq for each boundary.

  • pvals – integer, shape(Npq) (None). A linear list of p values for constructing (p,q) pairs in parallelized loops.

  • qvals – integer, shape(Npq) (None). A linear list of q values for constructing (p,q) pairs in parallelized loops.

  • fpath – string (None). Optional location to print image file to. Defaults to “figures/”.

  • bodyname – string (None). Optional body name to include in plot titles and file names.

  • append – string(“”). Optional string to append to filenames.

  • descrip – string (“Ice–ocean”). Description of the asymmetric layer being plotted, for plot titles.

  • no_title – boolean (False). If true, print figures without title text.

MoonMag.plotting_funcs.east_formatted(longitude, EAST=True)
MoonMag.plotting_funcs.fix_lons(lons)
MoonMag.plotting_funcs.get_latlon(do_large)
MoonMag.plotting_funcs.get_sign(val)
MoonMag.plotting_funcs.getmag(phi)
MoonMag.plotting_funcs.getphase(A)
MoonMag.plotting_funcs.healpixMap(nside, map, title, fName, levels=None, cmap=None, FIELD=True)
MoonMag.plotting_funcs.lat_formatted(latitude)
MoonMag.plotting_funcs.lat_hemisphere(latitude)
MoonMag.plotting_funcs.lon_hemisphere(longitude, EAST=True)
MoonMag.plotting_funcs.plotAes(T_h, Ae_mag, Ae_arg, Tinterest_h, BeRatio, intModels, n=1, fEnd='', lfig_dpi=None)
MoonMag.plotting_funcs.plotAfunctions(kr, n, Ae_mag, Ae_arg, At_mag, At_arg, Ad_mag, Ad_arg, AtAd_mag, AtAd_arg, lfig_dpi=None)
MoonMag.plotting_funcs.plotAsym(recalc, do_large, index=-2, cmp_index=-1, r_bds=None, asym_shape=None, pvals=None, qvals=None, inpath=None, fpath=None, outFname=None, bodyname=None, append='', descrip='Ice--ocean', no_title=False, lfig_dpi=None)
MoonMag.plotting_funcs.plotMagSurf(n_peaks, Binm, nvals, mvals, do_large, Schmidt=False, r_surf_mean=1.0, asym_frac=None, pvals=None, qvals=None, difference=False, Binm_sph=None, nprmvals=None, mprmvals=None, fpath=None, bodyname=None, append='', fend='', tstr='', component=None, absolute=False, no_title=False, outFname=None, title=None, sym_title=None, lfig_dpi=None, marks=None)
MoonMag.plotting_funcs.plotTimeSeries(loc, Binm, Benm, t_start, T_hrs, nprm_max, n_max, nvals, mvals, n_pts=200, component=None, Binm_sph=None, bodyname=None, append='', fpath=None, lfig_dpi=None)
MoonMag.plotting_funcs.plotTrajec(t, Bx, By, Bz, Bdat=None, bodyname=None, t_CA=None, append='', fpath=None, lfig_dpi=None)