Cartesian Slepian functions as developed by:
Simons & Wang
Int. J. Geomath., 2011 (2) 1, 1–36, 2011, doi: 10.1007/s13137-011-0016-z
which you may cite if you find any of these routines useful!
Supported by the National Science Foundation under grant EAR-0710860.