ParticleHabit

class pyarts3.arts.ParticleHabit

Particle habit

Overview

Method

get_size_mass_info()

Get mass information

Method

get_sizes()

Get sizes

Method

size()

Get the size

Method

to_tro_spectral()

Convert scattering data to TRO spectral format

Static Method

from_legacy_aro()

Create from legacy ARO

Static Method

from_legacy_tro()

Create from legacy TRO

Static Method

liquid_sphere()

Create a totally-random liquid-sphere habit with ARTS’ Mie solver

Static Method

sphere()

Create a Mie sphere habit. Supply temperature [K], frequency [Hz], diameters [m], density [kg/m3], and complex refractive indices with axes (temperature, frequency). Imaginary parts must be nonnegative.

Static Method

tmatrix()

Generate an in-memory, totally randomly oriented particle habit.

Operator

__eq__()

Return self==value.

Operator

__format__()

Default object formatter.

Operator

__ge__()

Return self>=value.

Operator

__getitem__()

__getitem__(self, arg: int, /) -> pyarts3.arts.SingleScatteringDataTROGridded4 | pyarts3.arts.SingleScatteringDataTROSpectral4 | pyarts3.arts.SingleScatteringDataAROGridded1 | pyarts3.arts.SingleScatteringDataAROSpectral1

Operator

__gt__()

Return self>value.

Operator

__hash__()

Return hash(self).

Operator

__init__()

Initialize self. See help(type(self)) for accurate signature.

Operator

__le__()

Return self<=value.

Operator

__len__()

__len__(self) -> int

Operator

__lt__()

Return self<value.

Operator

__ne__()

Return self!=value.

Operator

__repr__()

Return repr(self).

Operator

__str__()

Return str(self).

Constructors

__init__(*args, **kwargs)

Methods

get_size_mass_info(self, arg: pyarts3.arts.SizeParameter, /) tuple[pyarts3.arts.Vector, float, float]

Get mass information

get_sizes(self, arg: pyarts3.arts.SizeParameter, /) pyarts3.arts.Vector

Get sizes

size(self) int

Get the size

to_tro_spectral(self, t_grid: pyarts3.arts.Vector, f_grid: pyarts3.arts.Vector, l: int) pyarts3.arts.ParticleHabit

Convert scattering data to TRO spectral format

Static Methods

from_legacy_aro(ssd: pyarts3.arts.ArrayOfSingleScatteringData, smd: pyarts3.arts.ArrayOfScatteringMetaData) pyarts3.arts.ParticleHabit

Create from legacy ARO

from_legacy_tro(ssd: pyarts3.arts.ArrayOfSingleScatteringData, smd: pyarts3.arts.ArrayOfScatteringMetaData) pyarts3.arts.ParticleHabit

Create from legacy TRO

liquid_sphere(t_grid: pyarts3.arts.Vector, f_grid: pyarts3.arts.Vector, diameters: pyarts3.arts.Vector, za_scat_grid: pyarts3.arts.IrregularZenithAngleGrid | pyarts3.arts.DoubleGaussGrid | pyarts3.arts.GaussLegendreGrid | pyarts3.arts.LobattoGrid | pyarts3.arts.FejerGrid) pyarts3.arts.ParticleHabit

Create a totally-random liquid-sphere habit with ARTS’ Mie solver

sphere(t_grid: pyarts3.arts.Vector, f_grid: pyarts3.arts.Vector, diameters: pyarts3.arts.Vector, za_scat_grid: pyarts3.arts.IrregularZenithAngleGrid | pyarts3.arts.DoubleGaussGrid | pyarts3.arts.GaussLegendreGrid | pyarts3.arts.LobattoGrid | pyarts3.arts.FejerGrid, refractive_index: pyarts3.arts.ComplexMatrix, density: float) pyarts3.arts.ParticleHabit

Create a Mie sphere habit. Supply temperature [K], frequency [Hz], diameters [m], density [kg/m3], and complex refractive indices with axes (temperature, frequency). Imaginary parts must be nonnegative.

tmatrix(t_grid: pyarts3.arts.Vector, f_grid: pyarts3.arts.Vector, diameters: pyarts3.arts.Vector, refractive_index: pyarts3.arts.ComplexMatrix, density: float, aspect_ratio: float, shape: int = -1, angles: int = 181, accuracy: float = 0.001) pyarts3.arts.ParticleHabit

Generate an in-memory, totally randomly oriented particle habit.

Temperatures are in K, frequencies in Hz, volume-equivalent diameters in m, and material density in kg/m^3. Grids must be positive and strictly increasing. refractive_index is a complex matrix with shape (temperature, frequency), using a nonnegative imaginary part. shape=-1 is a spheroid (horizontal to rotational axis ratio); shape=-2 is a cylinder (diameter to length ratio). The angle grid contains angles equally spaced from 0 to 180 degrees.

Each diameter represents one particle size; combine the resulting habit with an ARTS PSD using ScatteringHabit. No external scattering files are needed. See T-matrix interface for usage and T-matrix implementation and validation for build requirements.

Operators

__eq__(value, /)

Return self==value.

__format__(format_spec, /)

Default object formatter.

Return str(self) if format_spec is empty. Raise TypeError otherwise.

__ge__(value, /)

Return self>=value.

__getitem__(self, arg: int, /) pyarts3.arts.SingleScatteringDataTROGridded4 | pyarts3.arts.SingleScatteringDataTROSpectral4 | pyarts3.arts.SingleScatteringDataAROGridded1 | pyarts3.arts.SingleScatteringDataAROSpectral1
__gt__(value, /)

Return self>value.

__hash__()

Return hash(self).

__init__(*args, **kwargs)
__le__(value, /)

Return self<=value.

__len__(self) int
__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__repr__()

Return repr(self).

__str__()

Return str(self).