ARTS 2.5.11 (git: 725533f0)
raw.cc File Reference

Stuff related to generating y-data from raw data. More...

#include <algorithm>
#include "arts_conversions.h"
#include "raw.h"

Go to the source code of this file.

Namespaces

namespace  Raw
 
namespace  Raw::Calibration
 
namespace  Raw::Average
 
namespace  Raw::Reduce
 
namespace  Raw::Mask
 
namespace  Raw::Correction
 

Functions

template<typename T >
constexpr bool isnormal_or_zero (T x) noexcept
 
Vector Raw::Calibration::calibration (const Vector &pc, const Vector &pa, const Vector &ph, Numeric tc, Numeric th) noexcept
 Computes the linear calibration formula elementwise.
 
Vector Raw::Calibration::systemtemp (const Vector &pc, const Vector &ph, Numeric tc, Numeric th) noexcept
 Computes the linear receiver temperature formula elementwise.
 
ArrayOfVector Raw::Calibration::caha (const ArrayOfVector &data, const Vector &tcvec, const Vector &thvec, const Index first_c_index)
 Calibrate the data by CAHA.
 
VectorView Raw::Average::avg (VectorView y, const ArrayOfVector &ys, const Index start=0, const Index end=-1)
 Compute the average of the ranged ys.
 
VectorView Raw::Average::nanavg (VectorView y, const ArrayOfVector &ys, const Index start=0, const Index end=-1)
 Compute the average of the ranged ys ignoring all non-normal values.
 
VectorView Raw::Average::var (VectorView var, const Vector &y, const ArrayOfVector &ys, const Index start=0, const Index end=-1)
 Compute the variance of the ranged ys.
 
VectorView Raw::Average::nanvar (VectorView var, const Vector &y, const ArrayOfVector &ys, const Index start=0, const Index end=-1)
 Compute the variance of the ranged ys ignoring all non-normal values.
 
VectorView Raw::Average::std (VectorView std, const Vector &y, const ArrayOfVector &ys, const Index start=0, const Index end=-1)
 Compute the standard deviation of the ranged ys.
 
VectorView Raw::Average::nanstd (VectorView std, const Vector &y, const ArrayOfVector &ys, const Index start=0, const Index end=-1)
 Compute the standard deviation of the ranged ys ignoring all non-normal values.
 
MatrixView Raw::Average::cov (MatrixView cov, const Vector &y, const ArrayOfVector &ys, const Index start=0, const Index end=-1)
 Compute the covariance matrix of the ranged ys.
 
Numeric Raw::Average::median (const ConstVectorView &v, const ArrayOfIndex &pos=ArrayOfIndex{})
 Get the median of the vector in the range.
 
Numeric Raw::Average::nanmedian (const ConstVectorView &v, const ArrayOfIndex &pos=ArrayOfIndex{})
 Get the median of the vector in the range ignoring all non-normal values.
 
ArrayOfIndex Raw::Reduce::focus_doublescaling (const Vector &x, const Numeric x0, const Numeric dx)
 Returns the relative position scale for each value in x.
 
std::pair< Index, Index > Raw::Reduce::find_first_and_last_1 (const ArrayOfIndex &x)
 
Vector Raw::Reduce::focus (const Vector &x, const ArrayOfIndex &scaling)
 Returns the re-averaged values of x according to scaling.
 
Vector Raw::Reduce::nanfocus (const Vector &x, const ArrayOfIndex &scaling)
 Returns the re-averaged values of x according to scaling ignoring all non-normal values.
 
std::vector< bool > Raw::Mask::out_of_bounds (const Vector &x, const Numeric xmin, const Numeric xmax)
 Masks values that are out of bounds in x.
 
VectorView Raw::Mask::mask (VectorView x, const std::vector< bool > &masking)
 Masks all true entries of masking in x by turning them into NaN.
 
Numeric Raw::Correction::naive_tropospheric_singletau_median (const ConstVectorView &bt, const Numeric trop_bt, const Numeric target_bt)
 Naive tropospheric correction parameterization.
 
VectorView Raw::Correction::naive_tropospheric (VectorView bt, const Numeric tau, const Numeric trop_bt)
 Apply tropospheric correction.
 

Detailed Description

Stuff related to generating y-data from raw data.

Author
Richard Larsson
Date
2020-04-13

Definition in file raw.cc.

Function Documentation

◆ isnormal_or_zero()

template<typename T >
constexpr bool isnormal_or_zero ( x)
constexprnoexcept