22 (
int Spec_index,
const blitz::Array<double, 1>& Radiance)
const 24 range_check(Spec_index, 0, bad_sample_mask_.rows());
25 blitz::Array<double, 1> uncer =
26 underlying_noise_model_->uncertainty(Spec_index, Radiance);
27 blitz::Array<double, 1> res(uncer.shape());
28 res(Range::all()) = where(bad_sample_mask_(Spec_index, Range::all()), bad_sample_uncer_, uncer);
34 Os <<
"BadSampleNoiseModel\n" 35 <<
" Bad sample uncertainty: " << bad_sample_uncer_ <<
"\n";
37 Os <<
" Underlying noise model:\n";
38 opad << *underlying_noise_model_;
#define range_check(V, Min, Max)
Range check.
This is a filtering stream that adds a pad to the front of every line written out.
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
virtual blitz::Array< double, 1 > uncertainty(int Spec_index, const blitz::Array< double, 1 > &Radiance) const
Calculate uncertainty, using underlying model except where we have bad samples, where we set this to ...
Apply value function to a blitz array.
virtual void print(std::ostream &Os) const
Print description of object.
Interface for calculating noise/uncertainty values from radiance data given some internal representat...
When we have bad samples, we usually pass this to the spectral window to prevent the sample from even...
Contains classes to abstract away details in various Spurr Radiative Transfer software.
#define REGISTER_LUA_END()