helikite.processing.post.co2

These functions are used for CO2 monitor corrections

Functions

stp_convert_dry(x, t, p1)

Convert a measurement to STP conditions for dry air.

stp_moist_test(x, t, p1, rh)

Module Contents

helikite.processing.post.co2.stp_convert_dry(x, t, p1)

Convert a measurement to STP conditions for dry air.

This function adjusts a measurement from actual conditions to standard temperature and pressure (STP) conditions for dry air. It follows the approach of stp.convert.dry by Roman Pohorsky.

Parameters:
  • x (float or array-like) – Measured value to be converted.

  • t (float or array-like) – Temperature in °C.

  • p1 (float or array-like) – Pressure in hPa.

Returns:

Measurement converted to STP conditions.

Return type:

float or array-like

Notes

The conversion process involves:
  1. Converting the pressure from hPa to Pa.

  2. Converting the temperature from °C to Kelvin.

  3. Calculating the STP conversion factor and applying it to measurement.

Examples

>>> df_level0['FC_CO2_STP'] = stp_convert_dry(
...     df_level0['FC_CO2'],
...     df_level0['T ref'],
...     df_level0['FC_P corr']
... )
helikite.processing.post.co2.stp_moist_test(x, t, p1, rh)