# Create a new operator for L3 products

**URL:** https://forum.atmospherictoolbox.org/t/create-a-new-operator-for-l3-products/510
**Category:** HARP
**Tags:** python
**Created:** [May 17, 2022, 10:10am UTC](https://forum.atmospherictoolbox.org/t/create-a-new-operator-for-l3-products/510 "2022-05-17T10:10:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [May 17, 2022, 10:10am UTC](https://forum.atmospherictoolbox.org/t/create-a-new-operator-for-l3-products/510/1 "2022-05-17T10:10:23Z")

</div>

Dear Sander,  
I am reading in AIRS gridded L3 daily data in python, in 1x1deg, and am using the operator  
harp.execute\_operations(productlist, operations=‘longitude\_range(-15.0, 45.0)’)  
in the end to narrow down the field for my output harp compliant file, as I do not need the entire globe.  
It would be excellent to also have a latitude\_range operation added in the next harp version.  
Am using harp 1.15 right now.  
Many thanks,  
MariLiza

---

<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 17, 2022, 10:23am UTC](https://forum.atmospherictoolbox.org/t/create-a-new-operator-for-l3-products/510/2 "2022-05-17T10:23:57Z")

</div>

The `longitude_range` function is to deal with the dateline properly and the fact that some datasets run from -180 to 180 and others from 0 to 360.

Normally, as you would do with `latitude` you would just say `longitude>=-15;longitude<45`. However, this would exclude longitudes between 345 and 360 (which you might want to have included as well). The `longitude_range` function does this.

---

<div class="post-metadata">

### Author: ![mariliza](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/m/c77e96/32.png) [@mariliza](https://forum.atmospherictoolbox.org/u/mariliza)
#### Post date: [May 17, 2022, 11:17am UTC](https://forum.atmospherictoolbox.org/t/create-a-new-operator-for-l3-products/510/3 "2022-05-17T11:17:17Z")

</div>

Thanks Sander! Indeed, I became wrapped up in the whole dateline issue I forgot the simple solution. All my lats are in the NH.

Take care,  
MariLiza
