1 #ifndef SPECTRAL_RANGE_H 2 #define SPECTRAL_RANGE_H 40 : data_(Data), units_(U) {}
43 : data_(Data), units_(U) {}
46 const blitz::Array<double, 1>& Uncertainty)
47 : data_(Data), units_(U),
48 uncertainty_(Uncertainty) {}
51 const blitz::Array<double, 1>& Uncertainty)
52 : data_(Data), units_(U),
53 uncertainty_(Uncertainty) {}
71 const blitz::Array<double, 1>&
data()
const {
return data_.
value(); }
77 blitz::Array<double, 1>&
data() {
return data_.
value(); }
99 const blitz::Array<double, 1>&
uncertainty()
const {
return uncertainty_;}
112 void print(std::ostream& Os)
const { Os <<
"SpectralRange";}
120 blitz::Array<double, 1> uncertainty_;
SpectralRange & operator=(const SpectralRange &V)
Assignment operator so internals are correctly set.
SpectralRange()
Default constructor needed for SWIG.
SpectralRange(const ArrayWithUnit< double, 1 > &Data)
SpectralRange(const ArrayAd< double, 1 > &Data, const Unit &U)
SpectralRange(const blitz::Array< double, 1 > &Data, const Unit &U, const blitz::Array< double, 1 > &Uncertainty)
This is a Mixin for classes that can be printed.
blitz::Array< double, 1 > & data()
Underlying data.
const blitz::Array< T, D > & value() const
const Unit & units() const
Units of data.
const blitz::Array< double, 1 > & uncertainty() const
Uncertainty.
ArrayAd< T, D > copy() const
We have a number of different spectrums that appear in different parts of the code.
const ArrayAd< double, 1 > & data_ad() const
Underlying data, possibly with a Jacobian.
ArrayAd< double, 1 > & data_ad()
Underlying data, possibly with a Jacobian.
void reference(const ArrayAd< T, D > &V)
Libraries such as boost::units allow unit handling where we know the units at compile time...
void print(std::ostream &Os) const
Contains classes to abstract away details in various Spurr Radiative Transfer software.
SpectralRange(const blitz::Array< double, 1 > &Data, const Unit &U)
const SpectralRange clone() const
Clones object into a new copy.
double value(const FullPhysics::AutoDerivative< double > &Ad)
SpectralRange convert(const Unit &R) const
Convert to given units.
const blitz::Array< double, 1 > & data() const
Underlying data.
SpectralRange(const ArrayAd< double, 1 > &Data, const Unit &U, const blitz::Array< double, 1 > &Uncertainty)