9.0
general documentation
Loading...
Searching...
No Matches
cs_intprf.h File Reference
#include "base/cs_defs.h"
Include dependency graph for cs_intprf.h:

Go to the source code of this file.

Functions

cs_real_t cs_intprf (int nprofz, int nproft, const cs_real_t profz[], const cs_real_t proft[], const cs_real_t profv[], cs_real_t xz, cs_real_t t)
 Temporal and z-axis interpolation for meteorological profiles.
void cs_intprz (int nprofz, const cs_real_t profz[], const cs_real_t profv[], cs_real_t xz, int *z_lv, cs_real_t *var)
 Z-axis interpolation for meteorological profiles.

Function Documentation

◆ cs_intprf()

cs_real_t cs_intprf ( int nprofz,
int nproft,
const cs_real_t profz[],
const cs_real_t proft[],
const cs_real_t profv[],
cs_real_t xz,
cs_real_t t )

Temporal and z-axis interpolation for meteorological profiles.

An optimized linear interpolation is used.

Parameters
[in]nprofztotal number of measure points
[in]nprofttotal number of time values
[in]profzz coordinates of measure points
[in]proftphysical times of dataset acquisition
[in]profvmeasured values
[in]xzinterpolation elevation
[in]tinterpolation time
Returns
interpolated value

◆ cs_intprz()

void cs_intprz ( int nprofz,
const cs_real_t profz[],
const cs_real_t profv[],
cs_real_t xz,
int * z_lv,
cs_real_t * var )

Z-axis interpolation for meteorological profiles.

An optimized linear interpolation is used.

Parameters
[in]nprofztotal number of measure points
[in]profzz coordinates of measure points
[in]profvmeasured values
[in]xzinterpolation elevation
[out]z_lvindex of lower and upel level (optional, size 2), or NULL
[out]varinterpolated value

An optimized linear interpolation is used.

Parameters
[in]nprofztotal number of measure points
[in]profzz coordinates of measure points
[in]profvmeasured values
[in]xzinterpolation elevation
[out]z_lvindex of lower and upel level (optional, size 2), or nullptr
[out]varinterpolated value