8.1
general documentation
cs_intprf.h File Reference
#include "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. More...
 
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. More...
 

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