glass.harmonics — Spherical harmonics utilities

This module contains utilities for working with spherical harmonics which are used by GLASS, but are otherwise unrelated to GLASS functionality.

This module should be imported manually if used outside of GLASS:

import glass.harmonics

General

glass.harmonics.multalm(alm, bl)[source]

Multiply alm by bl.

The alm should be in GLASS order:

[
    00,
    10, 11,
    20, 21, 22,
    30, 31, 32, 33
    ...
]
Parameters:
  • alm (Any) – The alm to multiply.

  • bl (Any) – The bl to multiply.

Returns:

The product of alm and bl.

Return type:

Any