ReFRACtor
FullPhysics::Level1bCache Class Reference

This is a Level1b implementation that just saves the data read from another Level1b object. More...

#include <level_1b_cache.h>

+ Inheritance diagram for FullPhysics::Level1bCache:
+ Collaboration diagram for FullPhysics::Level1bCache:

Public Member Functions

 Level1bCache (const Level1b &L1_in)
 Constructor. More...
 
virtual ~Level1bCache ()
 
virtual DoubleWithUnit altitude (int i) const
 Altitude. More...
 
virtual DoubleWithUnit latitude (int i) const
 Latitude. More...
 
virtual DoubleWithUnit longitude (int i) const
 Longitude. More...
 
virtual int number_spectrometer () const
 Number of spectrometers. More...
 
virtual void print (std::ostream &Os) const
 Print description of object. More...
 
std::string print_to_string () const
 Print to string. More...
 
virtual SpectralRange radiance (int i) const
 Radiance, for given spectral band. More...
 
virtual DoubleWithUnit relative_azimuth (int i) const
 Realtive azimuth. More...
 
virtual DoubleWithUnit relative_velocity (int i) const
 Relative velocity. More...
 
SpectralDomain sample_grid (int i) const
 Returns the sample grid (ie wavenumber, wavelength, etc) for the corresponding radiance values. More...
 
void set_altitude (int i, const DoubleWithUnit &V)
 Change value. More...
 
void set_latitude (int i, const DoubleWithUnit &V)
 Change value. More...
 
void set_longitude (int i, const DoubleWithUnit &V)
 Change value. More...
 
void set_radiance (int i, const SpectralRange &V)
 Change value. More...
 
void set_radiance (int i, const SpectralRange &V, const std::vector< int > &Plist)
 Change value, but only for a subset of pixels. More...
 
void set_relative_velocity (int i, const DoubleWithUnit &V)
 Change value. More...
 
void set_sample_grid (int i, const SpectralDomain &V)
 Change value. More...
 
void set_solar_azimuth (int i, const DoubleWithUnit &V)
 Change value. More...
 
void set_solar_zenith (int i, const DoubleWithUnit &V)
 Change value. More...
 
void set_sounding_azimuth (int i, const DoubleWithUnit &V)
 Change value. More...
 
void set_sounding_zenith (int i, const DoubleWithUnit &V)
 Change value. More...
 
void set_stokes_coefficient (int i, const blitz::Array< double, 1 > &V)
 Change value. More...
 
void set_time (int i, const Time &V)
 Change value. More...
 
virtual DoubleWithUnit signal (int Spec_index, const std::vector< int > &Sample_indexes=std::vector< int >()) const
 Calculate an approximation to the size of the continuum signal where there is no significant atmosphere absorption. More...
 
virtual DoubleWithUnit solar_azimuth (int i) const
 Solar azimuth. More...
 
virtual DoubleWithUnit solar_zenith (int i) const
 Solar zenith. More...
 
virtual DoubleWithUnit sounding_azimuth (int i) const
 Sounding azimuth. More...
 
virtual DoubleWithUnit sounding_zenith (int i) const
 Sounding zenith. More...
 
virtual blitz::Array< double, 1 > stokes_coefficient (int i) const
 Return stokes coefficients. More...
 
virtual Time time (int i) const
 Time of sounding. More...
 

Detailed Description

This is a Level1b implementation that just saves the data read from another Level1b object.

We then allow these values to be changed if desired. This can be useful when setting up special run in Python, among other uses.

Definition at line 12 of file level_1b_cache.h.

Constructor & Destructor Documentation

◆ Level1bCache()

Level1bCache::Level1bCache ( const Level1b L1_in)

Constructor.

Definition at line 8 of file level_1b_cache.cc.

◆ ~Level1bCache()

virtual FullPhysics::Level1bCache::~Level1bCache ( )
inlinevirtual

Definition at line 15 of file level_1b_cache.h.

Member Function Documentation

◆ altitude()

virtual DoubleWithUnit FullPhysics::Level1bCache::altitude ( int  i) const
inlinevirtual

Altitude.

Parameters
iSpectrometer index (between 0 and number_spectrometer() - 1)
Returns
Altitude

Implements FullPhysics::Level1b.

Definition at line 108 of file level_1b_cache.h.

◆ latitude()

virtual DoubleWithUnit FullPhysics::Level1bCache::latitude ( int  i) const
inlinevirtual

Latitude.

Parameters
iSpectrometer index (between 0 and number_spectrometer() - 1)
Returns
Latitude.

Implements FullPhysics::Level1b.

Definition at line 18 of file level_1b_cache.h.

◆ longitude()

virtual DoubleWithUnit FullPhysics::Level1bCache::longitude ( int  i) const
inlinevirtual

Longitude.

Parameters
iSpectrometer index (between 0 and number_spectrometer() - 1)
Returns
Longitude

Implements FullPhysics::Level1b.

Definition at line 33 of file level_1b_cache.h.

◆ number_spectrometer()

virtual int FullPhysics::Level1bCache::number_spectrometer ( ) const
inlinevirtual

Number of spectrometers.

Implements FullPhysics::Level1b.

Definition at line 17 of file level_1b_cache.h.

◆ print()

virtual void FullPhysics::Level1bCache::print ( std::ostream &  Os) const
inlinevirtual

Print description of object.

Reimplemented from FullPhysics::Level1b.

Definition at line 16 of file level_1b_cache.h.

◆ print_to_string()

std::string FullPhysics::Printable< Level1b >::print_to_string ( ) const
inlineinherited

Print to string.

This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.

Definition at line 31 of file printable.h.

◆ radiance()

virtual SpectralRange FullPhysics::Level1bCache::radiance ( int  Spec_index) const
inlinevirtual

Radiance, for given spectral band.

This returns the radiance with associated units. It may or may not have a uncertainity with the radiance.

Implements FullPhysics::Level1b.

Definition at line 185 of file level_1b_cache.h.

◆ relative_azimuth()

virtual DoubleWithUnit FullPhysics::Level1b::relative_azimuth ( int  i) const
virtualinherited

Realtive azimuth.

Parameters
iSpectrometer index (between 0 and number_spectrometer() - 1)
Returns
Relative azimuth angle between solar and sounding azimuth

◆ relative_velocity()

virtual DoubleWithUnit FullPhysics::Level1bCache::relative_velocity ( int  Spec_index) const
inlinevirtual

Relative velocity.

Returns
Relative velocity

Implements FullPhysics::Level1b.

Definition at line 123 of file level_1b_cache.h.

◆ sample_grid()

SpectralDomain FullPhysics::Level1bCache::sample_grid ( int  Spec_index) const
inlinevirtual

Returns the sample grid (ie wavenumber, wavelength, etc) for the corresponding radiance values.

The meaning of these coefficients will be specific to the instrument that measured the data.

Implements FullPhysics::Level1b.

Definition at line 154 of file level_1b_cache.h.

◆ set_altitude()

void FullPhysics::Level1bCache::set_altitude ( int  i,
const DoubleWithUnit V 
)
inline

Change value.

Definition at line 118 of file level_1b_cache.h.

◆ set_latitude()

void FullPhysics::Level1bCache::set_latitude ( int  i,
const DoubleWithUnit V 
)
inline

Change value.

Definition at line 28 of file level_1b_cache.h.

◆ set_longitude()

void FullPhysics::Level1bCache::set_longitude ( int  i,
const DoubleWithUnit V 
)
inline

Change value.

Definition at line 43 of file level_1b_cache.h.

◆ set_radiance() [1/2]

void FullPhysics::Level1bCache::set_radiance ( int  i,
const SpectralRange V 
)
inline

Change value.

Definition at line 195 of file level_1b_cache.h.

◆ set_radiance() [2/2]

void FullPhysics::Level1bCache::set_radiance ( int  i,
const SpectralRange V,
const std::vector< int > &  Plist 
)
inline

Change value, but only for a subset of pixels.

This might come from the ForwardModelSpectralGrid for example.

Definition at line 206 of file level_1b_cache.h.

◆ set_relative_velocity()

void FullPhysics::Level1bCache::set_relative_velocity ( int  i,
const DoubleWithUnit V 
)
inline

Change value.

Definition at line 133 of file level_1b_cache.h.

◆ set_sample_grid()

void FullPhysics::Level1bCache::set_sample_grid ( int  i,
const SpectralDomain V 
)
inline

Change value.

Definition at line 164 of file level_1b_cache.h.

◆ set_solar_azimuth()

void FullPhysics::Level1bCache::set_solar_azimuth ( int  i,
const DoubleWithUnit V 
)
inline

Change value.

Definition at line 103 of file level_1b_cache.h.

◆ set_solar_zenith()

void FullPhysics::Level1bCache::set_solar_zenith ( int  i,
const DoubleWithUnit V 
)
inline

Change value.

Definition at line 88 of file level_1b_cache.h.

◆ set_sounding_azimuth()

void FullPhysics::Level1bCache::set_sounding_azimuth ( int  i,
const DoubleWithUnit V 
)
inline

Change value.

Definition at line 73 of file level_1b_cache.h.

◆ set_sounding_zenith()

void FullPhysics::Level1bCache::set_sounding_zenith ( int  i,
const DoubleWithUnit V 
)
inline

Change value.

Definition at line 58 of file level_1b_cache.h.

◆ set_stokes_coefficient()

void FullPhysics::Level1bCache::set_stokes_coefficient ( int  i,
const blitz::Array< double, 1 > &  V 
)
inline

Change value.

Definition at line 148 of file level_1b_cache.h.

◆ set_time()

void FullPhysics::Level1bCache::set_time ( int  i,
const Time V 
)
inline

Change value.

Definition at line 180 of file level_1b_cache.h.

◆ signal()

virtual DoubleWithUnit FullPhysics::Level1b::signal ( int  Spec_index,
const std::vector< int > &  Sample_indexes = std::vector< int >() 
) const
virtualinherited

Calculate an approximation to the size of the continuum signal where there is no significant atmosphere absorption.

We approximate this by finding the 10 highest radiance values and averaging them.

Optionally takes a list of sample indexes. Will only uses these sample indexes for the calculation when supplied.

◆ solar_azimuth()

virtual DoubleWithUnit FullPhysics::Level1bCache::solar_azimuth ( int  i) const
inlinevirtual

Solar azimuth.

Parameters
iSpectrometer index (between 0 and number_spectrometer() - 1)
Returns
Solar azimuth angle

Implements FullPhysics::Level1b.

Definition at line 93 of file level_1b_cache.h.

◆ solar_zenith()

virtual DoubleWithUnit FullPhysics::Level1bCache::solar_zenith ( int  i) const
inlinevirtual

Solar zenith.

Parameters
iSpectrometer index (between 0 and number_spectrometer() - 1)
Returns
Solar zenith angle

Implements FullPhysics::Level1b.

Definition at line 78 of file level_1b_cache.h.

◆ sounding_azimuth()

virtual DoubleWithUnit FullPhysics::Level1bCache::sounding_azimuth ( int  i) const
inlinevirtual

Sounding azimuth.

Parameters
iSpectrometer index (between 0 and number_spectrometer() - 1)
Returns
Sounding azimuth

Implements FullPhysics::Level1b.

Definition at line 63 of file level_1b_cache.h.

◆ sounding_zenith()

virtual DoubleWithUnit FullPhysics::Level1bCache::sounding_zenith ( int  i) const
inlinevirtual

Sounding zenith.

Parameters
iSpectrometer index (between 0 and number_spectrometer() - 1)
Returns
Sounding zenith

Implements FullPhysics::Level1b.

Definition at line 48 of file level_1b_cache.h.

◆ stokes_coefficient()

virtual blitz::Array<double, 1> FullPhysics::Level1bCache::stokes_coefficient ( int  i) const
inlinevirtual

Return stokes coefficients.

Parameters
iSpectrometer index (between 0 and number_spectrometer() - 1)
Returns
Stokes coefficients, with size 4.

Implements FullPhysics::Level1b.

Definition at line 138 of file level_1b_cache.h.

◆ time()

virtual Time FullPhysics::Level1bCache::time ( int  Spec_index) const
inlinevirtual

Time of sounding.

Implements FullPhysics::Level1b.

Definition at line 170 of file level_1b_cache.h.


The documentation for this class was generated from the following files:

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