SolidAngle classes

pySCATMECH.integrate.CircularCone

alias of EllipticalCone

class pySCATMECH.integrate.EllipticalCone(theta=0, phi=0, alpha=0, gamma=0, sensitivity=StokesVector(1, 0, 0, 0), polphi=None)

Bases: SolidAngle

A solid angle defined as an elliptical circular cone.

inside(v)
Parameters:

v (tuple of float) – Direction represented as directional cosines

Returns:

  • is_inside (bool) – True if v is inside solid angle, False otherwise

  • sensitivity (StokesVector) – The Stokes vector sensitivity

class pySCATMECH.integrate.Hemisphere(sensitivity=StokesVector(1, 0, 0, 0), polphi=None)

Bases: SolidAngle

A solid angle defined by the entire hemisphere.

inside(v)
Parameters:

v (tuple of float) – Direction represented as directional cosines

Returns:

  • is_inside (bool) – True if v is inside solid angle, False otherwise

  • sensitivity (StokesVector) – The Stokes vector sensitivity

class pySCATMECH.integrate.ProjectedPolygon(boundary, sensitivity=StokesVector(1, 0, 0, 0), polphi=None)

Bases: SolidAngle

A solid angle defined by an array of (x,y) points in projected cosine space.

inside(v)
Parameters:

v (tuple of float) – Direction represented as directional cosines

Returns:

  • is_inside (bool) – True if v is inside solid angle, False otherwise

  • sensitivity (StokesVector) – The Stokes vector sensitivity

class pySCATMECH.integrate.RectangularCone(theta=0, phi=0, alpha=0, gamma=0, sensitivity=StokesVector(1, 0, 0, 0), polphi=None)

Bases: SolidAngle

A solid angle defined by a rectangular collection cone.

inside(v)
Parameters:

v (tuple of float) – Direction represented as directional cosines

Returns:

  • is_inside (bool) – True if v is inside solid angle, False otherwise

  • sensitivity (StokesVector) – The Stokes vector sensitivity

class pySCATMECH.integrate.SolidAngle

Bases: object

Abstract class for a solid angle on a hemisphere.

Inherited classes are expected to define inside(self,v) where v contains directional cosines and returns a tuple of bool (True if (x,y) is inside solid angle, False otherwise) and the Stokes vector sensitivity.

The parent class provides __and__, __or__, and __invert__ functionality, so that solid angles can be defined by combining other solid angle classes.

pySCATMECH.integrate.SquareCone

alias of RectangularCone