87 Vector x_unsorted(nse), m_unsorted(nse);
93 throw runtime_error(
"NaN found in selected size grid data.");
94 if (std::isnan(mass[i]))
95 throw runtime_error(
"NaN found among particle mass data.");
97 if (x[i] >= x_fit_start && x[i] <= x_fit_end) {
98 x_unsorted[nsev] = x[i];
99 m_unsorted[nsev] = mass[i];
106 "Less than two size points found in the range " 107 "[x_fit_start,x_fit_end]. It is then not possible " 108 "to determine the a and b parameters.");
111 Vector log_x(nsev), log_m(nsev);
114 log_x[
i] = log(x_unsorted[intarr_sort[
i]]);
115 log_m[i] = log(m_unsorted[intarr_sort[i]]);
INDEX Index
The type to use for all integer numbers and indices.
Declarations having to do with the four output streams.
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)
Linear algebra functions.
Internal functions for microphysics calculations (size distributions etc.)
Workspace functions for the solution of cloud-box radiative transfer by Monte Carlo methods...
Index nelem() const
Returns the number of elements.
Contains sorting routines.
The global header file for ARTS.
member functions of the Rng class and gsl_rng code
NUMERIC Numeric
The type to use for all floating point numbers.
Propagation path structure and functions.
void get_sorted_indexes(ArrayOfIndex &sorted, const T &data)
get_sorted_indexes
Header file for logic.cc.
This can be used to make arrays out of anything.
const Numeric DENSITY_OF_ICE
Internal functions associated with size distributions.
void linreg(Vector &p, ConstVectorView x, ConstVectorView y)
Internal cloudbox functions.
const Numeric DENSITY_OF_WATER
This file contains declerations of functions of physical character.