# Nexrad Level 2 data - Get slices of an area from the radar reflectivity

**URL:** <https://discourse.pangeo.io/t/nexrad-level-2-data-get-slices-of-an-area-from-the-radar-reflectivity/4602>\
**Category:** Data\
**Tags:** machine-learning\
**Created:** [October 14, 2024, 6:10pm UTC](https://discourse.pangeo.io/t/nexrad-level-2-data-get-slices-of-an-area-from-the-radar-reflectivity/4602 "2024-10-14T18:10:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnukadiyala](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/vishnukadiyala/32/2993_2.png) [@vishnukadiyala](https://discourse.pangeo.io/u/vishnukadiyala)\
**Post date:** [October 14, 2024, 6:10pm UTC](https://discourse.pangeo.io/t/nexrad-level-2-data-get-slices-of-an-area-from-the-radar-reflectivity/4602/1 "2024-10-14T18:10:37Z")

</div>

I am a computer science student and want to build some machine learning application for precipitation rate estimation using machine learning. For proof of concept I decided to predict precipitation rate at one particular location. I am using pyart to get the data from the radar for the lat/lon of the location. However, I am unable to get the data from around the particular lat/lon.

I am wondering if there is a way to get like a 5x5 km radius of data around the given lat/lon coordinate?

---

<div class="post-metadata">

**Author:** ![aladinor](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/aladinor/32/1316_2.png) [@aladinor](https://discourse.pangeo.io/u/aladinor)\
**Post date:** [October 15, 2024, 4:48pm UTC](https://discourse.pangeo.io/t/nexrad-level-2-data-get-slices-of-an-area-from-the-radar-reflectivity/4602/2 "2024-10-15T16:48:29Z")

</div>

For extracting radar data around a specific lat/lon, you might want to check out these Python libraries:

- [Py-ART](https://arm-doe.github.io/pyart/)
- [xradar](https://docs.openradarscience.org/projects/xradar/en/stable/)
- [wradlib](https://wradlib.org/)

Each library includes examples that can help you get started. If you need further assistance, feel free to connect with the open radar science community [here](https://openradar.discourse.group/)

---

<div class="post-metadata">

**Author:** ![vishnukadiyala](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pangeo.io/vishnukadiyala/32/2993_2.png) [@vishnukadiyala](https://discourse.pangeo.io/u/vishnukadiyala)\
**Post date:** [October 15, 2024, 8:13pm UTC](https://discourse.pangeo.io/t/nexrad-level-2-data-get-slices-of-an-area-from-the-radar-reflectivity/4602/3 "2024-10-15T20:13:15Z")

</div>

Thank you @aladinor, I am currently using Py-ART for extraction

```auto
pyart.util.columnsect.get_field_location(data, lat, lon)

```

Thank you for sharing the Open radar science community link.
