# Uncertainty in Sentinel-5p CO column volume mixing ratio

**URL:** https://forum.atmospherictoolbox.org/t/uncertainty-in-sentinel-5p-co-column-volume-mixing-ratio/848
**Category:** HARP
**Tags:** sentinel-5p, python
**Created:** [November 27, 2024, 12:14pm UTC](https://forum.atmospherictoolbox.org/t/uncertainty-in-sentinel-5p-co-column-volume-mixing-ratio/848 "2024-11-27T12:14:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![silent\_ste](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/silent_ste/32/394_2.png) [@silent\_ste](https://forum.atmospherictoolbox.org/u/silent_ste)
#### Post date: [November 27, 2024, 12:14pm UTC](https://forum.atmospherictoolbox.org/t/uncertainty-in-sentinel-5p-co-column-volume-mixing-ratio/848/1 "2024-11-27T12:14:45Z")

</div>

Hi, I have a question about deriving the column volume mixing ratio uncertainty.

I have derived the column volume mixing ratio using “derive(CO\_column\_volume\_mixing\_ratio {time} [ppbv])” and tried “derive(CO\_column\_volume\_mixing\_ratio\_uncertainty {time} [ppbv])” to get the uncertainty. I get the error “could not derive variable ‘CO\_column\_volume\_mixing\_ratio\_uncertainty {time}’”.

Is there a way to derive the uncertainty in CO\_column\_volume\_mixing\_ratio?

I am using the harp package version 1.23 in Python 3.12.

Thanks for helping!

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [November 28, 2024, 3:16pm UTC](https://forum.atmospherictoolbox.org/t/uncertainty-in-sentinel-5p-co-column-volume-mixing-ratio/848/2 "2024-11-28T15:16:41Z")

</div>

HARP does not perform uncertainty propagation except for the [binning operations](http://stcorp.github.io/harp/doc/html/algorithms/regridding.html) and some [very specific cases](http://stcorp.github.io/harp/doc/html/algorithms/common.html). So, it won’t be able to derive `CO_column_volume_mixing_ratio_uncertainty`.

Note that HARP needs to perform multiple steps under the hood to calculate the vmr. You can check these steps with the `harpdump` command line tool:

```auto
% harpdump --list-derivations -t CO_column_volume_mixing_ratio S5P_OFFL_L2 __CO_____ 20241126T130221_20241126T144351_36904_03_020800_20241128T025036.nc
CO_column_volume_mixing_ratio {time} [ppv] (double) from
  CO_column_number_density {time} [molec/m2] (double)
  column_number_density {time} [molec/m2] (double) from
    dry_air_column_number_density {time} [molec/m2] (double) from
      dry_air_column_density {time} [kg/m2] (double) from
        column_density {time} [kg/m2] (double) from
          surface_pressure {time} [Pa] (double)
          pressure_bounds {time,vertical,independent(2)} [Pa] (double)
          altitude {time,vertical} [m] (double)
          latitude {time} [degree_north] (double)
        H2O_column_density {time} [kg/m2] (double) from
          H2O_column_number_density {time} [molec/m2] (double)
    H2O_column_number_density {time} [molec/m2] (double)

```

You can combine this with the formula in the documentation, such as the one for [column volume mixing ratio](http://stcorp.github.io/harp/doc/html/algorithms/derivations/column_volume_mixing_ratio.html#derivation-column-volume-mixing-ratio-from-column-number-density) or the one for [dry air column density](http://stcorp.github.io/harp/doc/html/algorithms/derivations/column_mass_density.html#derivation-column-mass-density-of-dry-air-from-total-air-column-mass-density-and-h2o-column-mass-density) to understand how HARP has actually performed the calculations.

To derive column vmr uncertainty you would actually need uncertainties on all these input variables in order to do the propagation. And these uncertainties are not available in the product. There might be some approximate way to derive the uncertainty, but that is not something that HARP can facilitate.

---

<div class="post-metadata">

### Author: ![silent\_ste](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/silent_ste/32/394_2.png) [@silent\_ste](https://forum.atmospherictoolbox.org/u/silent_ste)
#### Post date: [December 2, 2024, 2:44pm UTC](https://forum.atmospherictoolbox.org/t/uncertainty-in-sentinel-5p-co-column-volume-mixing-ratio/848/3 "2024-12-02T14:44:22Z")

</div>

Hi Sander,

Thanks for the response! Your explanation of what’s happening under the hood is really helpful.  
I’ll have a think about ways to approximate the uncertainty.
