ReFRACtor
simple_fixed_spectrum_sampling.h
Go to the documentation of this file.
1 #ifndef SIMPLE_FIXED_SPECTRUM_SAMPLING_H
2 #define SIMPLE_FIXED_SPECTRUM_SAMPLING_H
3 
4 #include "spectrum_sampling.h"
5 #include "fp_exception.h"
6 #include <vector>
7 
8 namespace FullPhysics {
9 /****************************************************************/
18 public:
19  SimpleFixedSpectrumSampling(double wn_start, double wn_end, double wn_step);
20  SimpleFixedSpectrumSampling(double wn_start1, double wn_end1, double wn_step1,
21  double wn_start2, double wn_end2, double wn_step2,
22  double wn_start3, double wn_end3, double wn_step3);
23 
25 
26 //-----------------------------------------------------------------------
28 //-----------------------------------------------------------------------
29 
30  virtual SpectralDomain spectral_domain(int spec_index,
31  const SpectralDomain& Lowres_grid,
32  const DoubleWithUnit& Ils_half_width) const
33  { range_check(spec_index, 0, number_spectrometer());
34  return spec_domain[spec_index];}
35  virtual void print(std::ostream& Os) const;
36 private:
37  std::vector<SpectralDomain> spec_domain;
38 };
39 }
40 #endif
#define range_check(V, Min, Max)
Range check.
Definition: fp_exception.h:140
SimpleFixedSpectrumSampling(double wn_start, double wn_end, double wn_step)
Constructor.
For different instruments, it is more natural to either work with wavenumbers (e.g., GOSAT) or wavelength (e.g., OCO).
int number_spectrometer() const
Number of spectrometers we have.
virtual void print(std::ostream &Os) const
Print to stream.
This determines the sampling of the spectrum that should be used for each of the spectrum indexes...
We frequently have a double with units associated with it.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
virtual SpectralDomain spectral_domain(int spec_index, const SpectralDomain &Lowres_grid, const DoubleWithUnit &Ils_half_width) const
Wave numbers to use for the given spectrometer.
This is a simple SpectrumSampling that is just a uniform sampling.

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:10