# Google Earth NO2 data different from Sentinel 5 harp data

**URL:** https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325
**Category:** HARP
**Tags:** sentinel-5p, python
**Created:** [May 9, 2021, 6:50pm UTC](https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325 "2021-05-09T18:50:56Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![sgudimella](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@sgudimella](https://forum.atmospherictoolbox.org/u/sgudimella)
#### Post date: [May 9, 2021, 6:50pm UTC](https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325/1 "2021-05-09T18:50:56Z")

</div>

Hello,

I downloaded NO2 Sentinel 5P data for 6th and 7th of July 2020 for a specific location and performed harp ingest on it. Then I extracted Google Earth NO2 data for the same location and time. When I created a visualisation for both the products to make sure they are same, the visualisations look different.

The image on the left is the Google Earth NO2 data visualisation and the image on the right is the harp NO2 data visualisation:  
 ![image](https://forum.atmospherictoolbox.org/uploads/default/original/1X/d51ce783a00ed6f8230914aebb7c0e567ff5b997.jpeg)

My question is, if google earth data are already harp products then why do these visualisations look different? How can I verify the harp products generated from a netCDF file if they do not match the google earth data?

I would really appreciate any help!

Thanks!

---

<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: [May 9, 2021, 9:10pm UTC](https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325/2 "2021-05-09T21:10:51Z")

</div>

This is because Google is applying the quality filtering as prescribed by the [product readme file](https://sentinels.copernicus.eu/documents/247904/3541451/Sentinel-5P-Nitrogen-Dioxide-Level-2-Product-Readme-File). You should do the same by applying a filtering on the `tropospheric_NO2_column_number_density_validity` variable (which is also what Google is doing). I would strongly suggest that you read the other threads on this forum. There are many that deal with reading S5P NO2 data with HARP.

---

<div class="post-metadata">

### Author: ![sgudimella](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@sgudimella](https://forum.atmospherictoolbox.org/u/sgudimella)
#### Post date: [May 10, 2021, 9:39am UTC](https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325/3 "2021-05-10T09:39:11Z")

</div>

I’ve tried the tropospheric\_NO2\_column\_number\_density\_validity filtering but the visualisation looks way more different after applying this.

 ![image](https://forum.atmospherictoolbox.org/uploads/default/original/1X/52355fcb6d4e474b3ca1fed5ad5d3eef41e43465.jpeg)

So I assumed may be cloud filtering was not done on the google earth data. Why do these visualisations look so different? I followed everything exactly like the readme file.

Thanks

PS - I passed ‘tropospheric\_NO2\_column\_number\_density\_validity \> 75’ into harp import product function operations.

---

<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: [May 10, 2021, 9:55am UTC](https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325/4 "2021-05-10T09:55:12Z")

</div>

Have you looked at [Sentinel-5P OFFL NO2: Offline Nitrogen Dioxide](https://developers.google.com/earth-engine/datasets/catalog/COPERNICUS_S5P_OFFL_L3_NO2)? Google has documented quite well how they create their data products. They are using \>50 as qa\_value threshold (which means they also include cloud covered scenes).

---

<div class="post-metadata">

### Author: ![sgudimella](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@sgudimella](https://forum.atmospherictoolbox.org/u/sgudimella)
#### Post date: [May 10, 2021, 12:54pm UTC](https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325/5 "2021-05-10T12:54:33Z")

</div>

I have looked at the google documentation and followed the exact same harp conversion but the visualisation still doesn’t match. This is what my operations parameter in harp import\_product function looks like:

harp.import\_product(‘S5P\_OFFL\_L2\_\_NO2\_\_\_\_20200707T104926\_20200707T123056\_14160\_01\_010302\_20200709T034441.nc’,operations=‘tropospheric\_NO2\_column\_number\_density\_validity \> 50;bin\_spatial(1975,38.025,0.01,2355,11.815,0.01);derive(longitude{longitude});derive(latitude{latitude});keep(NO2\_column\_number\_density,tropospheric\_NO2\_column\_number\_density, stratospheric\_NO2\_column\_number\_density,NO2\_slant\_column\_number\_density, tropopause\_pressure,absorbing\_aerosol\_index,cloud\_fraction, sensor\_altitude,sensor\_azimuth\_angle, sensor\_zenith\_angle,solar\_azimuth\_angle,solar\_zenith\_angle, latitude, longitude)’)"

and this is from the google document:

 ![image](https://forum.atmospherictoolbox.org/uploads/default/original/1X/582a69381513019e139ba7d4a49c432c5285a682.png)

I am still not sure why are the visualisations different when I’m doing the exact same thing. On changing the validity filter to \> 50 instead of \> 75 I’m getting the same visualisation I got in the first graph I posted. So I still have the same issue.

Thanks

---

<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: [May 10, 2021, 2:06pm UTC](https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325/6 "2021-05-10T14:06:37Z")

</div>

I checked myself, and it seems google is using the \> 75 filter (so their documentation is off).

You seem to be only looking at 1 orbit, which is from 2020-07-07. But you need to merge everything from both 2020-07-06 _and_ 2020-07-07.

If I combine the two main orbits S5P\_OFFL\_L2\_\_NO2\_\_\_\_20200706T110830\_20200706T125000\_14146\_01\_010302\_20200708T040350.nc and S5P\_OFFL\_L2\_\_NO2\_\_\_\_20200707T104926\_20200707T123056\_14160\_01\_010302\_20200709T034441.nc and use:

```
harp.import_product(['S5P_OFFL_L2 __NO2____ 20200706T110830_20200706T125000_14146_01_010302_20200708T040350.nc', 'S5P_OFFL_L2 __NO2____ 20200707T104926_20200707T123056_14160_01_010302_20200709T034441.nc'], operations='tropospheric_NO2_column_number_density_validity > 75;bin_spatial(1975,38.025,0.01,2355,11.815,0.01);derive(longitude{longitude});derive(latitude{latitude});keep(NO2_column_number_density,tropospheric_NO2_column_number_density, stratospheric_NO2_column_number_density,NO2_slant_column_number_density, tropopause_pressure,absorbing_aerosol_index,cloud_fraction, sensor_altitude,sensor_azimuth_angle, sensor_zenith_angle,solar_azimuth_angle,solar_zenith_angle, latitude, longitude)', reduction_operations="bin()")

```

I am getting something that is already pretty close to what you get from google earth engine.

---

<div class="post-metadata">

### Author: ![sgudimella](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@sgudimella](https://forum.atmospherictoolbox.org/u/sgudimella)
#### Post date: [May 10, 2021, 5:15pm UTC](https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325/7 "2021-05-10T17:15:02Z")

</div>

> [@svniemeijer](#):
>
> `harp.import_product(['S5P_OFFL_L2 __NO2____ 20200706T110830_20200706T125000_14146_01_010302_20200708T040350.nc', 'S5P_OFFL_L2 __NO2____ 20200707T104926_20200707T123056_14160_01_010302_20200709T034441.nc'], operations='tropospheric_NO2_column_number_density_validity > 75;bin_spatial(1975,38.025,0.01,2355,11.815,0.01);derive(longitude{longitude});derive(latitude{latitude});keep(NO2_column_number_density,tropospheric_NO2_column_number_density, stratospheric_NO2_column_number_density,NO2_slant_column_number_density, tropopause_pressure,absorbing_aerosol_index,cloud_fraction, sensor_altitude,sensor_azimuth_angle, sensor_zenith_angle,solar_azimuth_angle,solar_zenith_angle, latitude, longitude)', reduction_operations="bin()")`

I tried it, I got an error that reduction\_operations does not exist but when I removed it and ran it again, I got something pretty close to the actual data. Thank you! 🙂

---

<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: [May 10, 2021, 5:41pm UTC](https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325/8 "2021-05-10T17:41:53Z")

</div>

Sorry that was a mistake in the example. It should say `post_operations="bin()"`. This is what merges the different orbits together.

---

<div class="post-metadata">

### Author: ![sgudimella](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/s/a6a055/32.png) [@sgudimella](https://forum.atmospherictoolbox.org/u/sgudimella)
#### Post date: [May 10, 2021, 9:00pm UTC](https://forum.atmospherictoolbox.org/t/google-earth-no2-data-different-from-sentinel-5-harp-data/325/9 "2021-05-10T21:00:06Z")

</div>

Perfect! Thank you 🙂

 ![image](https://forum.atmospherictoolbox.org/uploads/default/original/1X/8078bcfd19a4eff331d6b5fc51337c0e2c18fff5.png)
