ARTS  2.4.0(git:4fb77825)
microphysics.h File Reference

Internal functions for microphysics calculations (size distributions etc.) More...

#include "array.h"
#include "gridded_fields.h"
#include "interpolation.h"
#include "matpackVII.h"
#include "messages.h"
#include "optproperties.h"
#include "ppath.h"

Go to the source code of this file.

Functions

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)
 

Detailed Description

Internal functions for microphysics calculations (size distributions etc.)

Author
Jana Mendrok, Daniel Kreyling, Manfred Brath, Patrick Eriksson
Date
2017-07-10

Definition in file microphysics.h.

Function Documentation

◆ derive_scat_species_a_and_b()

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].

Returns
a Derived a parameter.
b Derived b parameter.
Parameters
xSize grid
massParticle masses
x_fit_startStart point of x-range to use for fitting
x_fit_endEndpoint of x-range to use for fitting
Author
Jana Mendrok, Patrick Eriksson
Date
2017-10-18

Definition at line 77 of file microphysics.cc.

References get_sorted_indexes(), linreg(), q, and ARTS::Var::x().

Referenced by ScatSpeciesSizeMassInfo().