ARTS  2.4.0(git:4fb77825)
m_raw.cc File Reference

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

#include "artstime.h"
#include "raw.h"

Go to the source code of this file.

Functions

void yColdAtmHot (Vector &y, const Vector &cold, const Vector &atm, const Vector &hot, const Numeric &cold_temp, const Numeric &hot_temp, const Index &calib, const Verbosity &)
 WORKSPACE METHOD: yColdAtmHot. More...
 
void ybatchTimeAveraging (ArrayOfVector &ybatch, ArrayOfTime &time_grid, ArrayOfMatrix &covmat_sepsbatch, ArrayOfIndex &counts, const String &time_step, const Index &disregard_first, const Index &disregard_last, const Verbosity &)
 WORKSPACE METHOD: ybatchTimeAveraging. More...
 
void ybatchTroposphericCorrectionNaiveMedianForward (ArrayOfVector &ybatch_corr, ArrayOfVector &ybatch, const ArrayOfIndex &range, const Vector &trop_temp, const Numeric &targ_temp, const Verbosity &)
 WORKSPACE METHOD: ybatchTroposphericCorrectionNaiveMedianForward. More...
 
void ybatchTroposphericCorrectionNaiveMedianInverse (ArrayOfVector &ybatch, const ArrayOfVector &ybatch_corr, const Verbosity &)
 WORKSPACE METHOD: ybatchTroposphericCorrectionNaiveMedianInverse. More...
 

Detailed Description

Stuff related to generating y-data from raw data.

Author
Richard Larsson
Date
2020-04-13

Definition in file m_raw.cc.

Function Documentation

◆ ybatchTimeAveraging()

void ybatchTimeAveraging ( ArrayOfVector ybatch,
ArrayOfTime time_grid,
ArrayOfMatrix covmat_sepsbatch,
ArrayOfIndex counts,
const String time_step,
const Index disregard_first,
const Index disregard_last,
const Verbosity verbosity 
)

WORKSPACE METHOD: ybatchTimeAveraging.

Time average of ybatch and time_grid

Computes the internal covariance matrix in covmat_sepsbatch, and stores the number of elements per averaging in counts

Author
Richard Larsson
Parameters
[in,out]ybatchWS Input/Output
[in,out]time_gridWS Input/Output
[out]covmat_sepsbatchWS Output
[out]countsWS Output
[in]time_stepGeneric Input
[in]disregard_firstGeneric Input (Default: "0")
[in]disregard_lastGeneric Input (Default: "0")

Definition at line 58 of file m_raw.cc.

References ARTS::Var::counts(), ARTS::Var::covmat_sepsbatch(), is_sorted(), ARTS::Var::time_grid(), and time_steps().

Referenced by ybatchTimeAveraging_g().

◆ ybatchTroposphericCorrectionNaiveMedianForward()

void ybatchTroposphericCorrectionNaiveMedianForward ( ArrayOfVector ybatch_corr,
ArrayOfVector ybatch,
const ArrayOfIndex range,
const Vector trop_temp,
const Numeric targ_temp,
const Verbosity verbosity 
)

WORKSPACE METHOD: ybatchTroposphericCorrectionNaiveMedianForward.

Performs naive tropospheric corrections on ybatch

Sets ybatch_corr to be able to perform the inverse of the corrections, each array-element with 3 entries as [median, part_trans, trop_temp]

Author
Richard Larsson
Parameters
[out]ybatch_corrWS Output
[in,out]ybatchWS Input/Output
[in]rangeGeneric Input
[in]trop_tempGeneric Input
[in]targ_tempGeneric Input (Default: "2.73")

Definition at line 135 of file m_raw.cc.

References linalg::median(), ConstVectorView::nelem(), ARTS::Var::y(), ARTS::Var::ybatch(), and ARTS::Var::ybatch_corr().

Referenced by ybatchTroposphericCorrectionNaiveMedianForward_g().

◆ ybatchTroposphericCorrectionNaiveMedianInverse()

void ybatchTroposphericCorrectionNaiveMedianInverse ( ArrayOfVector ybatch,
const ArrayOfVector ybatch_corr,
const Verbosity verbosity 
)

WORKSPACE METHOD: ybatchTroposphericCorrectionNaiveMedianInverse.

Performs inverse of naive tropospheric corrections on ybatch

Author
Richard Larsson
Parameters
[in,out]ybatchWS Input/Output
[in]ybatch_corrWS Input

Definition at line 170 of file m_raw.cc.

References ARTS::Var::ybatch(), and ARTS::Var::ybatch_corr().

Referenced by ybatchTroposphericCorrectionNaiveMedianInverse_g().

◆ yColdAtmHot()

void yColdAtmHot ( Vector y,
const Vector cold,
const Vector atm,
const Vector hot,
const Numeric cold_temp,
const Numeric hot_temp,
const Index calib,
const Verbosity verbosity 
)

WORKSPACE METHOD: yColdAtmHot.

Computes y from input using standard calibration scheme of cold-atm-hot observations

If calib evaluates as true: <br> y = cold_temp + (hot_temp - cold_temp) * (atm - cold) / (hot - cold)

If calib evaluates as false: <br> y = (hot_temp * cold - cold_temp * hot) / (hot - cold)

Author
Richard Larsson
Parameters
[out]yWS Output
[in]coldGeneric Input
[in]atmGeneric Input
[in]hotGeneric Input
[in]cold_tempGeneric Input
[in]hot_tempGeneric Input
[in]calibGeneric Input (Default: "1")

Definition at line 32 of file m_raw.cc.

References calibration(), ConstVectorView::nelem(), systemtemp(), and ARTS::Var::y().

Referenced by yColdAtmHot_g().