ARTS 2.5.11 (git: 6827797f)
|
Internal functions for microphysics calculations (size distributions etc.) More...
#include "array.h"
#include "gridded_fields.h"
#include "interpolation.h"
#include "matpack_data.h"
#include "messages.h"
#include "optproperties.h"
#include "ppath.h"
Go to the source code of this file.
Functions | |
Numeric | asymmetry_parameter (ConstVectorView za_grid, ConstVectorView pfun) |
asymmetry_parameter | |
void | derive_scat_species_a_and_b (Numeric &a, Numeric &b, const Vector &x, const Vector &mass, const Numeric &x_fit_start, const Numeric &x_fit_end) |
Internal functions for microphysics calculations (size distributions etc.)
Definition in file microphysics.h.
Numeric asymmetry_parameter | ( | ConstVectorView | za_grid, |
ConstVectorView | pfun | ||
) |
asymmetry_parameter
Calculates the asymmetry parameter, TRO data only
sa_grid | Scattering angle grid |
pfun | Phase function of TRO-type |
Definition at line 43 of file microphysics.cc.
References ARTS_ASSERT, DEG2RAD, and trapz().
Referenced by HydrotableCalc().
void derive_scat_species_a_and_b | ( | Numeric & | a, |
Numeric & | b, | ||
const Vector & | x, | ||
const Vector & | mass, | ||
const Numeric & | x_fit_start, | ||
const Numeric & | x_fit_end | ||
) |
Derives a and b for relationship mass = a * x^b
The parameters a and b are derived by a fit including all data inside the size range [x_fit_start,x_fit_end].
The vector x must have been checked to have at least 2 elements.
An error is thrown if less than two data points are found inside [x_fit_start,x_fit_end].
x | Size grid |
mass | Particle masses |
x_fit_start | Start point of x-range to use for fitting |
x_fit_end | Endpoint of x-range to use for fitting |
Definition at line 79 of file microphysics.cc.
References a, ARTS_ASSERT, b, and get_sorted_indexes().
Referenced by ScatSpeciesSizeMassInfo().