# Sunglint Flag in HARP

**URL:** https://forum.atmospherictoolbox.org/t/sunglint-flag-in-harp/251
**Category:** HARP
**Tags:** sentinel-5p
**Created:** [January 18, 2021, 9:33pm UTC](https://forum.atmospherictoolbox.org/t/sunglint-flag-in-harp/251 "2021-01-18T21:33:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ryanv](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/r/8797f3/32.png) [@ryanv](https://forum.atmospherictoolbox.org/u/ryanv)
#### Post date: [January 18, 2021, 9:33pm UTC](https://forum.atmospherictoolbox.org/t/sunglint-flag-in-harp/251/1 "2021-01-18T21:33:19Z")

</div>

Dear Sander,

From the PUM of Sentinel-5P there is the following flag:

_geolocation\_flags in NO2/PRODUCT/SUPPORT\_DATA/GEOLOCATIONS_  
_Description:_  
_Additional flags describing the ground pixel, including the influence of a solar eclipse, the possibility of sun glint, whether we are in the descending part of the orbit, whether we are on the night side of the orbit, whether the pixel crosses the dateline (useful for plotting), or if there was some geolocation error._

If I understood correctly if geolocation\_flags = 2 it means that there is a possible sunglint measurement. Is it possible to restrict pixels with sunglint=2 using HARP? I want to plot only the pixels with possible sunglint effects.

Best,  
Ryan

---

<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: [January 19, 2021, 1:57pm UTC](https://forum.atmospherictoolbox.org/t/sunglint-flag-in-harp/251/2 "2021-01-19T13:57:29Z")

</div>

There is a sun glint warning present in the `processing_quality_flags` variable. This variable is available after HARP ingestion as the `validity` variable. You can filter on that using `validity=&2048`.

I am not sure if this flag is set for the same pixels where the sun glint in the geolocation flags was set, but both flags indicate a _possible_ glint anyway (there doesn’t have to be a glint).
