print_healpix_locs module

Save an output file containing evaluation points for a HEALpix scheme over a sphere.

Prints a list of (theta, phi) pairs aligned to HEALpix pixels for a given Nside value. Intended to support validation between MoonMag and PlanetMag for spherical harmonic calculations of magnetic fields on a sphere.

Parameters:
  • fName (str, default='healpix_locs.txt') – Output file name to which to print pixel locations.

  • outDir (str, default='outDir') – Output directory to which to print pixel locations.

  • nside (int, default=2**6) – Resolution of surface to print. 12 * nside**2 is the total number of pixels. The nside value used in compareMM_PM must match this value.