ParticleHabit
- class pyarts3.arts.ParticleHabit
Particle habit
Overview
Method
Get mass information
Method
Get sizes
Method
Get the size
Method
Convert scattering data to TRO spectral format
Static Method
Create from legacy ARO
Static Method
Create from legacy TRO
Static Method
Create a totally-random liquid-sphere habit with ARTS’ Mie solver
Static Method
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
Generate an in-memory, totally randomly oriented particle habit.
Operator
Return self==value.
Operator
Default object formatter.
Operator
Return self>=value.
Operator
__getitem__(self, arg: int, /) -> pyarts3.arts.SingleScatteringDataTROGridded4 | pyarts3.arts.SingleScatteringDataTROSpectral4 | pyarts3.arts.SingleScatteringDataAROGridded1 | pyarts3.arts.SingleScatteringDataAROSpectral1
Operator
Return self>value.
Operator
Return hash(self).
Operator
Initialize self. See help(type(self)) for accurate signature.
Operator
Return self<=value.
Operator
__len__(self) -> int
Operator
Return self<value.
Operator
Return self!=value.
Operator
Return repr(self).
Operator
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
- 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.
- __lt__(value, /)
Return self<value.
- __ne__(value, /)
Return self!=value.
- __repr__()
Return repr(self).
- __str__()
Return str(self).