eradiate.scenes.atmosphere.SphericalShellGeometry#

class eradiate.scenes.atmosphere.SphericalShellGeometry(planet_radius=<Quantity(6378.1, 'kilometer')>)[source]#

Bases: eradiate.scenes.atmosphere._core.AtmosphereGeometry

Spherical shell geometry.

A spherical shell atmosphere has a spherical symmetry. Eradiate represents it with a finite 3D geometry consisting of a sphere. By default, the sphere’s radius is set equal to Earth’s radius.

Parameters

planet_radius (quantity or float, default: 6378.1 km) – Planet radius. Defaults to Earth’s radius.

Fields

planet_radius (quantity) – Planet radius.

classmethod convert(value)#

Attempt conversion of a value to a AtmosphereGeometry subtype.

Parameters

value – Value to attempt conversion of. If a dictionary is passed, its "type" key is used to route its other entries as keyword arguments to the appropriate subtype’s constructor. If a string is passed, this method calls itself with the parameter {"type": value}.

Returns

result – If value is a dictionary, the constructed AtmosphereGeometry instance is returned. Otherwise, value is returned.

Raises

ValueError – A dictionary was passed but the requested type is unknown.