ReFRACtor
ils_gaussian.cc
Go to the documentation of this file.
1
#include "
ils_gaussian.h
"
2
using namespace
FullPhysics
;
3
using namespace
blitz
;
4
5
void
IlsGaussian::ils
6
(
const
AutoDerivative<double>
& wn_center,
7
const
blitz::Array<double, 1>&
wn
,
8
ArrayAd<double, 1>
& res_a)
const
9
{
10
const
double
sqrt_PI = 1.7724538509055159;
11
Array<AutoDerivative<double>, 1> res(wn.shape());
12
res = exp(-
sqr
((wn - wn_center) / gamma)) / (gamma*sqrt_PI);
13
res_a.
reference
(
ArrayAd<double, 1>
(res));
14
}
solar_doppler_shift_polynomial_test.wn
wn
Definition:
solar_doppler_shift_polynomial_test.py:33
blitz
Apply value function to a blitz array.
Definition:
auto_derivative.h:40
ils_gaussian.h
FullPhysics::ArrayAd< double, 1 >
FullPhysics::AutoDerivative< double >
FullPhysics::sqr
double sqr(double x)
Definition:
linear_algebra.h:11
FullPhysics::ArrayAd::reference
void reference(const ArrayAd< T, D > &V)
Definition:
array_ad.h:372
FullPhysics
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition:
doxygen_python.h:1
FullPhysics::IlsGaussian::ils
virtual void ils(const AutoDerivative< double > &wn_center, const blitz::Array< double, 1 > &wn, ArrayAd< double, 1 > &res) const
Return response function.
Definition:
ils_gaussian.cc:6
Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:08