ARTS 2.5.9 (git: 825fa5f2)
Raw::Mask Namespace Reference

Functions

std::vector< bool > out_of_bounds (const Vector &x, const Numeric xmin, const Numeric xmax)
 Masks values that are out of bounds in x. More...
 
VectorView mask (VectorView x, const std::vector< bool > &masking)
 Masks all true entries of masking in x by turning them into NaN. More...
 

Function Documentation

◆ mask()

VectorView Raw::Mask::mask ( VectorView  x,
const std::vector< bool > &  masking 
)

Masks all true entries of masking in x by turning them into NaN.

Parameters
[in,out]xA Vector to mask
[in]maskingThe mask
Returns
x masked (note, x is masked in-place anyways)

Definition at line 408 of file raw.cc.

References N, and ConstVectorView::nelem().

Referenced by out_of_bounds().

◆ out_of_bounds()

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.

Acceptable values are xmin <= x[i] <= xmax

All other i are marked as masked (true)

Parameters
[in]xA vector to mask
[in]xminThe minimum acceptable value of x
[in]xmaxThe maximum acceptable value of x
Returns
A mask (true is masked, false is unmasked)

Definition at line 401 of file raw.cc.

References isnormal_or_zero(), mask(), and ConstVectorView::size().

Referenced by yMaskOutsideMedianRange().