# HARP Quality filters of S5P\_OFFL\_L2\_O3\_\_\_ products

**URL:** https://forum.atmospherictoolbox.org/t/harp-quality-filters-of-s5p-offl-l2-o3-products/242
**Category:** HARP
**Tags:** sentinel-5p, python
**Created:** [December 25, 2020, 4:01pm UTC](https://forum.atmospherictoolbox.org/t/harp-quality-filters-of-s5p-offl-l2-o3-products/242 "2020-12-25T16:01:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sotochess](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@sotochess](https://forum.atmospherictoolbox.org/u/sotochess)
#### Post date: [December 25, 2020, 4:01pm UTC](https://forum.atmospherictoolbox.org/t/harp-quality-filters-of-s5p-offl-l2-o3-products/242/1 "2020-12-25T16:01:23Z")

</div>

Hello,

I’m working on a project that analyses the S5P air quality measurements. When processing L2 O3 products I have found the following error I don’t know how to solve:

In the L2 O3 product documentation (“[https://sentinels.copernicus.eu/documents/247904/3541451/Sentinel-5P-Readme-OFFL-Total-Ozone.pdf](https://sentinels.copernicus.eu/documents/247904/3541451/Sentinel-5P-Readme-OFFL-Total-Ozone.pdf)”) it is stated that the quality condition measurements follow is that the variable qa\_value\>0.5. When I try to call the function: harp.import\_product(path,operations=“qa\_value\>0.5”),  
I get the following error:

 ![capturaerrorHARP](https://forum.atmospherictoolbox.org/uploads/default/original/1X/6a9656e796e85020da6147e91881f3fa7bc6cce8.png)

That surprised me at first and I thought the files could be corrupted. However, when I use the browse product utility VISAN has, I can see that the variable exists in the product. So, I think HARP is not importing it for some reason. Does anyone know how could I filter these products using HARP?

Thanks for your attention,  
Miguel

---

<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: [December 26, 2020, 8:47am UTC](https://forum.atmospherictoolbox.org/t/harp-quality-filters-of-s5p-offl-l2-o3-products/242/2 "2020-12-26T08:47:33Z")

</div>

When you import the data with HARP, the data will be converted to the HARP conventions, You will therefore not see the same variable names as have been used in the netCDF file or what can be shown by CODA (the VISAN product browser is also based on CODA and not on HARP).

The conversion that HARP performs for the S5P O3 product is described in [the documentation](http://stcorp.github.io/harp/doc/html/ingestions/S5P_L2_O3.html).

You would have to filter for `O3_column_number_density_validity>50`.

I would also recommend you have a look at the other posts in this forum. There are quite a few that discuss this topic.

---

<div class="post-metadata">

### Author: ![sotochess](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@sotochess](https://forum.atmospherictoolbox.org/u/sotochess)
#### Post date: [December 30, 2020, 5:00pm UTC](https://forum.atmospherictoolbox.org/t/harp-quality-filters-of-s5p-offl-l2-o3-products/242/3 "2020-12-30T17:00:04Z")

</div>

Thank you @svniemeijer, it has been of great help.
