SMRT

smrt.atmosphere package

Submodules

smrt.atmosphere.simple_isotropic_atmosphere module

Implement an isotropic atmosphere with prescribed frequency-dependent emission (up and down) and transmittivity.

TB and transmissivity can be specified as a constant, or a frequency-dependent dictionary

To make an atmosphere, it is recommended to use the helper function make_atmosphere().

Examples:

# the full path import is required
from smrt.atmosphere.simple_isotropic_atmosphere import make_atmosphere

# Constant
atmos = make_atmosphere(tbdown=20., tbup=6., trans=1)

# Frequency-dependent
atmos = make_atmosphere(tbdown={10e9: 15.2, 21e9: 23.5})
make_atmosphere(tbdown=0, tbup=0, trans=1)

Construct an atmosphere instance.

class SimpleIsotropicAtmosphere(tbdown=0, tbup=0, trans=1)

Bases: smrt.core.atmosphere.AtmosphereBase

tbdown(frequency, costheta, npol)
tbup(frequency, costheta, npol)
trans(frequency, costheta, npol)

smrt.atmosphere.test_atmosphere module

test_simple_isotropic_atmosphere()
test_frequency_dependent_atmosphere()

Module contents

This directory contains different options to represent the atmosphere, that is the upper boundary conditions of the radiation transfer equation.

This part is currently not fully developed but should work for an isotropic atmosphere.

Example:

from smrt.atmosphere.basic import ConstantAtmosphere

atmosphere = ConstantAtmosphere(tbdown=2.7, tbup=2.7, trans=0.998)

The API is subject to change.